Skip to main content

PixelFormat

Struct PixelFormat 

Source
#[repr(transparent)]
pub struct PixelFormat(pub UInteger);
Expand description

Pixel formats for textures and render targets.

C++ equivalent: MTL::PixelFormat

Tuple Fields§

§0: UInteger

Implementations§

Source§

impl PixelFormat

Source

pub const INVALID: Self

Source

pub const A8_UNORM: Self

Source

pub const R8_UNORM: Self

Source

pub const R8_UNORM_SRGB: Self

Source

pub const R8_SNORM: Self

Source

pub const R8_UINT: Self

Source

pub const R8_SINT: Self

Source

pub const R16_UNORM: Self

Source

pub const R16_SNORM: Self

Source

pub const R16_UINT: Self

Source

pub const R16_SINT: Self

Source

pub const R16_FLOAT: Self

Source

pub const RG8_UNORM: Self

Source

pub const RG8_UNORM_SRGB: Self

Source

pub const RG8_SNORM: Self

Source

pub const RG8_UINT: Self

Source

pub const RG8_SINT: Self

Source

pub const B5G6R5_UNORM: Self

Source

pub const A1BGR5_UNORM: Self

Source

pub const ABGR4_UNORM: Self

Source

pub const BGR5A1_UNORM: Self

Source

pub const R32_UINT: Self

Source

pub const R32_SINT: Self

Source

pub const R32_FLOAT: Self

Source

pub const RG16_UNORM: Self

Source

pub const RG16_SNORM: Self

Source

pub const RG16_UINT: Self

Source

pub const RG16_SINT: Self

Source

pub const RG16_FLOAT: Self

Source

pub const RGBA8_UNORM: Self

Source

pub const RGBA8_UNORM_SRGB: Self

Source

pub const RGBA8_SNORM: Self

Source

pub const RGBA8_UINT: Self

Source

pub const RGBA8_SINT: Self

Source

pub const BGRA8_UNORM: Self

Source

pub const BGRA8_UNORM_SRGB: Self

Source

pub const RGB10A2_UNORM: Self

Source

pub const RGB10A2_UINT: Self

Source

pub const RG11B10_FLOAT: Self

Source

pub const RGB9E5_FLOAT: Self

Source

pub const BGR10A2_UNORM: Self

Source

pub const RG32_UINT: Self

Source

pub const RG32_SINT: Self

Source

pub const RG32_FLOAT: Self

Source

pub const RGBA16_UNORM: Self

Source

pub const RGBA16_SNORM: Self

Source

pub const RGBA16_UINT: Self

Source

pub const RGBA16_SINT: Self

Source

pub const RGBA16_FLOAT: Self

Source

pub const RGBA32_UINT: Self

Source

pub const RGBA32_SINT: Self

Source

pub const RGBA32_FLOAT: Self

Source

pub const BC1_RGBA: Self

Source

pub const BC1_RGBA_SRGB: Self

Source

pub const BC2_RGBA: Self

Source

pub const BC2_RGBA_SRGB: Self

Source

pub const BC3_RGBA: Self

Source

pub const BC3_RGBA_SRGB: Self

Source

pub const BC4_R_UNORM: Self

Source

pub const BC4_R_SNORM: Self

Source

pub const BC5_RG_UNORM: Self

Source

pub const BC5_RG_SNORM: Self

Source

pub const BC6H_RGB_FLOAT: Self

Source

pub const BC6H_RGB_UFLOAT: Self

Source

pub const BC7_RGBA_UNORM: Self

Source

pub const BC7_RGBA_UNORM_SRGB: Self

Source

pub const PVRTC_RGB_2BPP: Self

Source

pub const PVRTC_RGB_2BPP_SRGB: Self

Source

pub const PVRTC_RGB_4BPP: Self

Source

pub const PVRTC_RGB_4BPP_SRGB: Self

Source

pub const PVRTC_RGBA_2BPP: Self

Source

pub const PVRTC_RGBA_2BPP_SRGB: Self

Source

pub const PVRTC_RGBA_4BPP: Self

Source

pub const PVRTC_RGBA_4BPP_SRGB: Self

Source

pub const EAC_R11_UNORM: Self

Source

pub const EAC_R11_SNORM: Self

Source

pub const EAC_RG11_UNORM: Self

Source

pub const EAC_RG11_SNORM: Self

Source

pub const EAC_RGBA8: Self

Source

pub const EAC_RGBA8_SRGB: Self

Source

pub const ETC2_RGB8: Self

Source

pub const ETC2_RGB8_SRGB: Self

Source

pub const ETC2_RGB8A1: Self

Source

pub const ETC2_RGB8A1_SRGB: Self

Source

pub const ASTC_4X4_SRGB: Self

Source

pub const ASTC_5X4_SRGB: Self

Source

pub const ASTC_5X5_SRGB: Self

Source

pub const ASTC_6X5_SRGB: Self

Source

pub const ASTC_6X6_SRGB: Self

Source

pub const ASTC_8X5_SRGB: Self

Source

pub const ASTC_8X6_SRGB: Self

Source

pub const ASTC_8X8_SRGB: Self

Source

pub const ASTC_10X5_SRGB: Self

Source

pub const ASTC_10X6_SRGB: Self

Source

pub const ASTC_10X8_SRGB: Self

Source

pub const ASTC_10X10_SRGB: Self

Source

pub const ASTC_12X10_SRGB: Self

Source

pub const ASTC_12X12_SRGB: Self

Source

pub const ASTC_4X4_LDR: Self

Source

pub const ASTC_5X4_LDR: Self

Source

pub const ASTC_5X5_LDR: Self

Source

pub const ASTC_6X5_LDR: Self

Source

pub const ASTC_6X6_LDR: Self

Source

pub const ASTC_8X5_LDR: Self

Source

pub const ASTC_8X6_LDR: Self

Source

pub const ASTC_8X8_LDR: Self

Source

pub const ASTC_10X5_LDR: Self

Source

pub const ASTC_10X6_LDR: Self

Source

pub const ASTC_10X8_LDR: Self

Source

pub const ASTC_10X10_LDR: Self

Source

pub const ASTC_12X10_LDR: Self

Source

pub const ASTC_12X12_LDR: Self

Source

pub const ASTC_4X4_HDR: Self

Source

pub const ASTC_5X4_HDR: Self

Source

pub const ASTC_5X5_HDR: Self

Source

pub const ASTC_6X5_HDR: Self

Source

pub const ASTC_6X6_HDR: Self

Source

pub const ASTC_8X5_HDR: Self

Source

pub const ASTC_8X6_HDR: Self

Source

pub const ASTC_8X8_HDR: Self

Source

pub const ASTC_10X5_HDR: Self

Source

pub const ASTC_10X6_HDR: Self

Source

pub const ASTC_10X8_HDR: Self

Source

pub const ASTC_10X10_HDR: Self

Source

pub const ASTC_12X10_HDR: Self

Source

pub const ASTC_12X12_HDR: Self

Source

pub const GBGR422: Self

Source

pub const BGRG422: Self

Source

pub const DEPTH16_UNORM: Self

Source

pub const DEPTH32_FLOAT: Self

Source

pub const STENCIL8: Self

Source

pub const DEPTH24_UNORM_STENCIL8: Self

Source

pub const DEPTH32_FLOAT_STENCIL8: Self

Source

pub const X32_STENCIL8: Self

Source

pub const X24_STENCIL8: Self

Source

pub const BGRA10_XR: Self

Source

pub const BGRA10_XR_SRGB: Self

Source

pub const BGR10_XR: Self

Source

pub const BGR10_XR_SRGB: Self

Source

pub const UNSPECIALIZED: Self

Trait Implementations§

Source§

impl Clone for PixelFormat

Source§

fn clone(&self) -> PixelFormat

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 PixelFormat

Source§

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

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

impl Default for PixelFormat

Source§

fn default() -> PixelFormat

Returns the “default value” for a type. Read more
Source§

impl Hash for PixelFormat

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 PixelFormat

Source§

fn eq(&self, other: &PixelFormat) -> 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 Copy for PixelFormat

Source§

impl Eq for PixelFormat

Source§

impl StructuralPartialEq for PixelFormat

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