From db8270e3bc41fa91f41323a88994e8562f1cc2d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20K=C3=B6sters?= Date: Thu, 29 Jan 2026 00:03:33 +0100 Subject: [PATCH] docs: clarify bytes_per_row requirement (#8959) --- wgpu-types/src/texture.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wgpu-types/src/texture.rs b/wgpu-types/src/texture.rs index 2c8e4443c..a28abe2f9 100644 --- a/wgpu-types/src/texture.rs +++ b/wgpu-types/src/texture.rs @@ -809,7 +809,8 @@ pub struct TexelCopyBufferLayout { /// /// Must be a multiple of 256 for [`CommandEncoder::copy_buffer_to_texture`][CEcbtt] /// and [`CommandEncoder::copy_texture_to_buffer`][CEcttb]. You must manually pad the - /// image such that this is a multiple of 256. It will not affect the image data. + /// buffer as if the image width is a multiple of 256. An image of size (500, 500) can be + /// written to a buffer of size (512, 500) with `bytes_per_row` of 512, /// /// [`Queue::write_texture`][Qwt] does not have this requirement. ///