diff --git a/wgpu-hal/src/metal/device.rs b/wgpu-hal/src/metal/device.rs index 347a97a08..4cc8ef0eb 100644 --- a/wgpu-hal/src/metal/device.rs +++ b/wgpu-hal/src/metal/device.rs @@ -117,7 +117,7 @@ impl super::Device { let ep_resources = &layout.per_stage_map[naga_stage]; let bounds_check_policy = if stage.module.runtime_checks { - naga::proc::BoundsCheckPolicy::ReadZeroSkipWrite + naga::proc::BoundsCheckPolicy::Restrict } else { naga::proc::BoundsCheckPolicy::Unchecked };