Enum wgpu::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
sourceimpl Clone for AstcChannel
impl Clone for AstcChannel
sourcefn clone(&self) -> AstcChannel
fn clone(&self) -> AstcChannel
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for AstcChannel
impl Debug for AstcChannel
sourceimpl<'de> Deserialize<'de> for AstcChannel
impl<'de> Deserialize<'de> for AstcChannel
sourcefn 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
sourceimpl Hash for AstcChannel
impl Hash for AstcChannel
sourceimpl PartialEq<AstcChannel> for AstcChannel
impl PartialEq<AstcChannel> for AstcChannel
sourcefn eq(&self, other: &AstcChannel) -> bool
fn eq(&self, other: &AstcChannel) -> bool
sourceimpl Serialize for AstcChannel
impl Serialize for AstcChannel
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.