mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
Added missing aspect field in map_texture_copy_view. (#8445)
Co-authored-by: Tim Evans <tim.evans@aranzgeo.com>
This commit is contained in:
parent
80c4468492
commit
ccc650fd0a
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user