diff --git a/wgpu-hal/src/metal/device.rs b/wgpu-hal/src/metal/device.rs index 84a2caf362c..3cf0bf67246 100644 --- a/wgpu-hal/src/metal/device.rs +++ b/wgpu-hal/src/metal/device.rs @@ -75,6 +75,7 @@ impl super::Device { let options = mtl::CompileOptions::new(); options.set_language_version(self.shared.private_caps.msl_version); + options.set_preserve_invariance(true); let library = self .shared