Skip to content

Commit db8270e

Browse files
authored
docs: clarify bytes_per_row requirement (gfx-rs#8959)
1 parent b512f7e commit db8270e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

wgpu-types/src/texture.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,8 @@ pub struct TexelCopyBufferLayout {
809809
///
810810
/// Must be a multiple of 256 for [`CommandEncoder::copy_buffer_to_texture`][CEcbtt]
811811
/// and [`CommandEncoder::copy_texture_to_buffer`][CEcttb]. You must manually pad the
812-
/// image such that this is a multiple of 256. It will not affect the image data.
812+
/// buffer as if the image width is a multiple of 256. An image of size (500, 500) can be
813+
/// written to a buffer of size (512, 500) with `bytes_per_row` of 512,
813814
///
814815
/// [`Queue::write_texture`][Qwt] does not have this requirement.
815816
///

0 commit comments

Comments
 (0)