mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-29 17:44:09 +01:00
[metal] use restrict bounds check policy by default
This commit is contained in:
1 parent
207747cab5
commit
9c781d64d6
1 file changed
+1
-1
@@ -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
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user