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 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 ==
.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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.