diff --git a/CHANGELOG.md b/CHANGELOG.md index 892da037ab..52af51bf8d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -90,6 +90,7 @@ By @brodycj in [#6924](https://github.com/gfx-rs/wgpu/pull/6924). #### Dx12 - Fix HLSL storage format generation. By @Vecvec in [#6993](https://github.com/gfx-rs/wgpu/pull/6993) +- Fix 3D storage texture bindings. By @SparkyPotato in [#7071](https://github.com/gfx-rs/wgpu/pull/7071) #### WebGPU diff --git a/wgpu-hal/src/dx12/view.rs b/wgpu-hal/src/dx12/view.rs index 8162b012af..fa8f2a4d61 100644 --- a/wgpu-hal/src/dx12/view.rs +++ b/wgpu-hal/src/dx12/view.rs @@ -184,8 +184,8 @@ impl ViewDescriptor { desc.ViewDimension = Direct3D12::D3D12_UAV_DIMENSION_TEXTURE3D; desc.Anonymous.Texture3D = Direct3D12::D3D12_TEX3D_UAV { MipSlice: self.mip_level_base, - FirstWSlice: self.array_layer_base, - WSize: self.array_layer_count, + FirstWSlice: 0, + WSize: u32::MAX, } } wgt::TextureViewDimension::Cube | wgt::TextureViewDimension::CubeArray => {