Fix 3D Texture Views on Dx12 (#7071)

* use all w slices

* update changelog
This commit is contained in:
Shaye Garg
2025-02-06 16:29:06 -06:00
committed by GitHub
parent d59dce5eea
commit dad9d0b577
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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 => {