1714: Update Naga to cc91c77 r=kvark a=kvark

**Connections**
Picks up https://github.com/gfx-rs/naga/pull/1128 and other HLSL fixes.
Complements #1713

**Description**
Just an update

**Testing**
Ran examples locally 


Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
This commit is contained in:
bors[bot]andDzmitry Malyshau authored and GitHub committed 2021-07-23 06:20:11 +00:00
commit a0bcd86207
6 files changed
+11 -10

No files matched your search

Generated
+1 -1
View File
@@ -932,7 +932,7 @@ dependencies = [
[[package]]
name = "naga"
version = "0.5.0"
source = "git+https://github.com/gfx-rs/naga?rev=7b9b56a#7b9b56a6abe153a382e611db293bdf74b391906e"
source = "git+https://github.com/gfx-rs/naga?rev=cc91c77#cc91c77f7ac7e22b615bf2e188f659ce623c1fe9"
dependencies = [
"bit-set",
"bitflags",
+1 -1
View File
@@ -36,7 +36,7 @@ thiserror = "1"
[dependencies.naga]
git = "https://github.com/gfx-rs/naga"
rev = "e017cb4"
rev = "cc91c77"
features = ["wgsl-in"]
[dependencies.wgt]
+3 -3
View File
@@ -421,7 +421,7 @@ impl Resource {
kind: naga::ScalarKind::Uint,
multi,
},
wgt::TextureSampleType::Depth => naga::ImageClass::Depth,
wgt::TextureSampleType::Depth => naga::ImageClass::Depth { multi },
};
(class, GlobalUse::READ | GlobalUse::QUERY)
}
@@ -512,10 +512,10 @@ impl Resource {
view_dimension,
multisampled: multi,
},
naga::ImageClass::Depth => BindingType::Texture {
naga::ImageClass::Depth { multi } => BindingType::Texture {
sample_type: wgt::TextureSampleType::Depth,
view_dimension,
multisampled: false,
multisampled: multi,
},
naga::ImageClass::Storage(format) => BindingType::StorageTexture {
access: if shader_usage == GlobalUse::WRITE || shader_usage.is_empty() {
+2 -2
View File
@@ -65,11 +65,11 @@ core-graphics-types = "0.1"
[dependencies.naga]
git = "https://github.com/gfx-rs/naga"
rev = "e017cb4"
rev = "cc91c77"
[dev-dependencies.naga]
git = "https://github.com/gfx-rs/naga"
rev = "e017cb4"
rev = "cc91c77"
features = ["wgsl-in"]
[dev-dependencies]
+2 -1
View File
@@ -205,7 +205,8 @@ impl super::Device {
let mut error = native::Blob::null();
let mut compile_flags = d3dcompiler::D3DCOMPILE_ENABLE_STRICTNESS;
if self.private_caps.shader_debug_info {
compile_flags |= d3dcompiler::D3DCOMPILE_DEBUG;
compile_flags |=
d3dcompiler::D3DCOMPILE_DEBUG | d3dcompiler::D3DCOMPILE_SKIP_OPTIMIZATION;
}
if self
.shared
+2 -2
View File
@@ -75,13 +75,13 @@ env_logger = "0.8"
[dependencies.naga]
git = "https://github.com/gfx-rs/naga"
rev = "e017cb4"
rev = "cc91c77"
optional = true
# used to test all the example shaders
[dev-dependencies.naga]
git = "https://github.com/gfx-rs/naga"
rev = "e017cb4"
rev = "cc91c77"
features = ["wgsl-in"]
[[example]]