Instance Property


A packed depth and stencil texture associated with the currentDrawable object’s texture.


var depthStencilTexture: MTLTexture? { get }


The format of this texture is determined by the value of depthStencilPixelFormat.

The default value is nil. This value is also nil if the specified pixel format is MTLPixelFormat.invalid.

See Also

Retrieving Render Target Information

var currentRenderPassDescriptor: MTLRenderPassDescriptor?

A render pass descriptor to draw into the current drawable.

var currentDrawable: CAMetalDrawable?

The drawable to use for the current frame.

var multisampleColorTexture: MTLTexture?

The multisample color sample texture to render into.