mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-10-29 21:41:36 +00:00
[metal] use restrict bounds check policy by default
This commit is contained in:
parent
207747cab5
commit
9c781d64d6
@ -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
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user