diff --git a/Cargo.lock b/Cargo.lock index 747c54f57..81dee16a0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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", diff --git a/wgpu-core/Cargo.toml b/wgpu-core/Cargo.toml index 4ccb83a9f..a361f8c85 100644 --- a/wgpu-core/Cargo.toml +++ b/wgpu-core/Cargo.toml @@ -36,7 +36,7 @@ thiserror = "1" [dependencies.naga] git = "https://github.com/gfx-rs/naga" -rev = "e017cb4" +rev = "cc91c77" features = ["wgsl-in"] [dependencies.wgt] diff --git a/wgpu-core/src/validation.rs b/wgpu-core/src/validation.rs index b838803ff..a6e53396c 100644 --- a/wgpu-core/src/validation.rs +++ b/wgpu-core/src/validation.rs @@ -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() { diff --git a/wgpu-hal/Cargo.toml b/wgpu-hal/Cargo.toml index 311c3ffa1..fc72d8b35 100644 --- a/wgpu-hal/Cargo.toml +++ b/wgpu-hal/Cargo.toml @@ -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] diff --git a/wgpu-hal/src/dx12/device.rs b/wgpu-hal/src/dx12/device.rs index 1df6b365d..6bd87afe3 100644 --- a/wgpu-hal/src/dx12/device.rs +++ b/wgpu-hal/src/dx12/device.rs @@ -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 diff --git a/wgpu/Cargo.toml b/wgpu/Cargo.toml index d6021b3ad..b35689dd2 100644 --- a/wgpu/Cargo.toml +++ b/wgpu/Cargo.toml @@ -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]]