mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-25 16:24:24 +00:00
Set the new naga Capabilities::CUBE_ARRAY_TEXTURES
(#4263)
This commit is contained in:
parent
8c03aa85e6
commit
ead6348b43
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -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",
|
||||
|
@ -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]
|
||||
|
@ -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"]
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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"]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user