Enum ddsfile::DxgiFormat
[−]
pub enum DxgiFormat { 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
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
Trait Implementations
impl Debug for DxgiFormat
[src]
impl Clone for DxgiFormat
[src]
fn clone(&self) -> DxgiFormat
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for DxgiFormat
[src]
impl PartialEq for DxgiFormat
[src]
fn eq(&self, __arg_0: &DxgiFormat) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for DxgiFormat
[src]
impl Hash for DxgiFormat
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl FromPrimitive for DxgiFormat
fn from_i64(n: i64) -> Option<Self>
Convert an i64
to return an optional value of this type. If the type cannot be represented by this value, the None
is returned. Read more
fn from_u64(n: u64) -> Option<Self>
Convert an u64
to return an optional value of this type. If the type cannot be represented by this value, the None
is returned. Read more
fn from_isize(n: isize) -> Option<Self>
[src]
Convert an isize
to return an optional value of this type. If the value cannot be represented by this value, the None
is returned. Read more
fn from_i8(n: i8) -> Option<Self>
[src]
Convert an i8
to return an optional value of this type. If the type cannot be represented by this value, the None
is returned. Read more
fn from_i16(n: i16) -> Option<Self>
[src]
Convert an i16
to return an optional value of this type. If the type cannot be represented by this value, the None
is returned. Read more
fn from_i32(n: i32) -> Option<Self>
[src]
Convert an i32
to return an optional value of this type. If the type cannot be represented by this value, the None
is returned. Read more
fn from_usize(n: usize) -> Option<Self>
[src]
Convert a usize
to return an optional value of this type. If the type cannot be represented by this value, the None
is returned. Read more
fn from_u8(n: u8) -> Option<Self>
[src]
Convert an u8
to return an optional value of this type. If the type cannot be represented by this value, the None
is returned. Read more
fn from_u16(n: u16) -> Option<Self>
[src]
Convert an u16
to return an optional value of this type. If the type cannot be represented by this value, the None
is returned. Read more
fn from_u32(n: u32) -> Option<Self>
[src]
Convert an u32
to return an optional value of this type. If the type cannot be represented by this value, the None
is returned. Read more
fn from_f32(n: f32) -> Option<Self>
[src]
Convert a f32
to return an optional value of this type. If the type cannot be represented by this value, the None
is returned. Read more
fn from_f64(n: f64) -> Option<Self>
[src]
Convert a f64
to return an optional value of this type. If the type cannot be represented by this value, the None
is returned. Read more
impl DataFormat for DxgiFormat
[src]
fn get_pitch(&self, width: u32) -> Option<u32>
[src]
This gets the number of bytes required to store one row of data
fn get_bits_per_pixel(&self) -> Option<u8>
[src]
This gets the number of bits required to store a single pixel. It is only defined for uncompressed formats Read more
fn get_block_size(&self) -> Option<u32>
[src]
This gets a block compression format's block size, and is only defined for compressed formats Read more
fn get_fourcc(&self) -> Option<FourCC>
[src]
Get the fourcc code for this format, if known
fn requires_extension(&self) -> bool
[src]
Returns true if the DX10 extention is required to use this format.
fn get_pitch_height(&self) -> u32
[src]
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
fn get_minimum_mipmap_size_in_bytes(&self) -> Option<u32>
[src]
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