Format

Enum Format 

Source
#[repr(i32)]
pub enum Format {
Show 122 variants Unknown = 0, R32G32B32A32Typeless = 1, R32G32B32A32Float = 2, R32G32B32A32Uint = 3, R32G32B32A32Sint = 4, R32G32B32Typeless = 5, R32G32B32Float = 6, R32G32B32Uint = 7, R32G32B32Sint = 8, R16G16B16A16Typeless = 9, R16G16B16A16Float = 10, R16G16B16A16Unorm = 11, R16G16B16A16Uint = 12, R16G16B16A16Snorm = 13, R16G16B16A16Sint = 14, R32G32Typeless = 15, R32G32Float = 16, R32G32Uint = 17, R32G32Sint = 18, R32G8X24Typeless = 19, D32FloatS8X24Uint = 20, R32FloatX8X24Typeless = 21, X32TypelessG8X24Uint = 22, R10G10B10A2Typeless = 23, R10G10B10A2Unorm = 24, R10G10B10A2Uint = 25, R11G11B10Float = 26, R8G8B8A8Typeless = 27, R8G8B8A8Unorm = 28, R8G8B8A8UnormSrgb = 29, R8G8B8A8Uint = 30, R8G8B8A8Snorm = 31, R8G8B8A8Sint = 32, R16G16Typeless = 33, R16G16Float = 34, R16G16Unorm = 35, R16G16Uint = 36, R16G16Snorm = 37, R16G16Sint = 38, R32Typeless = 39, D32Float = 40, R32Float = 41, R32Uint = 42, R32Sint = 43, R24G8Typeless = 44, D24UnormS8Uint = 45, R24UnormX8Typeless = 46, X24TypelessG8Uint = 47, R8G8Typeless = 48, R8G8Unorm = 49, R8G8Uint = 50, R8G8Snorm = 51, R8G8Sint = 52, R16Typeless = 53, R16Float = 54, D16Unorm = 55, R16Unorm = 56, R16Uint = 57, R16Snorm = 58, R16Sint = 59, R8Typeless = 60, R8Unorm = 61, R8Uint = 62, R8Snorm = 63, R8Sint = 64, A8Unorm = 65, R1Unorm = 66, R9G9B9E5Sharedexp = 67, R8G8B8G8Unorm = 68, G8R8G8B8Unorm = 69, Bc1Typeless = 70, Bc1Unorm = 71, Bc1UnormSrgb = 72, Bc2Typeless = 73, Bc2Unorm = 74, Bc2UnormSrgb = 75, Bc3Typeless = 76, Bc3Unorm = 77, Bc3UnormSrgb = 78, Bc4Typeless = 79, Bc4Unorm = 80, Bc4Snorm = 81, Bc5Typeless = 82, Bc5Unorm = 83, Bc5Snorm = 84, B5G6R5Unorm = 85, B5G5R5A1Unorm = 86, B8G8R8A8Unorm = 87, B8G8R8X8Unorm = 88, R10G10B10XrBiasA2Unorm = 89, B8G8R8A8Typeless = 90, B8G8R8A8UnormSrgb = 91, B8G8R8X8Typeless = 92, B8G8R8X8UnormSrgb = 93, Bc6HTypeless = 94, Bc6HUf16 = 95, Bc6HSf16 = 96, Bc7Typeless = 97, Bc7Unorm = 98, Bc7UnormSrgb = 99, Ayuv = 100, Y410 = 101, Y416 = 102, Nv12 = 103, P010 = 104, P016 = 105, F420Opaque = 106, Yuy2 = 107, Y210 = 108, Y216 = 109, Nv11 = 110, Ai44 = 111, Ia44 = 112, P8 = 113, A8P8 = 114, B4G4R4A4Unorm = 115, P208 = 130, V208 = 131, V408 = 132, SamplerFeedbackMinMipOpaque = 189, SamplerFeedbackMipRegionUsedOpaque = 190, ForceUint = -1,
}

Variants§

§

Unknown = 0

§

R32G32B32A32Typeless = 1

§

R32G32B32A32Float = 2

§

R32G32B32A32Uint = 3

§

R32G32B32A32Sint = 4

§

R32G32B32Typeless = 5

§

R32G32B32Float = 6

§

R32G32B32Uint = 7

§

R32G32B32Sint = 8

§

R16G16B16A16Typeless = 9

§

R16G16B16A16Float = 10

§

R16G16B16A16Unorm = 11

§

R16G16B16A16Uint = 12

§

R16G16B16A16Snorm = 13

§

R16G16B16A16Sint = 14

§

R32G32Typeless = 15

§

R32G32Float = 16

§

R32G32Uint = 17

§

R32G32Sint = 18

§

R32G8X24Typeless = 19

§

D32FloatS8X24Uint = 20

§

R32FloatX8X24Typeless = 21

§

X32TypelessG8X24Uint = 22

§

R10G10B10A2Typeless = 23

§

R10G10B10A2Unorm = 24

§

R10G10B10A2Uint = 25

§

R11G11B10Float = 26

§

R8G8B8A8Typeless = 27

§

R8G8B8A8Unorm = 28

§

R8G8B8A8UnormSrgb = 29

§

R8G8B8A8Uint = 30

§

R8G8B8A8Snorm = 31

§

R8G8B8A8Sint = 32

§

R16G16Typeless = 33

§

R16G16Float = 34

§

R16G16Unorm = 35

§

R16G16Uint = 36

§

R16G16Snorm = 37

§

R16G16Sint = 38

§

R32Typeless = 39

§

D32Float = 40

§

R32Float = 41

§

R32Uint = 42

§

R32Sint = 43

§

R24G8Typeless = 44

§

D24UnormS8Uint = 45

§

R24UnormX8Typeless = 46

§

X24TypelessG8Uint = 47

§

R8G8Typeless = 48

§

R8G8Unorm = 49

§

R8G8Uint = 50

§

R8G8Snorm = 51

§

R8G8Sint = 52

§

R16Typeless = 53

§

R16Float = 54

§

D16Unorm = 55

§

R16Unorm = 56

§

R16Uint = 57

§

R16Snorm = 58

§

R16Sint = 59

§

R8Typeless = 60

§

R8Unorm = 61

§

R8Uint = 62

§

R8Snorm = 63

§

R8Sint = 64

§

A8Unorm = 65

§

R1Unorm = 66

§

R9G9B9E5Sharedexp = 67

§

R8G8B8G8Unorm = 68

§

G8R8G8B8Unorm = 69

§

Bc1Typeless = 70

§

Bc1Unorm = 71

§

Bc1UnormSrgb = 72

§

Bc2Typeless = 73

§

Bc2Unorm = 74

§

Bc2UnormSrgb = 75

§

Bc3Typeless = 76

§

Bc3Unorm = 77

§

Bc3UnormSrgb = 78

§

Bc4Typeless = 79

§

Bc4Unorm = 80

§

Bc4Snorm = 81

§

Bc5Typeless = 82

§

Bc5Unorm = 83

§

Bc5Snorm = 84

§

B5G6R5Unorm = 85

§

B5G5R5A1Unorm = 86

§

B8G8R8A8Unorm = 87

§

B8G8R8X8Unorm = 88

§

R10G10B10XrBiasA2Unorm = 89

§

B8G8R8A8Typeless = 90

§

B8G8R8A8UnormSrgb = 91

§

B8G8R8X8Typeless = 92

§

B8G8R8X8UnormSrgb = 93

§

Bc6HTypeless = 94

§

Bc6HUf16 = 95

§

Bc6HSf16 = 96

§

Bc7Typeless = 97

§

Bc7Unorm = 98

§

Bc7UnormSrgb = 99

§

Ayuv = 100

§

Y410 = 101

§

Y416 = 102

§

Nv12 = 103

§

P010 = 104

§

P016 = 105

§

F420Opaque = 106

§

Yuy2 = 107

§

Y210 = 108

§

Y216 = 109

§

Nv11 = 110

§

Ai44 = 111

§

Ia44 = 112

§

P8 = 113

§

A8P8 = 114

§

B4G4R4A4Unorm = 115

§

P208 = 130

§

V208 = 131

§

V408 = 132

§

SamplerFeedbackMinMipOpaque = 189

§

SamplerFeedbackMipRegionUsedOpaque = 190

§

ForceUint = -1

Implementations§

Trait Implementations§

Source§

impl Clone for Format

Source§

fn clone(&self) -> Format

Returns a duplicate 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 Format

Source§

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

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

impl Copy for Format

Auto Trait Implementations§

§

impl Freeze for Format

§

impl RefUnwindSafe for Format

§

impl Send for Format

§

impl Sync for Format

§

impl Unpin for Format

§

impl UnwindSafe for Format

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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,

Source§

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>,

Source§

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>,

Source§

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.