We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a27fab commit 78d05f5Copy full SHA for 78d05f5
wgpu-core/src/command/compute.rs
@@ -865,6 +865,7 @@ fn dispatch_indirect(
865
.require_downlevel_flags(wgt::DownlevelFlags::INDIRECT_EXECUTION)?;
866
867
buffer.check_usage(wgt::BufferUsages::INDIRECT)?;
868
+ buffer.check_destroyed(&state.snatch_guard)?;
869
870
if offset % 4 != 0 {
871
return Err(ComputePassErrorInner::UnalignedIndirectBufferOffset(offset));
wgpu-core/src/command/render.rs
@@ -2523,6 +2523,7 @@ fn multi_draw_indirect(
2523
2524
indirect_buffer.same_device_as(cmd_buf.as_ref())?;
2525
indirect_buffer.check_usage(BufferUsages::INDIRECT)?;
2526
+ indirect_buffer.check_destroyed(state.snatch_guard)?;
2527
2528
2529
return Err(RenderPassErrorInner::UnalignedIndirectBufferOffset(offset));
0 commit comments