From ccf079510fce667a3c82744c642eb8e5905db32d Mon Sep 17 00:00:00 2001 From: Andy Russell Date: Wed, 24 Jun 2026 14:06:19 -0400 Subject: [PATCH] impl Debug for TextureBlitter (#9730) --- CHANGELOG.md | 1 + wgpu/src/util/texture_blitter.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 593615066..72a6d167f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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` 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 diff --git a/wgpu/src/util/texture_blitter.rs b/wgpu/src/util/texture_blitter.rs index a57376dc1..c4bd3348c 100644 --- a/wgpu/src/util/texture_blitter.rs +++ b/wgpu/src/util/texture_blitter.rs @@ -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,