Update naga with Metal bounds checks (#2276)

This commit is contained in:
Dzmitry Malyshau authored and GitHub committed 2021-12-15 04:59:06 +00:00
1 parent 6c2e8edb64
commit 0e5892fa04
5 files changed
+12 -7

No files matched your search

Generated
+1 -1
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",
+1 -1
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"]
+2 -2
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"]
+5
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,
},
},
})
}
+3 -3
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"]