Instance Method

makeDepthStencilState(descriptor:)

Creates a new object that contains 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.