Enum wgpu::AstcChannel
source · #[repr(C)]pub enum AstcChannel {
Unorm = 0,
UnormSrgb = 1,
Hdr = 2,
}
Expand description
ASTC RGBA channel
Variants§
Unorm = 0
8 bit integer RGBA, [0, 255] converted to/from linear-color float [0, 1] in shader.
Features::TEXTURE_COMPRESSION_ASTC
must be enabled to use this channel.
UnormSrgb = 1
8 bit integer RGBA, Srgb-color [0, 255] converted to/from linear-color float [0, 1] in shader.
Features::TEXTURE_COMPRESSION_ASTC
must be enabled to use this channel.
Hdr = 2
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<AstcChannel, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<AstcChannel, <__D as Deserializer<'de>>::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 for AstcChannel
impl PartialEq 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 ==
.source§impl Serialize for AstcChannel
impl Serialize for AstcChannel
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for AstcChannel
impl Eq for AstcChannel
impl StructuralEq for AstcChannel
impl StructuralPartialEq for AstcChannel
Auto Trait Implementations§
impl RefUnwindSafe for AstcChannel
impl Send for AstcChannel
impl Sync for AstcChannel
impl Unpin for AstcChannel
impl UnwindSafe for AstcChannel
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more