Enum ddsfile::DxgiFormat
source · [−]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
sourceimpl DxgiFormat
impl DxgiFormat
pub fn try_from_pixel_format(pixel_format: &PixelFormat) -> Option<DxgiFormat>
Trait Implementations
sourceimpl Clone for DxgiFormat
impl Clone for DxgiFormat
sourcefn clone(&self) -> DxgiFormat
fn clone(&self) -> DxgiFormat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl DataFormat for DxgiFormat
impl DataFormat for DxgiFormat
sourcefn get_pitch(&self, width: u32) -> Option<u32>
fn get_pitch(&self, width: u32) -> Option<u32>
This gets the number of bytes required to store one row of data
sourcefn get_bits_per_pixel(&self) -> Option<u8>
fn get_bits_per_pixel(&self) -> Option<u8>
This gets the number of bits required to store a single pixel. It is only defined for uncompressed formats Read more
sourcefn get_block_size(&self) -> Option<u32>
fn get_block_size(&self) -> Option<u32>
This gets a block compression format’s block size, and is only defined for compressed formats Read more
sourcefn get_fourcc(&self) -> Option<FourCC>
fn get_fourcc(&self) -> Option<FourCC>
Get the fourcc code for this format, if known
sourcefn requires_extension(&self) -> bool
fn requires_extension(&self) -> bool
Returns true if the DX10 extention is required to use this format.
sourcefn get_pitch_height(&self) -> u32
fn get_pitch_height(&self) -> u32
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
sourcefn get_minimum_mipmap_size_in_bytes(&self) -> Option<u32>
fn get_minimum_mipmap_size_in_bytes(&self) -> Option<u32>
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
sourceimpl Debug for DxgiFormat
impl Debug for DxgiFormat
sourceimpl From<DxgiFormat> for PixelFormat
impl From<DxgiFormat> for PixelFormat
sourcefn from(format: DxgiFormat) -> PixelFormat
fn from(format: DxgiFormat) -> PixelFormat
Performs the conversion.
sourceimpl FromPrimitive for DxgiFormat
impl FromPrimitive for DxgiFormat
sourcefn from_i64(n: i64) -> Option<Self>
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, then None is returned. Read more
sourcefn from_u64(n: u64) -> Option<Self>
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, then None is returned. Read more
sourcefn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
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
sourcefn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
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
sourcefn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
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
sourcefn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
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
sourcefn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
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
sourcefn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
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
sourcefn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
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
sourcefn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
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
sourcefn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
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
sourcefn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
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
sourceimpl Hash for DxgiFormat
impl Hash for DxgiFormat
sourceimpl PartialEq<DxgiFormat> for DxgiFormat
impl PartialEq<DxgiFormat> for DxgiFormat
impl Copy for DxgiFormat
impl Eq for DxgiFormat
impl StructuralEq for DxgiFormat
impl StructuralPartialEq for DxgiFormat
Auto Trait Implementations
impl RefUnwindSafe for DxgiFormat
impl Send for DxgiFormat
impl Sync for DxgiFormat
impl Unpin for DxgiFormat
impl UnwindSafe for DxgiFormat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more