Instance Method

newDepthStencilStateWithDescriptor:

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

Required.

Declaration

- (id<MTLDepthStencilState>)newDepthStencilStateWithDescriptor:(MTLDepthStencilDescriptor *)descriptor;

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.