Struct objc2_metal::MTLPixelFormat

source ·
#[repr(transparent)]
pub struct MTLPixelFormat(pub NSUInteger);
Available on crate feature MTLPixelFormat only.

Tuple Fields§

§0: NSUInteger

Implementations§

source§

impl MTLPixelFormat

source

pub const Invalid: Self = _

source

pub const A8Unorm: Self = _

source

pub const R8Unorm: Self = _

source

pub const R8Unorm_sRGB: Self = _

source

pub const R8Snorm: Self = _

source

pub const R8Uint: Self = _

source

pub const R8Sint: Self = _

source

pub const R16Unorm: Self = _

source

pub const R16Snorm: Self = _

source

pub const R16Uint: Self = _

source

pub const R16Sint: Self = _

source

pub const R16Float: Self = _

source

pub const RG8Unorm: Self = _

source

pub const RG8Unorm_sRGB: Self = _

source

pub const RG8Snorm: Self = _

source

pub const RG8Uint: Self = _

source

pub const RG8Sint: Self = _

source

pub const B5G6R5Unorm: Self = _

source

pub const A1BGR5Unorm: Self = _

source

pub const ABGR4Unorm: Self = _

source

pub const BGR5A1Unorm: Self = _

source

pub const R32Uint: Self = _

source

pub const R32Sint: Self = _

source

pub const R32Float: Self = _

source

pub const RG16Unorm: Self = _

source

pub const RG16Snorm: Self = _

source

pub const RG16Uint: Self = _

source

pub const RG16Sint: Self = _

source

pub const RG16Float: Self = _

source

pub const RGBA8Unorm: Self = _

source

pub const RGBA8Unorm_sRGB: Self = _

source

pub const RGBA8Snorm: Self = _

source

pub const RGBA8Uint: Self = _

source

pub const RGBA8Sint: Self = _

source

pub const BGRA8Unorm: Self = _

source

pub const BGRA8Unorm_sRGB: Self = _

source

pub const RGB10A2Unorm: Self = _

source

pub const RGB10A2Uint: Self = _

source

pub const RG11B10Float: Self = _

source

pub const RGB9E5Float: Self = _

source

pub const BGR10A2Unorm: Self = _

source

pub const BGR10_XR: Self = _

source

pub const BGR10_XR_sRGB: Self = _

source

pub const RG32Uint: Self = _

source

pub const RG32Sint: Self = _

source

pub const RG32Float: Self = _

source

pub const RGBA16Unorm: Self = _

source

pub const RGBA16Snorm: Self = _

source

pub const RGBA16Uint: Self = _

source

pub const RGBA16Sint: Self = _

source

pub const RGBA16Float: Self = _

source

pub const BGRA10_XR: Self = _

source

pub const BGRA10_XR_sRGB: Self = _

source

pub const RGBA32Uint: Self = _

source

pub const RGBA32Sint: Self = _

source

pub const RGBA32Float: 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_RUnorm: Self = _

source

pub const BC4_RSnorm: Self = _

source

pub const BC5_RGUnorm: Self = _

source

pub const BC5_RGSnorm: Self = _

source

pub const BC6H_RGBFloat: Self = _

source

pub const BC6H_RGBUfloat: Self = _

source

pub const BC7_RGBAUnorm: Self = _

source

pub const BC7_RGBAUnorm_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_R11Unorm: Self = _

source

pub const EAC_R11Snorm: Self = _

source

pub const EAC_RG11Unorm: Self = _

source

pub const EAC_RG11Snorm: 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 Depth16Unorm: Self = _

source

pub const Depth32Float: Self = _

source

pub const Stencil8: Self = _

source

pub const Depth24Unorm_Stencil8: Self = _

source

pub const Depth32Float_Stencil8: Self = _

source

pub const X32_Stencil8: Self = _

source

pub const X24_Stencil8: Self = _

Trait Implementations§

source§

impl Clone for MTLPixelFormat

source§

fn clone(&self) -> MTLPixelFormat

Returns a copy 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 MTLPixelFormat

source§

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

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

impl Encode for MTLPixelFormat

source§

const ENCODING: Encoding = NSUInteger::ENCODING

The Objective-C type-encoding for this type.
source§

impl Hash for MTLPixelFormat

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 Ord for MTLPixelFormat

source§

fn cmp(&self, other: &MTLPixelFormat) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for MTLPixelFormat

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for MTLPixelFormat

source§

fn partial_cmp(&self, other: &MTLPixelFormat) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl RefEncode for MTLPixelFormat

source§

const ENCODING_REF: Encoding = _

The Objective-C type-encoding for a reference of this type. Read more
source§

impl Copy for MTLPixelFormat

source§

impl Eq for MTLPixelFormat

source§

impl StructuralPartialEq for MTLPixelFormat

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> EncodeArgument for T
where T: Encode,

source§

const ENCODING_ARGUMENT: Encoding = T::ENCODING

The Objective-C type-encoding for this type.
source§

impl<T> EncodeReturn for T
where T: Encode,

source§

const ENCODING_RETURN: Encoding = T::ENCODING

The Objective-C type-encoding for this type.
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,

§

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

§

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

§

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

impl<T> AutoreleaseSafe for T
where T: ?Sized,