mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Update naga with Metal bounds checks (#2276)
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -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",
|
||||
|
||||
@@ -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"]
|
||||
|
||||
|
||||
@@ -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"]
|
||||
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user