diff --git a/crates/metal2vulkan/src/tests/engine_typed_clamp.rs b/crates/metal2vulkan/src/tests/engine_typed_clamp.rs index 050ce21c8..1de58097b 100644 --- a/crates/metal2vulkan/src/tests/engine_typed_clamp.rs +++ b/crates/metal2vulkan/src/tests/engine_typed_clamp.rs @@ -97,6 +97,8 @@ fn slot(index: u32) -> ResourceSlot { } /// `threads` threads along x (`local` the workgroup's shape), and buffer `i` holding `bufs[i]`. +/// Zero push bytes: each buffer is bound at its start, and a dispatch region (a kernel that reads +/// its grid position) is one region at the grid's origin. fn resources(plan: &Plan, local: (u64, u64), bufs: &[Vec]) -> Resources { let mut s = BTreeMap::new(); s.insert(SpecKey::LocalSize(Axis::X), local.0); @@ -109,6 +111,7 @@ fn resources(plan: &Plan, local: (u64, u64), bufs: &[Vec]) -> Resources { (PushField::SlotBindOffset(_), PushLoc::Push { offset }) => { push[offset as usize..offset as usize + 4].fill(0) } + (PushField::DispatchRegion, PushLoc::Push { .. }) => {} other => panic!("unexpected push field {other:?}"), } }