Instance Property

depthStencilPixelFormat

The format used to generate the depthStencilTexture object.

Declaration

@property(nonatomic) MTLPixelFormat depthStencilPixelFormat;

Discussion

The default value is MTLPixelFormatInvalid, which means that the view doesn’t create a depth and stencil texture. If you set it to a different format, the view automatically creates those textures for you and configures them as part of any render passes that the view creates.

See Also

Configuring the Render Target Properties

depthStencilAttachmentTextureUsage

The texture usage characteristics that the view uses when creating the depth and stencil textures.

clearDepth

The depth value to use to clear the depth target when creating a render pass descriptor.

clearStencil

The stencil value to use to clear the stencil target when creating a render pass descriptor.