Skip to content

Commit

Permalink
Misc Win32 nits.
Browse files Browse the repository at this point in the history
  • Loading branch information
Themaister committed Jul 17, 2024
1 parent 5a2599f commit bee0633
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion util/dynamic_library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace Util
DynamicLibrary::DynamicLibrary(const char *path)
{
#ifdef _WIN32
module = LoadLibrary(path);
module = LoadLibraryA(path);
if (!module)
LOGE("Failed to load dynamic library.\n");
#else
Expand Down
10 changes: 5 additions & 5 deletions vulkan/command_buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1291,9 +1291,9 @@ Pipeline CommandBuffer::build_graphics_pipeline(Device *device, const DeferredPi

// Depth state
VkPipelineDepthStencilStateCreateInfo ds = { VK_STRUCTURE_TYPE_PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO };
ds.stencilTestEnable = compile.compatible_render_pass->has_stencil(compile.subpass_index) && compile.static_state.state.stencil_test;
ds.depthTestEnable = compile.compatible_render_pass->has_depth(compile.subpass_index) && compile.static_state.state.depth_test;
ds.depthWriteEnable = compile.compatible_render_pass->has_depth(compile.subpass_index) && compile.static_state.state.depth_write;
ds.stencilTestEnable = compile.compatible_render_pass->has_stencil(compile.subpass_index) && compile.static_state.state.stencil_test != 0;
ds.depthTestEnable = compile.compatible_render_pass->has_depth(compile.subpass_index) && compile.static_state.state.depth_test != 0;
ds.depthWriteEnable = compile.compatible_render_pass->has_depth(compile.subpass_index) && compile.static_state.state.depth_write != 0;

if (ds.depthTestEnable)
ds.depthCompareOp = static_cast<VkCompareOp>(compile.static_state.state.depth_compare);
Expand Down Expand Up @@ -1391,7 +1391,7 @@ Pipeline CommandBuffer::build_graphics_pipeline(Device *device, const DeferredPi
VkPipelineShaderStageRequiredSubgroupSizeCreateInfo subgroup_size_info_task;
VkPipelineShaderStageRequiredSubgroupSizeCreateInfo subgroup_size_info_mesh;

for (unsigned i = 0; i < Util::ecast(ShaderStage::Count); i++)
for (int i = 0; i < Util::ecast(ShaderStage::Count); i++)
{
auto mask = compile.layout->get_resource_layout().spec_constant_mask[i] &
get_combined_spec_constant_mask(compile);
Expand All @@ -1414,7 +1414,7 @@ Pipeline CommandBuffer::build_graphics_pipeline(Device *device, const DeferredPi
}
}

for (unsigned i = 0; i < Util::ecast(ShaderStage::Count); i++)
for (int i = 0; i < Util::ecast(ShaderStage::Count); i++)
{
auto stage = static_cast<ShaderStage>(i);
if (compile.program->get_shader(stage))
Expand Down

0 comments on commit bee0633

Please sign in to comment.