Update naga with Metal bounds checks (#2276)

This commit is contained in:
Dzmitry Malyshau
2021-12-14 23:59:06 -05:00
committed by GitHub
parent 6c2e8edb64
commit 0e5892fa04
5 changed files with 12 additions and 7 deletions

2
Cargo.lock generated
View File

@@ -871,7 +871,7 @@ dependencies = [
[[package]]
name = "naga"
version = "0.7.1"
source = "git+https://github.com/gfx-rs/naga?rev=c69f676#c69f67660973a3bffa3b27c295f698dc4aa01524"
source = "git+https://github.com/gfx-rs/naga?rev=3867ef4#3867ef4f6cba6af0bbeec330c9379d7ade14e4ef"
dependencies = [
"bit-set",
"bitflags",

View File

@@ -38,7 +38,7 @@ thiserror = "1"
[dependencies.naga]
git = "https://github.com/gfx-rs/naga"
rev = "c69f676"
rev = "3867ef4"
#version = "0.7"
features = ["span", "validate", "wgsl-in"]

View File

@@ -75,12 +75,12 @@ js-sys = { version = "0.3" }
[dependencies.naga]
git = "https://github.com/gfx-rs/naga"
rev = "c69f676"
rev = "3867ef4"
#version = "0.7"
[dev-dependencies.naga]
git = "https://github.com/gfx-rs/naga"
rev = "c69f676"
rev = "3867ef4"
#version = "0.7"
features = ["wgsl-in"]

View File

@@ -635,6 +635,11 @@ impl crate::Device<super::Api> for super::Device {
..per_stage_map.cs
},
},
bounds_check_policies: naga::proc::BoundsCheckPolicies {
index: naga::proc::BoundsCheckPolicy::ReadZeroSkipWrite,
buffer: naga::proc::BoundsCheckPolicy::ReadZeroSkipWrite,
image: naga::proc::BoundsCheckPolicy::ReadZeroSkipWrite,
},
},
})
}

View File

@@ -136,20 +136,20 @@ env_logger = "0.8"
[dependencies.naga]
git = "https://github.com/gfx-rs/naga"
rev = "c69f676"
rev = "3867ef4"
#version = "0.7"
optional = true
# used to test all the example shaders
[dev-dependencies.naga]
git = "https://github.com/gfx-rs/naga"
rev = "c69f676"
rev = "3867ef4"
#version = "0.7"
features = ["wgsl-in"]
[target.'cfg(target_arch = "wasm32")'.dependencies.naga]
git = "https://github.com/gfx-rs/naga"
rev = "c69f676"
rev = "3867ef4"
#version = "0.7"
features = ["wgsl-out"]