Added missing aspect field in map_texture_copy_view. (#8445)

Co-authored-by: Tim Evans <tim.evans@aranzgeo.com>
This commit is contained in:
Tim Evans 2025-11-05 09:35:45 +13:00 committed by GitHub
parent 80c4468492
commit ccc650fd0a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -138,6 +138,7 @@ By @SupaMaggie70Incorporated in [#8206](https://github.com/gfx-rs/wgpu/pull/8206
- Removed three features from `wgpu-hal` which did nothing useful: `"cargo-clippy"`, `"gpu-allocator"`, and `"rustc-hash"`. By @kpreid in [#8357](https://github.com/gfx-rs/wgpu/pull/8357).
- `wgpu_types::PollError` now always implements the `Error` trait. By @kpreid in [#8384](https://github.com/gfx-rs/wgpu/pull/8384).
- The texture subresources used by the color attachments of a render pass are no longer allowed to overlap when accessed via different texture views. By @andyleiserson in [#8402](https://github.com/gfx-rs/wgpu/pull/8402).
- Fixed a bug where the texture aspect was not passed through when calling `copy_texture_to_buffer` in WebGPU, causing the copy to fail for depth/stencil textures. By @Tim-Evans-Seequent in [#8445](https://github.com/gfx-rs/wgpu/pull/8445).
#### DX12

View File

@ -632,6 +632,7 @@ fn map_texture_copy_view(
let mapped = webgpu_sys::GpuTexelCopyTextureInfo::new(&texture.inner);
mapped.set_mip_level(view.mip_level);
mapped.set_origin(&map_origin_3d(view.origin));
mapped.set_aspect(map_texture_aspect(view.aspect));
mapped
}