mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
docs: Fix comment in COPY_BYTES_PER_ROW_ALIGNMENT to include copy_texture_to_buffer (#8029)
This commit is contained in:
parent
58b6135872
commit
45e96e593f
@ -72,12 +72,14 @@ pub type ShaderLocation = u32;
|
|||||||
/// [dynamic bind group offsets](../wgpu/struct.RenderPass.html#method.set_bind_group).
|
/// [dynamic bind group offsets](../wgpu/struct.RenderPass.html#method.set_bind_group).
|
||||||
pub type DynamicOffset = u32;
|
pub type DynamicOffset = u32;
|
||||||
|
|
||||||
/// Buffer-to-texture copies must have [`bytes_per_row`] aligned to this number.
|
/// Buffer-texture copies must have [`bytes_per_row`] aligned to this number.
|
||||||
///
|
///
|
||||||
/// This doesn't apply to [`Queue::write_texture`][Qwt], only to [`copy_buffer_to_texture()`].
|
/// This doesn't apply to [`Queue::write_texture`][Qwt], only to [`copy_buffer_to_texture()`]
|
||||||
|
/// and [`copy_texture_to_buffer()`].
|
||||||
///
|
///
|
||||||
/// [`bytes_per_row`]: TexelCopyBufferLayout::bytes_per_row
|
/// [`bytes_per_row`]: TexelCopyBufferLayout::bytes_per_row
|
||||||
/// [`copy_buffer_to_texture()`]: ../wgpu/struct.Queue.html#method.copy_buffer_to_texture
|
/// [`copy_buffer_to_texture()`]: ../wgpu/struct.Queue.html#method.copy_buffer_to_texture
|
||||||
|
/// [`copy_texture_to_buffer()`]: ../wgpu/struct.Queue.html#method.copy_texture_to_buffer
|
||||||
/// [Qwt]: ../wgpu/struct.Queue.html#method.write_texture
|
/// [Qwt]: ../wgpu/struct.Queue.html#method.write_texture
|
||||||
pub const COPY_BYTES_PER_ROW_ALIGNMENT: u32 = 256;
|
pub const COPY_BYTES_PER_ROW_ALIGNMENT: u32 = 256;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user