[metal] use restrict bounds check policy by default

This commit is contained in:
teoxoy 2024-10-21 18:41:10 +02:00 committed by Teodor Tanasoaia
parent 207747cab5
commit 9c781d64d6

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
};