DxgiFormat

Struct DxgiFormat 

Source
pub struct DxgiFormat(/* private fields */);
Expand description

Resource data formats, including fully-typed and typeless formats. A list of modifiers at the bottom of the page more fully describes each format type.

https://learn.microsoft.com/en-us/windows/win32/api/dxgiformat/ne-dxgiformat-dxgi_format

Implementations§

Source§

impl DxgiFormat

Source

pub const fn is_srgb(self) -> bool

Source

pub const fn to_srgb(self) -> DxgiFormat

Source

pub const fn to_linear(self) -> DxgiFormat

Source

pub const fn has_alpha(self) -> bool

Source§

impl DxgiFormat

Source

pub const UNKNOWN: DxgiFormat

Source

pub const R32G32B32A32_TYPELESS: DxgiFormat

Source

pub const R32G32B32A32_FLOAT: DxgiFormat

Source

pub const R32G32B32A32_UINT: DxgiFormat

Source

pub const R32G32B32A32_SINT: DxgiFormat

Source

pub const R32G32B32_TYPELESS: DxgiFormat

Source

pub const R32G32B32_FLOAT: DxgiFormat

Source

pub const R32G32B32_UINT: DxgiFormat

Source

pub const R32G32B32_SINT: DxgiFormat

Source

pub const R16G16B16A16_TYPELESS: DxgiFormat

Source

pub const R16G16B16A16_FLOAT: DxgiFormat

Source

pub const R16G16B16A16_UNORM: DxgiFormat

Source

pub const R16G16B16A16_UINT: DxgiFormat

Source

pub const R16G16B16A16_SNORM: DxgiFormat

Source

pub const R16G16B16A16_SINT: DxgiFormat

Source

pub const R32G32_TYPELESS: DxgiFormat

Source

pub const R32G32_FLOAT: DxgiFormat

Source

pub const R32G32_UINT: DxgiFormat

Source

pub const R32G32_SINT: DxgiFormat

Source

pub const R32G8X24_TYPELESS: DxgiFormat

Source

pub const D32_FLOAT_S8X24_UINT: DxgiFormat

Source

pub const R32_FLOAT_X8X24_TYPELESS: DxgiFormat

Source

pub const X32_TYPELESS_G8X24_UINT: DxgiFormat

Source

pub const R10G10B10A2_TYPELESS: DxgiFormat

Source

pub const R10G10B10A2_UNORM: DxgiFormat

Source

pub const R10G10B10A2_UINT: DxgiFormat

Source

pub const R11G11B10_FLOAT: DxgiFormat

Source

pub const R8G8B8A8_TYPELESS: DxgiFormat

Source

pub const R8G8B8A8_UNORM: DxgiFormat

Source

pub const R8G8B8A8_UNORM_SRGB: DxgiFormat

Source

pub const R8G8B8A8_UINT: DxgiFormat

Source

pub const R8G8B8A8_SNORM: DxgiFormat

Source

pub const R8G8B8A8_SINT: DxgiFormat

Source

pub const R16G16_TYPELESS: DxgiFormat

Source

pub const R16G16_FLOAT: DxgiFormat

Source

pub const R16G16_UNORM: DxgiFormat

Source

pub const R16G16_UINT: DxgiFormat

Source

pub const R16G16_SNORM: DxgiFormat

Source

pub const R16G16_SINT: DxgiFormat

Source

pub const R32_TYPELESS: DxgiFormat

Source

pub const D32_FLOAT: DxgiFormat

Source

pub const R32_FLOAT: DxgiFormat

Source

pub const R32_UINT: DxgiFormat

Source

pub const R32_SINT: DxgiFormat

Source

pub const R24G8_TYPELESS: DxgiFormat

Source

pub const D24_UNORM_S8_UINT: DxgiFormat

Source

pub const R24_UNORM_X8_TYPELESS: DxgiFormat

Source

pub const X24_TYPELESS_G8_UINT: DxgiFormat

Source

pub const R8G8_TYPELESS: DxgiFormat

Source

pub const R8G8_UNORM: DxgiFormat

Source

pub const R8G8_UINT: DxgiFormat

Source

pub const R8G8_SNORM: DxgiFormat

Source

pub const R8G8_SINT: DxgiFormat

Source

pub const R16_TYPELESS: DxgiFormat

Source

pub const R16_FLOAT: DxgiFormat

Source

pub const D16_UNORM: DxgiFormat

Source

pub const R16_UNORM: DxgiFormat

Source

pub const R16_UINT: DxgiFormat

Source

pub const R16_SNORM: DxgiFormat

Source

pub const R16_SINT: DxgiFormat

Source

pub const R8_TYPELESS: DxgiFormat

Source

pub const R8_UNORM: DxgiFormat

Source

pub const R8_UINT: DxgiFormat

Source

pub const R8_SNORM: DxgiFormat

Source

pub const R8_SINT: DxgiFormat

Source

pub const A8_UNORM: DxgiFormat

Source

pub const R1_UNORM: DxgiFormat

Source

pub const R9G9B9E5_SHAREDEXP: DxgiFormat

Source

pub const R8G8_B8G8_UNORM: DxgiFormat

Source

pub const G8R8_G8B8_UNORM: DxgiFormat

Source

pub const BC1_TYPELESS: DxgiFormat

Source

pub const BC1_UNORM: DxgiFormat

Source

pub const BC1_UNORM_SRGB: DxgiFormat

Source

pub const BC2_TYPELESS: DxgiFormat

Source

pub const BC2_UNORM: DxgiFormat

Source

pub const BC2_UNORM_SRGB: DxgiFormat

Source

pub const BC3_TYPELESS: DxgiFormat

Source

pub const BC3_UNORM: DxgiFormat

Source

pub const BC3_UNORM_SRGB: DxgiFormat

Source

pub const BC4_TYPELESS: DxgiFormat

Source

pub const BC4_UNORM: DxgiFormat

Source

pub const BC4_SNORM: DxgiFormat

Source

pub const BC5_TYPELESS: DxgiFormat

Source

pub const BC5_UNORM: DxgiFormat

Source

pub const BC5_SNORM: DxgiFormat

Source

pub const B5G6R5_UNORM: DxgiFormat

Source

pub const B5G5R5A1_UNORM: DxgiFormat

Source

pub const B8G8R8A8_UNORM: DxgiFormat

Source

pub const B8G8R8X8_UNORM: DxgiFormat

Source

pub const R10G10B10_XR_BIAS_A2_UNORM: DxgiFormat

Source

pub const B8G8R8A8_TYPELESS: DxgiFormat

Source

pub const B8G8R8A8_UNORM_SRGB: DxgiFormat

Source

pub const B8G8R8X8_TYPELESS: DxgiFormat

Source

pub const B8G8R8X8_UNORM_SRGB: DxgiFormat

Source

pub const BC6H_TYPELESS: DxgiFormat

Source

pub const BC6H_UF16: DxgiFormat

Source

pub const BC6H_SF16: DxgiFormat

Source

pub const BC7_TYPELESS: DxgiFormat

Source

pub const BC7_UNORM: DxgiFormat

Source

pub const BC7_UNORM_SRGB: DxgiFormat

Source

pub const AYUV: DxgiFormat

Source

pub const Y410: DxgiFormat

Source

pub const Y416: DxgiFormat

Source

pub const NV12: DxgiFormat

Source

pub const P010: DxgiFormat

Source

pub const P016: DxgiFormat

Source

pub const OPAQUE_420: DxgiFormat

Source

pub const YUY2: DxgiFormat

Source

pub const Y210: DxgiFormat

Source

pub const Y216: DxgiFormat

Source

pub const NV11: DxgiFormat

Source

pub const AI44: DxgiFormat

Source

pub const IA44: DxgiFormat

Source

pub const P8: DxgiFormat

Source

pub const A8P8: DxgiFormat

Source

pub const B4G4R4A4_UNORM: DxgiFormat

Source

pub const P208: DxgiFormat

Source

pub const V208: DxgiFormat

Source

pub const V408: DxgiFormat

Source

pub const ASTC_4X4_TYPELESS: DxgiFormat

Source

pub const ASTC_4X4_UNORM: DxgiFormat

Source

pub const ASTC_4X4_UNORM_SRGB: DxgiFormat

Source

pub const ASTC_5X4_TYPELESS: DxgiFormat

Source

pub const ASTC_5X4_UNORM: DxgiFormat

Source

pub const ASTC_5X4_UNORM_SRGB: DxgiFormat

Source

pub const ASTC_5X5_TYPELESS: DxgiFormat

Source

pub const ASTC_5X5_UNORM: DxgiFormat

Source

pub const ASTC_5X5_UNORM_SRGB: DxgiFormat

Source

pub const ASTC_6X5_TYPELESS: DxgiFormat

Source

pub const ASTC_6X5_UNORM: DxgiFormat

Source

pub const ASTC_6X5_UNORM_SRGB: DxgiFormat

Source

pub const ASTC_6X6_TYPELESS: DxgiFormat

Source

pub const ASTC_6X6_UNORM: DxgiFormat

Source

pub const ASTC_6X6_UNORM_SRGB: DxgiFormat

Source

pub const ASTC_8X5_TYPELESS: DxgiFormat

Source

pub const ASTC_8X5_UNORM: DxgiFormat

Source

pub const ASTC_8X5_UNORM_SRGB: DxgiFormat

Source

pub const ASTC_8X6_TYPELESS: DxgiFormat

Source

pub const ASTC_8X6_UNORM: DxgiFormat

Source

pub const ASTC_8X6_UNORM_SRGB: DxgiFormat

Source

pub const ASTC_8X8_TYPELESS: DxgiFormat

Source

pub const ASTC_8X8_UNORM: DxgiFormat

Source

pub const ASTC_8X8_UNORM_SRGB: DxgiFormat

Source

pub const ASTC_10X5_TYPELESS: DxgiFormat

Source

pub const ASTC_10X5_UNORM: DxgiFormat

Source

pub const ASTC_10X5_UNORM_SRGB: DxgiFormat

Source

pub const ASTC_10X6_TYPELESS: DxgiFormat

Source

pub const ASTC_10X6_UNORM: DxgiFormat

Source

pub const ASTC_10X6_UNORM_SRGB: DxgiFormat

Source

pub const ASTC_10X8_TYPELESS: DxgiFormat

Source

pub const ASTC_10X8_UNORM: DxgiFormat

Source

pub const ASTC_10X8_UNORM_SRGB: DxgiFormat

Source

pub const ASTC_10X10_TYPELESS: DxgiFormat

Source

pub const ASTC_10X10_UNORM: DxgiFormat

Source

pub const ASTC_10X10_UNORM_SRGB: DxgiFormat

Source

pub const ASTC_12X10_TYPELESS: DxgiFormat

Source

pub const ASTC_12X10_UNORM: DxgiFormat

Source

pub const ASTC_12X10_UNORM_SRGB: DxgiFormat

Source

pub const ASTC_12X12_TYPELESS: DxgiFormat

Source

pub const ASTC_12X12_UNORM: DxgiFormat

Source

pub const ASTC_12X12_UNORM_SRGB: DxgiFormat

Source

pub const A4B4G4R4_UNORM: DxgiFormat

Trait Implementations§

Source§

impl Clone for DxgiFormat

Source§

fn clone(&self) -> DxgiFormat

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 DxgiFormat

Source§

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

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

impl From<DxgiFormat> for u32

Source§

fn from(value: DxgiFormat) -> Self

Converts to this type from the input type.
Source§

impl Hash for DxgiFormat

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

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

impl PartialEq for DxgiFormat

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFrom<DxgiFormat> for PixelInfo

Source§

type Error = ()

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

fn try_from(value: DxgiFormat) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Format> for DxgiFormat

Source§

type Error = ()

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

fn try_from(value: Format) -> Result<DxgiFormat, Self::Error>

Performs the conversion.
Source§

impl TryFrom<u32> for DxgiFormat

Source§

type Error = u32

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

fn try_from(value: u32) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Copy for DxgiFormat

Source§

impl Eq for DxgiFormat

Source§

impl StructuralPartialEq for DxgiFormat

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> 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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
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.