Skip to content

Commit

Permalink
Set DEPTH_READ_ONLY in render graph appropriate in some cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
Themaister committed Mar 26, 2024
1 parent a6649b3 commit ac540cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renderer/render_graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1153,7 +1153,7 @@ void RenderGraph::build_render_pass_info()
auto res = add_unique_ds(ds_output->get_physical_index());
// If this is the first subpass the attachment is used, we need to load it.
if (res.second)
rp.load_attachments |= 1u << res.first;
rp.op_flags |= Vulkan::RENDER_PASS_OP_LOAD_DEPTH_STENCIL_BIT;

rp.op_flags |= Vulkan::RENDER_PASS_OP_STORE_DEPTH_STENCIL_BIT;
physical_pass.subpasses[subpass_index].depth_stencil_mode = Vulkan::RenderPassInfo::DepthStencil::ReadWrite;
Expand Down

0 comments on commit ac540cf

Please sign in to comment.