Enum wgpu_types::AstcChannel
source · #[repr(C)]
pub enum AstcChannel {
Unorm,
UnormSrgb,
Hdr,
}
Expand description
ASTC RGBA channel
Variants§
Unorm
8 bit integer RGBA, [0, 255] converted to/from linear-color float [0, 1] in shader.
Features::TEXTURE_COMPRESSION_ASTC_LDR
must be enabled to use this channel.
UnormSrgb
8 bit integer RGBA, Srgb-color [0, 255] converted to/from linear-color float [0, 1] in shader.
Features::TEXTURE_COMPRESSION_ASTC_LDR
must be enabled to use this channel.
Hdr
floating-point RGBA, linear-color float can be outside of the [0, 1] range.
Features::TEXTURE_COMPRESSION_ASTC_HDR
must be enabled to use this channel.
Trait Implementations§
source§impl Clone for AstcChannel
impl Clone for AstcChannel
source§fn clone(&self) -> AstcChannel
fn clone(&self) -> AstcChannel
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AstcChannel
impl Debug for AstcChannel
source§impl<'de> Deserialize<'de> for AstcChannel
impl<'de> Deserialize<'de> for AstcChannel
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for AstcChannel
impl Hash for AstcChannel
source§impl PartialEq<AstcChannel> for AstcChannel
impl PartialEq<AstcChannel> for AstcChannel
source§fn eq(&self, other: &AstcChannel) -> bool
fn eq(&self, other: &AstcChannel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.