Skip to content

Commit

Permalink
[metal] use restrict bounds check policy by default
Browse files Browse the repository at this point in the history
  • Loading branch information
teoxoy committed Oct 23, 2024
1 parent 207747c commit 9c781d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wgpu-hal/src/metal/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
Expand Down

0 comments on commit 9c781d6

Please sign in to comment.