[metal] use restrict bounds check policy by default

This commit is contained in:
teoxoy authored and Teodor Tanasoaia committed 2024-10-23 16:51:44 +02:00
1 parent 207747cab5
commit 9c781d64d6
1 file changed
+1 -1
+1 -1
View File
@@ -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
};