#[repr(transparent)]pub struct MTLPixelFormat(pub NSUInteger);MTLPixelFormat only.Expand description
Tuple Fields§
§0: NSUIntegerImplementations§
Source§impl MTLPixelFormat
impl MTLPixelFormat
pub const Invalid: Self
pub const A8Unorm: Self
pub const R8Unorm: Self
pub const R8Unorm_sRGB: Self
pub const R8Snorm: Self
pub const R8Uint: Self
pub const R8Sint: Self
pub const R16Unorm: Self
pub const R16Snorm: Self
pub const R16Uint: Self
pub const R16Sint: Self
pub const R16Float: Self
pub const RG8Unorm: Self
pub const RG8Unorm_sRGB: Self
pub const RG8Snorm: Self
pub const RG8Uint: Self
pub const RG8Sint: Self
pub const B5G6R5Unorm: Self
pub const A1BGR5Unorm: Self
pub const ABGR4Unorm: Self
pub const BGR5A1Unorm: Self
pub const R32Uint: Self
pub const R32Sint: Self
pub const R32Float: Self
pub const RG16Unorm: Self
pub const RG16Snorm: Self
pub const RG16Uint: Self
pub const RG16Sint: Self
pub const RG16Float: Self
pub const RGBA8Unorm: Self
pub const RGBA8Unorm_sRGB: Self
pub const RGBA8Snorm: Self
pub const RGBA8Uint: Self
pub const RGBA8Sint: Self
pub const BGRA8Unorm: Self
pub const BGRA8Unorm_sRGB: Self
pub const RGB10A2Unorm: Self
pub const RGB10A2Uint: Self
pub const RG11B10Float: Self
pub const RGB9E5Float: Self
pub const BGR10A2Unorm: Self
pub const BGR10_XR: Self
pub const BGR10_XR_sRGB: Self
pub const RG32Uint: Self
pub const RG32Sint: Self
pub const RG32Float: Self
pub const RGBA16Unorm: Self
pub const RGBA16Snorm: Self
pub const RGBA16Uint: Self
pub const RGBA16Sint: Self
pub const RGBA16Float: Self
pub const BGRA10_XR: Self
pub const BGRA10_XR_sRGB: Self
pub const RGBA32Uint: Self
pub const RGBA32Sint: Self
pub const RGBA32Float: Self
pub const BC1_RGBA: Self
pub const BC1_RGBA_sRGB: Self
pub const BC2_RGBA: Self
pub const BC2_RGBA_sRGB: Self
pub const BC3_RGBA: Self
pub const BC3_RGBA_sRGB: Self
pub const BC4_RUnorm: Self
pub const BC4_RSnorm: Self
pub const BC5_RGUnorm: Self
pub const BC5_RGSnorm: Self
pub const BC6H_RGBFloat: Self
pub const BC6H_RGBUfloat: Self
pub const BC7_RGBAUnorm: Self
pub const BC7_RGBAUnorm_sRGB: Self
pub const PVRTC_RGB_2BPP: Self
pub const PVRTC_RGB_2BPP_sRGB: Self
pub const PVRTC_RGB_4BPP: Self
pub const PVRTC_RGB_4BPP_sRGB: Self
pub const PVRTC_RGBA_2BPP: Self
pub const PVRTC_RGBA_2BPP_sRGB: Self
pub const PVRTC_RGBA_4BPP: Self
pub const PVRTC_RGBA_4BPP_sRGB: Self
pub const EAC_R11Unorm: Self
pub const EAC_R11Snorm: Self
pub const EAC_RG11Unorm: Self
pub const EAC_RG11Snorm: Self
pub const EAC_RGBA8: Self
pub const EAC_RGBA8_sRGB: Self
pub const ETC2_RGB8: Self
pub const ETC2_RGB8_sRGB: Self
pub const ETC2_RGB8A1: Self
pub const ETC2_RGB8A1_sRGB: Self
pub const ASTC_4x4_sRGB: Self
pub const ASTC_5x4_sRGB: Self
pub const ASTC_5x5_sRGB: Self
pub const ASTC_6x5_sRGB: Self
pub const ASTC_6x6_sRGB: Self
pub const ASTC_8x5_sRGB: Self
pub const ASTC_8x6_sRGB: Self
pub const ASTC_8x8_sRGB: Self
pub const ASTC_10x5_sRGB: Self
pub const ASTC_10x6_sRGB: Self
pub const ASTC_10x8_sRGB: Self
pub const ASTC_10x10_sRGB: Self
pub const ASTC_12x10_sRGB: Self
pub const ASTC_12x12_sRGB: Self
pub const ASTC_4x4_LDR: Self
pub const ASTC_5x4_LDR: Self
pub const ASTC_5x5_LDR: Self
pub const ASTC_6x5_LDR: Self
pub const ASTC_6x6_LDR: Self
pub const ASTC_8x5_LDR: Self
pub const ASTC_8x6_LDR: Self
pub const ASTC_8x8_LDR: Self
pub const ASTC_10x5_LDR: Self
pub const ASTC_10x6_LDR: Self
pub const ASTC_10x8_LDR: Self
pub const ASTC_10x10_LDR: Self
pub const ASTC_12x10_LDR: Self
pub const ASTC_12x12_LDR: Self
pub const ASTC_4x4_HDR: Self
pub const ASTC_5x4_HDR: Self
pub const ASTC_5x5_HDR: Self
pub const ASTC_6x5_HDR: Self
pub const ASTC_6x6_HDR: Self
pub const ASTC_8x5_HDR: Self
pub const ASTC_8x6_HDR: Self
pub const ASTC_8x8_HDR: Self
pub const ASTC_10x5_HDR: Self
pub const ASTC_10x6_HDR: Self
pub const ASTC_10x8_HDR: Self
pub const ASTC_10x10_HDR: Self
pub const ASTC_12x10_HDR: Self
pub const ASTC_12x12_HDR: Self
Sourcepub const GBGR422: Self
pub const GBGR422: Self
A pixel format where the red and green channels are subsampled horizontally. Two pixels are stored in 32 bits, with shared red and blue values, and unique green values.
This format is equivalent to YUY2, YUYV, yuvs, or GL_RGB_422_APPLE/GL_UNSIGNED_SHORT_8_8_REV_APPLE. The component order, from lowest addressed byte to highest, is Y0, Cb, Y1, Cr. There is no implicit colorspace conversion from YUV to RGB, the shader will receive (Cr, Y, Cb, 1). 422 textures must have a width that is a multiple of 2, and can only be used for 2D non-mipmap textures. When sampling, ClampToEdge is the only usable wrap mode.
Sourcepub const BGRG422: Self
pub const BGRG422: Self
A pixel format where the red and green channels are subsampled horizontally. Two pixels are stored in 32 bits, with shared red and blue values, and unique green values.
This format is equivalent to UYVY, 2vuy, or GL_RGB_422_APPLE/GL_UNSIGNED_SHORT_8_8_APPLE. The component order, from lowest addressed byte to highest, is Cb, Y0, Cr, Y1. There is no implicit colorspace conversion from YUV to RGB, the shader will receive (Cr, Y, Cb, 1). 422 textures must have a width that is a multiple of 2, and can only be used for 2D non-mipmap textures. When sampling, ClampToEdge is the only usable wrap mode.
Sourcepub const Depth16Unorm: Self
pub const Depth16Unorm: Self
A pixel format where the red and green channels are subsampled horizontally. Two pixels are stored in 32 bits, with shared red and blue values, and unique green values.
This format is equivalent to UYVY, 2vuy, or GL_RGB_422_APPLE/GL_UNSIGNED_SHORT_8_8_APPLE. The component order, from lowest addressed byte to highest, is Cb, Y0, Cr, Y1. There is no implicit colorspace conversion from YUV to RGB, the shader will receive (Cr, Y, Cb, 1). 422 textures must have a width that is a multiple of 2, and can only be used for 2D non-mipmap textures. When sampling, ClampToEdge is the only usable wrap mode.
Sourcepub const Depth32Float: Self
pub const Depth32Float: Self
A pixel format where the red and green channels are subsampled horizontally. Two pixels are stored in 32 bits, with shared red and blue values, and unique green values.
This format is equivalent to UYVY, 2vuy, or GL_RGB_422_APPLE/GL_UNSIGNED_SHORT_8_8_APPLE. The component order, from lowest addressed byte to highest, is Cb, Y0, Cr, Y1. There is no implicit colorspace conversion from YUV to RGB, the shader will receive (Cr, Y, Cb, 1). 422 textures must have a width that is a multiple of 2, and can only be used for 2D non-mipmap textures. When sampling, ClampToEdge is the only usable wrap mode.
Sourcepub const Stencil8: Self
pub const Stencil8: Self
A pixel format where the red and green channels are subsampled horizontally. Two pixels are stored in 32 bits, with shared red and blue values, and unique green values.
This format is equivalent to UYVY, 2vuy, or GL_RGB_422_APPLE/GL_UNSIGNED_SHORT_8_8_APPLE. The component order, from lowest addressed byte to highest, is Cb, Y0, Cr, Y1. There is no implicit colorspace conversion from YUV to RGB, the shader will receive (Cr, Y, Cb, 1). 422 textures must have a width that is a multiple of 2, and can only be used for 2D non-mipmap textures. When sampling, ClampToEdge is the only usable wrap mode.
Sourcepub const Depth24Unorm_Stencil8: Self
pub const Depth24Unorm_Stencil8: Self
A pixel format where the red and green channels are subsampled horizontally. Two pixels are stored in 32 bits, with shared red and blue values, and unique green values.
This format is equivalent to UYVY, 2vuy, or GL_RGB_422_APPLE/GL_UNSIGNED_SHORT_8_8_APPLE. The component order, from lowest addressed byte to highest, is Cb, Y0, Cr, Y1. There is no implicit colorspace conversion from YUV to RGB, the shader will receive (Cr, Y, Cb, 1). 422 textures must have a width that is a multiple of 2, and can only be used for 2D non-mipmap textures. When sampling, ClampToEdge is the only usable wrap mode.
Sourcepub const Depth32Float_Stencil8: Self
pub const Depth32Float_Stencil8: Self
A pixel format where the red and green channels are subsampled horizontally. Two pixels are stored in 32 bits, with shared red and blue values, and unique green values.
This format is equivalent to UYVY, 2vuy, or GL_RGB_422_APPLE/GL_UNSIGNED_SHORT_8_8_APPLE. The component order, from lowest addressed byte to highest, is Cb, Y0, Cr, Y1. There is no implicit colorspace conversion from YUV to RGB, the shader will receive (Cr, Y, Cb, 1). 422 textures must have a width that is a multiple of 2, and can only be used for 2D non-mipmap textures. When sampling, ClampToEdge is the only usable wrap mode.
Sourcepub const X32_Stencil8: Self
pub const X32_Stencil8: Self
A pixel format where the red and green channels are subsampled horizontally. Two pixels are stored in 32 bits, with shared red and blue values, and unique green values.
This format is equivalent to UYVY, 2vuy, or GL_RGB_422_APPLE/GL_UNSIGNED_SHORT_8_8_APPLE. The component order, from lowest addressed byte to highest, is Cb, Y0, Cr, Y1. There is no implicit colorspace conversion from YUV to RGB, the shader will receive (Cr, Y, Cb, 1). 422 textures must have a width that is a multiple of 2, and can only be used for 2D non-mipmap textures. When sampling, ClampToEdge is the only usable wrap mode.
Sourcepub const X24_Stencil8: Self
pub const X24_Stencil8: Self
A pixel format where the red and green channels are subsampled horizontally. Two pixels are stored in 32 bits, with shared red and blue values, and unique green values.
This format is equivalent to UYVY, 2vuy, or GL_RGB_422_APPLE/GL_UNSIGNED_SHORT_8_8_APPLE. The component order, from lowest addressed byte to highest, is Cb, Y0, Cr, Y1. There is no implicit colorspace conversion from YUV to RGB, the shader will receive (Cr, Y, Cb, 1). 422 textures must have a width that is a multiple of 2, and can only be used for 2D non-mipmap textures. When sampling, ClampToEdge is the only usable wrap mode.
Sourcepub const Unspecialized: Self
pub const Unspecialized: Self
A pixel format where the red and green channels are subsampled horizontally. Two pixels are stored in 32 bits, with shared red and blue values, and unique green values.
This format is equivalent to UYVY, 2vuy, or GL_RGB_422_APPLE/GL_UNSIGNED_SHORT_8_8_APPLE. The component order, from lowest addressed byte to highest, is Cb, Y0, Cr, Y1. There is no implicit colorspace conversion from YUV to RGB, the shader will receive (Cr, Y, Cb, 1). 422 textures must have a width that is a multiple of 2, and can only be used for 2D non-mipmap textures. When sampling, ClampToEdge is the only usable wrap mode.
Trait Implementations§
Source§impl Clone for MTLPixelFormat
impl Clone for MTLPixelFormat
Source§fn clone(&self) -> MTLPixelFormat
fn clone(&self) -> MTLPixelFormat
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more