Instance Method

makeDepthStencilState(descriptor:)

Creates a new object that contains the depth and stencil test state.

Required.

Declaration

func makeDepthStencilState(descriptor: MTLDepthStencilDescriptor) -> MTLDepthStencilState?

Parameters

descriptor

A descriptor object that contains depth and stencil test state properties.

Return Value

A new object that contains the state for the depth and stencil tests.

See Also

Creating Depth and Stencil State

var isDepth24Stencil8PixelFormatSupported: Bool

A Boolean value that indicates whether a device supports a packed depth/stencil buffer.

Required.