#[repr(u32)]
pub enum TextureFormat {
Show 89 variants BC1 = 0, BC2 = 1, BC3 = 2, BC4 = 3, BC5 = 4, BC6H = 5, BC7 = 6, ETC1 = 7, ETC2 = 8, ETC2A = 9, ETC2A1 = 10, PTC12 = 11, PTC14 = 12, PTC12A = 13, PTC14A = 14, PTC22 = 15, PTC24 = 16, ATC = 17, ATCE = 18, ATCI = 19, ASTC4x4 = 20, ASTC5x5 = 21, ASTC6x6 = 22, ASTC8x5 = 23, ASTC8x6 = 24, ASTC10x5 = 25, Unknown = 26, R1 = 27, A8 = 28, R8 = 29, R8I = 30, R8U = 31, R8S = 32, R16 = 33, R16I = 34, R16U = 35, R16F = 36, R16S = 37, R32I = 38, R32U = 39, R32F = 40, RG8 = 41, RG8I = 42, RG8U = 43, RG8S = 44, RG16 = 45, RG16I = 46, RG16U = 47, RG16F = 48, RG16S = 49, RG32I = 50, RG32U = 51, RG32F = 52, RGB8 = 53, RGB8I = 54, RGB8U = 55, RGB8S = 56, RGB9E5F = 57, BGRA8 = 58, RGBA8 = 59, RGBA8I = 60, RGBA8U = 61, RGBA8S = 62, RGBA16 = 63, RGBA16I = 64, RGBA16U = 65, RGBA16F = 66, RGBA16S = 67, RGBA32I = 68, RGBA32U = 69, RGBA32F = 70, B5G6R5 = 71, R5G6B5 = 72, BGRA4 = 73, RGBA4 = 74, BGR5A1 = 75, RGB5A1 = 76, RGB10A2 = 77, RG11B10F = 78, UnknownDepth = 79, D16 = 80, D24 = 81, D24S8 = 82, D32 = 83, D16F = 84, D24F = 85, D32F = 86, D0S8 = 87, Count = 88,
}
Expand description

Texture format enum.

Notation:

  RGBA16S
  ^   ^ ^
  |   | +-- [ ]Unorm
  |   |     [F]loat
  |   |     [S]norm
  |   |     [I]nt
  |   |     [U]int
  |   +---- Number of bits per component
  +-------- Components

@attention Availability depends on Caps (see: formats).

Variants§

§

BC1 = 0

DXT1 R5G6B5A1

§

BC2 = 1

DXT3 R5G6B5A4

§

BC3 = 2

DXT5 R5G6B5A8

§

BC4 = 3

LATC1/ATI1 R8

§

BC5 = 4

LATC2/ATI2 RG8

§

BC6H = 5

BC6H RGB16F

§

BC7 = 6

BC7 RGB 4-7 bits per color channel, 0-8 bits alpha

§

ETC1 = 7

ETC1 RGB8

§

ETC2 = 8

ETC2 RGB8

§

ETC2A = 9

ETC2 RGBA8

§

ETC2A1 = 10

ETC2 RGB8A1

§

PTC12 = 11

PVRTC1 RGB 2BPP

§

PTC14 = 12

PVRTC1 RGB 4BPP

§

PTC12A = 13

PVRTC1 RGBA 2BPP

§

PTC14A = 14

PVRTC1 RGBA 4BPP

§

PTC22 = 15

PVRTC2 RGBA 2BPP

§

PTC24 = 16

PVRTC2 RGBA 4BPP

§

ATC = 17

ATC RGB 4BPP

§

ATCE = 18

ATCE RGBA 8 BPP explicit alpha

§

ATCI = 19

ATCI RGBA 8 BPP interpolated alpha

§

ASTC4x4 = 20

ASTC 4x4 8.0 BPP

§

ASTC5x5 = 21

ASTC 5x5 5.12 BPP

§

ASTC6x6 = 22

ASTC 6x6 3.56 BPP

§

ASTC8x5 = 23

ASTC 8x5 3.20 BPP

§

ASTC8x6 = 24

ASTC 8x6 2.67 BPP

§

ASTC10x5 = 25

ASTC 10x5 2.56 BPP

§

Unknown = 26

Compressed formats above.

§

R1 = 27

§

A8 = 28

§

R8 = 29

§

R8I = 30

§

R8U = 31

§

R8S = 32

§

R16 = 33

§

R16I = 34

§

R16U = 35

§

R16F = 36

§

R16S = 37

§

R32I = 38

§

R32U = 39

§

R32F = 40

§

RG8 = 41

§

RG8I = 42

§

RG8U = 43

§

RG8S = 44

§

RG16 = 45

§

RG16I = 46

§

RG16U = 47

§

RG16F = 48

§

RG16S = 49

§

RG32I = 50

§

RG32U = 51

§

RG32F = 52

§

RGB8 = 53

§

RGB8I = 54

§

RGB8U = 55

§

RGB8S = 56

§

RGB9E5F = 57

§

BGRA8 = 58

§

RGBA8 = 59

§

RGBA8I = 60

§

RGBA8U = 61

§

RGBA8S = 62

§

RGBA16 = 63

§

RGBA16I = 64

§

RGBA16U = 65

§

RGBA16F = 66

§

RGBA16S = 67

§

RGBA32I = 68

§

RGBA32U = 69

§

RGBA32F = 70

§

B5G6R5 = 71

§

R5G6B5 = 72

§

BGRA4 = 73

§

RGBA4 = 74

§

BGR5A1 = 75

§

RGB5A1 = 76

§

RGB10A2 = 77

§

RG11B10F = 78

§

UnknownDepth = 79

Depth formats below.

§

D16 = 80

§

D24 = 81

§

D24S8 = 82

§

D32 = 83

§

D16F = 84

§

D24F = 85

§

D32F = 86

§

D0S8 = 87

§

Count = 88

Number of entries in the enum

Trait Implementations§

source§

impl Clone for TextureFormat

source§

fn clone(&self) -> TextureFormat

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for TextureFormat

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for TextureFormat

source§

fn eq(&self, other: &TextureFormat) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for TextureFormat

source§

impl StructuralPartialEq for TextureFormat

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.