mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-26 09:21:04 +01:00
Fix a few comments.
This commit is contained in:
1 parent
b04b6ade8d
commit
d36c74e1fe
1 file changed
+2
-2
@@ -1409,7 +1409,7 @@ pub enum TextureFormat {
|
||||
/// [`Features::TEXTURE_COMPRESSION_BC`] must be enabled to use this texture format.
|
||||
Bc1RgbaUnorm,
|
||||
/// 4x4 block compressed texture. 8 bytes per block (4 bit/px). 4 color + alpha pallet. 5 bit R + 6 bit G + 5 bit B + 1 bit alpha.
|
||||
/// Srgb-color [0, 63] ([0, 15] for alpha) converted to/from linear-color float [0, 1] in shader.
|
||||
/// Srgb-color [0, 63] ([0, 1] for alpha) converted to/from linear-color float [0, 1] in shader.
|
||||
///
|
||||
/// Also known as DXT1.
|
||||
///
|
||||
@@ -2356,7 +2356,7 @@ bitflags::bitflags! {
|
||||
/// Allows a texture to be the source in a [`CommandEncoder::copy_texture_to_buffer`] or
|
||||
/// [`CommandEncoder::copy_texture_to_texture`] operation.
|
||||
const COPY_SRC = 1 << 0;
|
||||
/// Allows a texture to be the destination in a [`CommandEncoder::copy_texture_to_buffer`],
|
||||
/// Allows a texture to be the destination in a [`CommandEncoder::copy_buffer_to_texture`],
|
||||
/// [`CommandEncoder::copy_texture_to_texture`], or [`Queue::write_texture`] operation.
|
||||
const COPY_DST = 1 << 1;
|
||||
/// Allows a texture to be a [`BindingType::Texture`] in a bind group.
|
||||
|
||||
Reference in new issue
Block a user