From bf38b4b0b1f360d37f13f936dc0544005ccc1019 Mon Sep 17 00:00:00 2001 From: Nicolas Silva Date: Thu, 16 Feb 2023 15:24:24 +0100 Subject: [PATCH] Update naga to 0.11.0@git:568d7c4c136dada369ef7f59ee8414a263d6c7b2 (#3491) * Update naga to 0.11.0@git:568d7c4c136dada369ef7f59ee8414a263d6c7b2 * Fix the clear_texture after naga update. --- Cargo.lock | 2 +- Cargo.toml | 2 +- wgpu-core/Cargo.toml | 2 +- wgpu-hal/Cargo.toml | 4 ++-- wgpu/tests/common/copy_texture_to_buffer.wgsl | 6 +++--- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 50e701dba..1a7b62188 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1515,7 +1515,7 @@ dependencies = [ [[package]] name = "naga" version = "0.11.0" -source = "git+https://github.com/gfx-rs/naga?rev=4b796b157cb2b67b0ab166a2238fe4e9473bfd52#4b796b157cb2b67b0ab166a2238fe4e9473bfd52" +source = "git+https://github.com/gfx-rs/naga?rev=568d7c4c136dada369ef7f59ee8414a263d6c7b2#568d7c4c136dada369ef7f59ee8414a263d6c7b2" dependencies = [ "bit-set", "bitflags", diff --git a/Cargo.toml b/Cargo.toml index ef38332f5..21380f7bb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -42,7 +42,7 @@ version = "0.15" [workspace.dependencies.naga] git = "https://github.com/gfx-rs/naga" -rev = "4b796b157cb2b67b0ab166a2238fe4e9473bfd52" +rev = "568d7c4c136dada369ef7f59ee8414a263d6c7b2" version = "0.11.0" [workspace.dependencies] diff --git a/wgpu-core/Cargo.toml b/wgpu-core/Cargo.toml index 95a8133d1..18ebdce4c 100644 --- a/wgpu-core/Cargo.toml +++ b/wgpu-core/Cargo.toml @@ -70,7 +70,7 @@ thiserror = "1" [dependencies.naga] git = "https://github.com/gfx-rs/naga" -rev = "4b796b157cb2b67b0ab166a2238fe4e9473bfd52" +rev = "568d7c4c136dada369ef7f59ee8414a263d6c7b2" version = "0.11.0" features = ["clone", "span", "validate"] diff --git a/wgpu-hal/Cargo.toml b/wgpu-hal/Cargo.toml index e198ab7e8..90cd13c61 100644 --- a/wgpu-hal/Cargo.toml +++ b/wgpu-hal/Cargo.toml @@ -119,14 +119,14 @@ android_system_properties = "0.1.1" [dependencies.naga] git = "https://github.com/gfx-rs/naga" -rev = "4b796b157cb2b67b0ab166a2238fe4e9473bfd52" +rev = "568d7c4c136dada369ef7f59ee8414a263d6c7b2" version = "0.11.0" features = ["clone"] # DEV dependencies [dev-dependencies.naga] git = "https://github.com/gfx-rs/naga" -rev = "4b796b157cb2b67b0ab166a2238fe4e9473bfd52" +rev = "568d7c4c136dada369ef7f59ee8414a263d6c7b2" version = "0.11.0" features = ["wgsl-in"] diff --git a/wgpu/tests/common/copy_texture_to_buffer.wgsl b/wgpu/tests/common/copy_texture_to_buffer.wgsl index 2e2c08f95..bfea773d9 100644 --- a/wgpu/tests/common/copy_texture_to_buffer.wgsl +++ b/wgpu/tests/common/copy_texture_to_buffer.wgsl @@ -6,11 +6,11 @@ var output: array<{{type}}>; @compute @workgroup_size(1) fn copy_texture_to_buffer() { - let layers = textureNumLayers(texture); + let layers = i32(textureNumLayers(texture)); let dim = textureDimensions(texture); for (var l = 0; l < layers; l++) { - for (var y = 0; y < dim.y; y++) { - for (var x = 0; x < dim.x; x++) { + for (var y = 0u; y < dim.y; y++) { + for (var x = 0u; x < dim.x; x++) { output[x + y * dim.x] = textureLoad(texture, vec2(x, y), l, 0).x; } }