Enum freya_engine::prelude::ColorType
#[repr(i32)]pub enum ColorType {
Show 24 variants
Unknown = 0,
Alpha8 = 1,
RGB565 = 2,
ARGB4444 = 3,
RGBA8888 = 4,
RGB888x = 5,
BGRA8888 = 6,
RGBA1010102 = 7,
BGRA1010102 = 8,
RGB101010x = 9,
BGR101010x = 10,
BGR101010xXR = 11,
Gray8 = 12,
RGBAF16Norm = 13,
RGBAF16 = 14,
RGBAF32 = 15,
R8G8UNorm = 16,
A16Float = 17,
R16G16Float = 18,
A16UNorm = 19,
R16G16UNorm = 20,
R16G16B16A16UNorm = 21,
SRGBA8888 = 22,
R8UNorm = 23,
}
Variants§
Unknown = 0
Alpha8 = 1
RGB565 = 2
ARGB4444 = 3
RGBA8888 = 4
RGB888x = 5
BGRA8888 = 6
RGBA1010102 = 7
BGRA1010102 = 8
RGB101010x = 9
BGR101010x = 10
BGR101010xXR = 11
Gray8 = 12
RGBAF16Norm = 13
RGBAF16 = 14
RGBAF32 = 15
R8G8UNorm = 16
A16Float = 17
R16G16Float = 18
A16UNorm = 19
R16G16UNorm = 20
R16G16B16A16UNorm = 21
SRGBA8888 = 22
R8UNorm = 23
Implementations§
§impl ColorType
impl ColorType
pub const fn n32() -> ColorType
👎Deprecated since 0.51.0: Use ColorType::N32
pub const N32: ColorType = _
pub const COUNT: usize = 24usize
pub fn bytes_per_pixel(self) -> usize
pub fn is_always_opaque(self) -> bool
pub fn validate_alpha_type(self, alpha_type: SkAlphaType) -> Option<SkAlphaType>
Trait Implementations§
impl Copy for ColorType
impl Eq for ColorType
impl StructuralEq for ColorType
impl StructuralPartialEq for ColorType
Auto Trait Implementations§
impl RefUnwindSafe for ColorType
impl Send for ColorType
impl Sync for ColorType
impl Unpin for ColorType
impl UnwindSafe for ColorType
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