impl Debug for TextureBlitter (#9730)

This commit is contained in:
Andy Russell authored and GitHub committed 2026-06-24 14:06:19 -04:00
1 parent 2a05cf760b
commit ccf079510f
2 files changed
+3

No files matched your search

+1
View File
@@ -195,6 +195,7 @@ By @beholdnec in [#8505](https://github.com/gfx-rs/wgpu/pull/8505).
- Relaxed locking within `wgpu-core` to enable queue submission processing on one thread to proceed while another thread is blocked in a device poll. To facilitate this, `wgpu-hal` fences are now internally synchronized. By @Vecvec in [#9475](https://github.com/gfx-rs/wgpu/pull/9475).
- `AdapterInfo::transient_saves_memory` now is `Option<bool>` instead of `bool`. It is `None` on web and `Some` on native platforms. By @beicause in [#9568](https://github.com/gfx-rs/wgpu/pull/9568).
- BREAKING: `TextureUsages::TRANSIENT` is renamed to `TextureUsages::TRANSIENT_ATTACHMENT` and brought in line with WebGPU spec. Transient textures may now only be used with `LoadOp::Clear` or `LoadOp::DontCare` (if it is available) and `StoreOp::Discard`. By @beicause in [#9568](https://github.com/gfx-rs/wgpu/pull/9568).
- Implement `Debug` for `TextureBlitter` and its builder. By @euclio in [#9370](https://github.com/gfx-rs/wgpu/pull/9730).
#### Validation
+2
View File
@@ -14,6 +14,7 @@ use crate::{
/// A builder for the [`TextureBlitter`] utility.
/// If you want the default [`TextureBlitter`] use [`TextureBlitter::new`] instead.
#[derive(Debug)]
pub struct TextureBlitterBuilder<'a> {
device: &'a Device,
format: TextureFormat,
@@ -148,6 +149,7 @@ impl<'a> TextureBlitterBuilder<'a> {
/// - Textures are in incompatible formats.
/// - Textures are of different sizes.
/// - Your copy destination is the surface texture and does not have the `COPY_DST` usage.
#[derive(Debug)]
pub struct TextureBlitter {
pipeline: RenderPipeline,
bind_group_layout: BindGroupLayout,