File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -865,6 +865,7 @@ fn dispatch_indirect(
865
865
. require_downlevel_flags ( wgt:: DownlevelFlags :: INDIRECT_EXECUTION ) ?;
866
866
867
867
buffer. check_usage ( wgt:: BufferUsages :: INDIRECT ) ?;
868
+ buffer. check_destroyed ( & state. snatch_guard ) ?;
868
869
869
870
if offset % 4 != 0 {
870
871
return Err ( ComputePassErrorInner :: UnalignedIndirectBufferOffset ( offset) ) ;
Original file line number Diff line number Diff line change @@ -2523,6 +2523,7 @@ fn multi_draw_indirect(
2523
2523
2524
2524
indirect_buffer. same_device_as ( cmd_buf. as_ref ( ) ) ?;
2525
2525
indirect_buffer. check_usage ( BufferUsages :: INDIRECT ) ?;
2526
+ indirect_buffer. check_destroyed ( state. snatch_guard ) ?;
2526
2527
2527
2528
if offset % 4 != 0 {
2528
2529
return Err ( RenderPassErrorInner :: UnalignedIndirectBufferOffset ( offset) ) ;
You can’t perform that action at this time.
0 commit comments