diff --git a/wgpu/Cargo.toml b/wgpu/Cargo.toml index 9154afb45..af6a99906 100644 --- a/wgpu/Cargo.toml +++ b/wgpu/Cargo.toml @@ -26,20 +26,20 @@ cross = ["wgc/cross"] [target.'cfg(not(target_arch = "wasm32"))'.dependencies.wgc] package = "wgpu-core" git = "https://github.com/gfx-rs/wgpu" -rev = "7ce535cc97958d8e224247764f3d57c162594504" +rev = "eadaa1b7d8f585761e28445904fe619b180aca0d" features = ["raw-window-handle"] [target.'cfg(target_arch = "wasm32")'.dependencies.wgc] package = "wgpu-core" git = "https://github.com/gfx-rs/wgpu" -rev = "7ce535cc97958d8e224247764f3d57c162594504" +rev = "eadaa1b7d8f585761e28445904fe619b180aca0d" features = ["raw-window-handle"] optional = true [dependencies.wgt] package = "wgpu-types" git = "https://github.com/gfx-rs/wgpu" -rev = "7ce535cc97958d8e224247764f3d57c162594504" +rev = "eadaa1b7d8f585761e28445904fe619b180aca0d" [dependencies] arrayvec = "0.5" diff --git a/wgpu/src/backend/direct.rs b/wgpu/src/backend/direct.rs index ad9f5fa09..c50a599c3 100644 --- a/wgpu/src/backend/direct.rs +++ b/wgpu/src/backend/direct.rs @@ -1412,11 +1412,13 @@ impl crate::Context for Context { label: desc.label.map(Borrowed), format: desc.format, dimension: desc.dimension, - aspect: desc.aspect, - base_mip_level: desc.base_mip_level, - mip_level_count: desc.mip_level_count, - base_array_layer: desc.base_array_layer, - array_layer_count: desc.array_layer_count, + range: wgt::ImageSubresourceRange { + aspect: desc.aspect, + base_mip_level: desc.base_mip_level, + mip_level_count: desc.mip_level_count, + base_array_layer: desc.base_array_layer, + array_layer_count: desc.array_layer_count, + }, }; let global = &self.0; let (id, error) = wgc::gfx_select!(