#[repr(u8)]pub enum SurfaceType {
Show 65 variants
R4_G4 = 0,
R4_G4_B4_A4 = 1,
B4_G4_R4_A4 = 2,
R5_G6_B5 = 3,
B5_G6_R5 = 4,
R5_G5_B5_A1 = 5,
B5_G5_R5_A1 = 6,
A1_R5_G5_B5 = 7,
R8 = 8,
R8_G8 = 9,
R8_G8_B8 = 10,
B8_G8_R8 = 11,
R8_G8_B8_A8 = 12,
B8_G8_R8_A8 = 13,
A8_B8_G8_R8 = 14,
A2_R10_G10_B10 = 15,
A2_B10_G10_R10 = 16,
R16 = 17,
R16_G16 = 18,
R16_G16_B16 = 19,
R16_G16_B16_A16 = 20,
R32 = 21,
R32_G32 = 22,
R32_G32_B32 = 23,
R32_G32_B32_A32 = 24,
R64 = 25,
R64_G64 = 26,
R64_G64_B64 = 27,
R64_G64_B64_A64 = 28,
B10_G11_R11 = 29,
E5_B9_G9_R9 = 30,
D16 = 31,
X8D24 = 32,
D32 = 33,
S8 = 34,
D16_S8 = 35,
D24_S8 = 36,
D32_S8 = 37,
BC1_RGB = 38,
BC1_RGBA = 39,
BC2 = 40,
BC3 = 41,
BC4 = 42,
BC5 = 43,
BC6 = 44,
BC7 = 45,
ETC2_R8_G8_B8 = 46,
ETC2_R8_G8_B8_A1 = 47,
ETC2_R8_G8_B8_A8 = 48,
EAC_R11 = 49,
EAC_R11_G11 = 50,
ASTC_4x4 = 51,
ASTC_5x4 = 52,
ASTC_5x5 = 53,
ASTC_6x5 = 54,
ASTC_6x6 = 55,
ASTC_8x5 = 56,
ASTC_8x6 = 57,
ASTC_8x8 = 58,
ASTC_10x5 = 59,
ASTC_10x6 = 60,
ASTC_10x8 = 61,
ASTC_10x10 = 62,
ASTC_12x10 = 63,
ASTC_12x12 = 64,
}
Expand description
Type of the allocated texture surface. It is supposed to only carry information about the number of bits per each channel. The actual types are up to the views to decide and interpret. The actual components are up to the swizzle to define.
Variants§
R4_G4 = 0
R4_G4_B4_A4 = 1
B4_G4_R4_A4 = 2
R5_G6_B5 = 3
B5_G6_R5 = 4
R5_G5_B5_A1 = 5
B5_G5_R5_A1 = 6
A1_R5_G5_B5 = 7
R8 = 8
R8_G8 = 9
R8_G8_B8 = 10
B8_G8_R8 = 11
R8_G8_B8_A8 = 12
B8_G8_R8_A8 = 13
A8_B8_G8_R8 = 14
A2_R10_G10_B10 = 15
A2_B10_G10_R10 = 16
R16 = 17
R16_G16 = 18
R16_G16_B16 = 19
R16_G16_B16_A16 = 20
R32 = 21
R32_G32 = 22
R32_G32_B32 = 23
R32_G32_B32_A32 = 24
R64 = 25
R64_G64 = 26
R64_G64_B64 = 27
R64_G64_B64_A64 = 28
B10_G11_R11 = 29
E5_B9_G9_R9 = 30
D16 = 31
X8D24 = 32
D32 = 33
S8 = 34
D16_S8 = 35
D24_S8 = 36
D32_S8 = 37
BC1_RGB = 38
BC1_RGBA = 39
BC2 = 40
BC3 = 41
BC4 = 42
BC5 = 43
BC6 = 44
BC7 = 45
ETC2_R8_G8_B8 = 46
ETC2_R8_G8_B8_A1 = 47
ETC2_R8_G8_B8_A8 = 48
EAC_R11 = 49
EAC_R11_G11 = 50
ASTC_4x4 = 51
ASTC_5x4 = 52
ASTC_5x5 = 53
ASTC_6x5 = 54
ASTC_6x6 = 55
ASTC_8x5 = 56
ASTC_8x6 = 57
ASTC_8x8 = 58
ASTC_10x5 = 59
ASTC_10x6 = 60
ASTC_10x8 = 61
ASTC_10x10 = 62
ASTC_12x10 = 63
ASTC_12x12 = 64
Implementations§
Source§impl SurfaceType
impl SurfaceType
Sourcepub fn describe_bits(&self) -> FormatBits
pub fn describe_bits(&self) -> FormatBits
Return the bits for this format.
Sourcepub fn desc(&self) -> FormatDesc
pub fn desc(&self) -> FormatDesc
Return the format descriptor.
Trait Implementations§
Source§impl Clone for SurfaceType
impl Clone for SurfaceType
Source§fn clone(&self) -> SurfaceType
fn clone(&self) -> SurfaceType
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 SurfaceType
impl Debug for SurfaceType
Source§impl Hash for SurfaceType
impl Hash for SurfaceType
Source§impl Ord for SurfaceType
impl Ord for SurfaceType
Source§fn cmp(&self, other: &SurfaceType) -> Ordering
fn cmp(&self, other: &SurfaceType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SurfaceType
impl PartialEq for SurfaceType
Source§impl PartialOrd for SurfaceType
impl PartialOrd for SurfaceType
impl Copy for SurfaceType
impl Eq for SurfaceType
impl StructuralPartialEq for SurfaceType
Auto Trait Implementations§
impl Freeze for SurfaceType
impl RefUnwindSafe for SurfaceType
impl Send for SurfaceType
impl Sync for SurfaceType
impl Unpin for SurfaceType
impl UnwindSafe for SurfaceType
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