Skip to content

Commit 45e96e5

Browse files
authored
docs: Fix comment in COPY_BYTES_PER_ROW_ALIGNMENT to include copy_texture_to_buffer (#8029)
1 parent 58b6135 commit 45e96e5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

wgpu-types/src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,14 @@ pub type ShaderLocation = u32;
7272
/// [dynamic bind group offsets](../wgpu/struct.RenderPass.html#method.set_bind_group).
7373
pub type DynamicOffset = u32;
7474

75-
/// Buffer-to-texture copies must have [`bytes_per_row`] aligned to this number.
75+
/// Buffer-texture copies must have [`bytes_per_row`] aligned to this number.
7676
///
77-
/// This doesn't apply to [`Queue::write_texture`][Qwt], only to [`copy_buffer_to_texture()`].
77+
/// This doesn't apply to [`Queue::write_texture`][Qwt], only to [`copy_buffer_to_texture()`]
78+
/// and [`copy_texture_to_buffer()`].
7879
///
7980
/// [`bytes_per_row`]: TexelCopyBufferLayout::bytes_per_row
8081
/// [`copy_buffer_to_texture()`]: ../wgpu/struct.Queue.html#method.copy_buffer_to_texture
82+
/// [`copy_texture_to_buffer()`]: ../wgpu/struct.Queue.html#method.copy_texture_to_buffer
8183
/// [Qwt]: ../wgpu/struct.Queue.html#method.write_texture
8284
pub const COPY_BYTES_PER_ROW_ALIGNMENT: u32 = 256;
8385

0 commit comments

Comments
 (0)