We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b512f7e commit db8270eCopy full SHA for db8270e
1 file changed
wgpu-types/src/texture.rs
@@ -809,7 +809,8 @@ pub struct TexelCopyBufferLayout {
809
///
810
/// Must be a multiple of 256 for [`CommandEncoder::copy_buffer_to_texture`][CEcbtt]
811
/// 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.
+ /// 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,
814
815
/// [`Queue::write_texture`][Qwt] does not have this requirement.
816
0 commit comments