Enumeration Case

MTLPixelFormatStencil8

An 8-bit stencil pixel format with one 8-bit floating-point component, typically used for a stencil render target.

Declaration

MTLPixelFormatStencil8 = 253

See Also

Depth and Stencil Pixel Formats

MTLPixelFormatDepth16Unorm

A 16-bit depth pixel format with one normalized unsigned integer component, typically used for a depth render target.

MTLPixelFormatDepth32Float

A 32-bit depth pixel format with one 32-bit floating-point component, typically used for a depth render target.

MTLPixelFormatDepth24Unorm_Stencil8

A packed 32-bit combined depth and stencil pixel format with two normalized unsigned integer components: 24 bits, typically used for a depth render target, and 8 bits, typically used for a stencil render target.

MTLPixelFormatDepth32Float_Stencil8

A 64-bit combined depth and stencil pixel format with two floating-point components: 32 bits, typically used for a depth render target, and 8 bits, typically used for a stencil render target.

MTLPixelFormatX32_Stencil8

A stencil pixel format used for a stencil texture view, typically created from a parent texture with the MTLPixelFormatDepth32Float_Stencil8 pixel format.

MTLPixelFormatX24_Stencil8

A stencil pixel format used for a stencil texture view, typically created from a parent texture with the MTLPixelFormatDepth24Unorm_Stencil8 pixel format.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software