Skip to content

Commit dad9d0b

Browse files
authored
Fix 3D Texture Views on Dx12 (#7071)
* use all w slices * update changelog
1 parent d59dce5 commit dad9d0b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ By @brodycj in [#6924](https://github.com/gfx-rs/wgpu/pull/6924).
9090
#### Dx12
9191

9292
- Fix HLSL storage format generation. By @Vecvec in [#6993](https://github.com/gfx-rs/wgpu/pull/6993)
93+
- Fix 3D storage texture bindings. By @SparkyPotato in [#7071](https://github.com/gfx-rs/wgpu/pull/7071)
9394

9495
#### WebGPU
9596

wgpu-hal/src/dx12/view.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ impl ViewDescriptor {
184184
desc.ViewDimension = Direct3D12::D3D12_UAV_DIMENSION_TEXTURE3D;
185185
desc.Anonymous.Texture3D = Direct3D12::D3D12_TEX3D_UAV {
186186
MipSlice: self.mip_level_base,
187-
FirstWSlice: self.array_layer_base,
188-
WSize: self.array_layer_count,
187+
FirstWSlice: 0,
188+
WSize: u32::MAX,
189189
}
190190
}
191191
wgt::TextureViewDimension::Cube | wgt::TextureViewDimension::CubeArray => {

0 commit comments

Comments
 (0)