Instance Property

clearDepth

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

Declaration

var clearDepth: Double { get set }

Discussion

If you specified that you want a depth texture, the view configures any render passes to use the depth texture, with a load action of MTLLoadAction.clear and the value of this property as the value to clear it to. The default value is 1.0.

See Also

Configuring the Render Target Properties

var depthStencilAttachmentTextureUsage: MTLTextureUsage

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

var clearStencil: UInt32

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