#[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<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::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§impl Serialize for AstcChannel
impl Serialize 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
)