#[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
impl Copy for AstcChannel
impl Eq for AstcChannel
impl StructuralPartialEq for AstcChannel
Auto Trait Implementations§
impl Freeze for AstcChannel
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.