pub enum DxgiFormat {
Show 120 variants Unknown, R32G32B32A32_Typeless, R32G32B32A32_Float, R32G32B32A32_UInt, R32G32B32A32_SInt, R32G32B32_Typeless, R32G32B32_Float, R32G32B32_UInt, R32G32B32_SInt, R16G16B16A16_Typeless, R16G16B16A16_Float, R16G16B16A16_UNorm, R16G16B16A16_UInt, R16G16B16A16_SNorm, R16G16B16A16_SInt, R32G32_Typeless, R32G32_Float, R32G32_UInt, R32G32_SInt, R32G8X24_Typeless, D32_Float_S8X24_UInt, R32_Float_X8X24_Typeless, X32_Typeless_G8X24_UInt, R10G10B10A2_Typeless, R10G10B10A2_UNorm, R10G10B10A2_UInt, R11G11B10_Float, R8G8B8A8_Typeless, R8G8B8A8_UNorm, R8G8B8A8_UNorm_sRGB, R8G8B8A8_UInt, R8G8B8A8_SNorm, R8G8B8A8_SInt, R16G16_Typeless, R16G16_Float, R16G16_UNorm, R16G16_UInt, R16G16_SNorm, R16G16_SInt, R32_Typeless, D32_Float, R32_Float, R32_UInt, R32_SInt, R24G8_Typeless, D24_UNorm_S8_UInt, R24_UNorm_X8_Typeless, X24_Typeless_G8_UInt, R8G8_Typeless, R8G8_UNorm, R8G8_UInt, R8G8_SNorm, R8G8_SInt, R16_Typeless, R16_Float, D16_UNorm, R16_UNorm, R16_UInt, R16_SNorm, R16_SInt, R8_Typeless, R8_UNorm, R8_UInt, R8_SNorm, R8_SInt, A8_UNorm, R1_UNorm, R9G9B9E5_SharedExp, R8G8_B8G8_UNorm, G8R8_G8B8_UNorm, BC1_Typeless, BC1_UNorm, BC1_UNorm_sRGB, BC2_Typeless, BC2_UNorm, BC2_UNorm_sRGB, BC3_Typeless, BC3_UNorm, BC3_UNorm_sRGB, BC4_Typeless, BC4_UNorm, BC4_SNorm, BC5_Typeless, BC5_UNorm, BC5_SNorm, B5G6R5_UNorm, B5G5R5A1_UNorm, B8G8R8A8_UNorm, B8G8R8X8_UNorm, R10G10B10_XR_Bias_A2_UNorm, B8G8R8A8_Typeless, B8G8R8A8_UNorm_sRGB, B8G8R8X8_Typeless, B8G8R8X8_UNorm_sRGB, BC6H_Typeless, BC6H_UF16, BC6H_SF16, BC7_Typeless, BC7_UNorm, BC7_UNorm_sRGB, AYUV, Y410, Y416, NV12, P010, P016, Format_420_Opaque, YUY2, Y210, Y216, NV11, AI44, IA44, P8, A8P8, B4G4R4A4_UNorm, P208, V208, V408, Force_UInt,
}

Variants

Unknown

R32G32B32A32_Typeless

R32G32B32A32_Float

R32G32B32A32_UInt

R32G32B32A32_SInt

R32G32B32_Typeless

R32G32B32_Float

R32G32B32_UInt

R32G32B32_SInt

R16G16B16A16_Typeless

R16G16B16A16_Float

R16G16B16A16_UNorm

R16G16B16A16_UInt

R16G16B16A16_SNorm

R16G16B16A16_SInt

R32G32_Typeless

R32G32_Float

R32G32_UInt

R32G32_SInt

R32G8X24_Typeless

D32_Float_S8X24_UInt

R32_Float_X8X24_Typeless

X32_Typeless_G8X24_UInt

R10G10B10A2_Typeless

R10G10B10A2_UNorm

R10G10B10A2_UInt

R11G11B10_Float

R8G8B8A8_Typeless

R8G8B8A8_UNorm

R8G8B8A8_UNorm_sRGB

R8G8B8A8_UInt

R8G8B8A8_SNorm

R8G8B8A8_SInt

R16G16_Typeless

R16G16_Float

R16G16_UNorm

R16G16_UInt

R16G16_SNorm

R16G16_SInt

R32_Typeless

D32_Float

R32_Float

R32_UInt

R32_SInt

R24G8_Typeless

D24_UNorm_S8_UInt

R24_UNorm_X8_Typeless

X24_Typeless_G8_UInt

R8G8_Typeless

R8G8_UNorm

R8G8_UInt

R8G8_SNorm

R8G8_SInt

R16_Typeless

R16_Float

D16_UNorm

R16_UNorm

R16_UInt

R16_SNorm

R16_SInt

R8_Typeless

R8_UNorm

R8_UInt

R8_SNorm

R8_SInt

A8_UNorm

R1_UNorm

R9G9B9E5_SharedExp

R8G8_B8G8_UNorm

G8R8_G8B8_UNorm

BC1_Typeless

BC1_UNorm

BC1_UNorm_sRGB

BC2_Typeless

BC2_UNorm

BC2_UNorm_sRGB

BC3_Typeless

BC3_UNorm

BC3_UNorm_sRGB

BC4_Typeless

BC4_UNorm

BC4_SNorm

BC5_Typeless

BC5_UNorm

BC5_SNorm

B5G6R5_UNorm

B5G5R5A1_UNorm

B8G8R8A8_UNorm

B8G8R8X8_UNorm

R10G10B10_XR_Bias_A2_UNorm

B8G8R8A8_Typeless

B8G8R8A8_UNorm_sRGB

B8G8R8X8_Typeless

B8G8R8X8_UNorm_sRGB

BC6H_Typeless

BC6H_UF16

BC6H_SF16

BC7_Typeless

BC7_UNorm

BC7_UNorm_sRGB

AYUV

Y410

Y416

NV12

P010

P016

Format_420_Opaque

YUY2

Y210

Y216

NV11

AI44

IA44

P8

A8P8

B4G4R4A4_UNorm

P208

V208

V408

Force_UInt

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

This gets the number of bytes required to store one row of data

This gets the number of bits required to store a single pixel. It is only defined for uncompressed formats Read more

This gets a block compression format’s block size, and is only defined for compressed formats Read more

Get the fourcc code for this format, if known

Returns true if the DX10 extention is required to use this format.

This gets the height of each row of data. Normally it is 1, but for block compressed textures, each row is 4 pixels high. Read more

This gets the minimum mipmap size in bytes. Even if they go all the way down to 1x1, there is a minimum number of bytes based on bits per pixel or blocksize. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Convert an i64 to return an optional value of this type. If the type cannot be represented by this value, then None is returned. Read more

Convert an u64 to return an optional value of this type. If the type cannot be represented by this value, then None is returned. Read more

Convert an isize to return an optional value of this type. If the value cannot be represented by this value, then None is returned. Read more

Convert an i8 to return an optional value of this type. If the type cannot be represented by this value, then None is returned. Read more

Convert an i16 to return an optional value of this type. If the type cannot be represented by this value, then None is returned. Read more

Convert an i32 to return an optional value of this type. If the type cannot be represented by this value, then None is returned. Read more

Convert an i128 to return an optional value of this type. If the type cannot be represented by this value, then None is returned. Read more

Convert a usize to return an optional value of this type. If the type cannot be represented by this value, then None is returned. Read more

Convert an u8 to return an optional value of this type. If the type cannot be represented by this value, then None is returned. Read more

Convert an u16 to return an optional value of this type. If the type cannot be represented by this value, then None is returned. Read more

Convert an u32 to return an optional value of this type. If the type cannot be represented by this value, then None is returned. Read more

Convert an u128 to return an optional value of this type. If the type cannot be represented by this value, then None is returned. Read more

Convert a f32 to return an optional value of this type. If the type cannot be represented by this value, then None is returned. Read more

Convert a f64 to return an optional value of this type. If the type cannot be represented by this value, then None is returned. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.