Skip to content

Commit

Permalink
Fix write-after-write hazard in indirect buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralith committed May 5, 2024
1 parent 7850a81 commit 0bc1925
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/src/graphics/voxels/surface_extraction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,9 @@ impl ScratchBuffer {
Default::default(),
&[vk::MemoryBarrier {
src_access_mask: vk::AccessFlags::TRANSFER_WRITE,
dst_access_mask: vk::AccessFlags::SHADER_READ | vk::AccessFlags::UNIFORM_READ,
dst_access_mask: vk::AccessFlags::SHADER_READ
| vk::AccessFlags::SHADER_WRITE
| vk::AccessFlags::UNIFORM_READ,
..Default::default()
}],
&[],
Expand Down

0 comments on commit 0bc1925

Please sign in to comment.