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
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 more
sourceimpl Debug for AstcChannel
impl Debug for AstcChannel
sourceimpl Hash for AstcChannel
impl Hash for AstcChannel
sourceimpl PartialEq<AstcChannel> for AstcChannel
impl PartialEq<AstcChannel> for AstcChannel
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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