Set the new naga Capabilities::CUBE_ARRAY_TEXTURES (#4263)

This commit is contained in:
Teodor Tanasoaia 2023-10-18 18:13:21 +02:00 committed by GitHub
parent 8c03aa85e6
commit ead6348b43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 5 deletions

2
Cargo.lock generated
View File

@ -1686,7 +1686,7 @@ dependencies = [
[[package]]
name = "naga"
version = "0.13.0"
source = "git+https://github.com/gfx-rs/naga?rev=6854b0ab4f105131bfb87704927abec3fe366ef9#6854b0ab4f105131bfb87704927abec3fe366ef9"
source = "git+https://github.com/gfx-rs/naga?rev=e25280df9316434ef7752970016d01a3aede3f17#e25280df9316434ef7752970016d01a3aede3f17"
dependencies = [
"bit-set",
"bitflags 2.4.1",

View File

@ -51,7 +51,7 @@ version = "0.17"
[workspace.dependencies.naga]
git = "https://github.com/gfx-rs/naga"
rev = "6854b0ab4f105131bfb87704927abec3fe366ef9"
rev = "e25280df9316434ef7752970016d01a3aede3f17"
version = "0.13.0"
[workspace.dependencies]

View File

@ -77,7 +77,7 @@ thiserror = "1"
[dependencies.naga]
git = "https://github.com/gfx-rs/naga"
rev = "6854b0ab4f105131bfb87704927abec3fe366ef9"
rev = "e25280df9316434ef7752970016d01a3aede3f17"
version = "0.13.0"
features = ["clone", "span", "validate"]

View File

@ -1310,6 +1310,12 @@ impl<A: HalApi> Device<A> {
Caps::DUAL_SOURCE_BLENDING,
self.features.contains(wgt::Features::DUAL_SOURCE_BLENDING),
);
caps.set(
Caps::CUBE_ARRAY_TEXTURES,
self.downlevel
.flags
.contains(wgt::DownlevelFlags::CUBE_ARRAY_TEXTURES),
);
let info = naga::valid::Validator::new(naga::valid::ValidationFlags::all(), caps)
.validate(&module)

View File

@ -120,14 +120,14 @@ android_system_properties = "0.1.1"
[dependencies.naga]
git = "https://github.com/gfx-rs/naga"
rev = "6854b0ab4f105131bfb87704927abec3fe366ef9"
rev = "e25280df9316434ef7752970016d01a3aede3f17"
version = "0.13.0"
features = ["clone"]
# DEV dependencies
[dev-dependencies.naga]
git = "https://github.com/gfx-rs/naga"
rev = "6854b0ab4f105131bfb87704927abec3fe366ef9"
rev = "e25280df9316434ef7752970016d01a3aede3f17"
version = "0.13.0"
features = ["wgsl-in"]