Instance Property

depthFailureOperation

The operation that is performed to update the values in the stencil attachment when the stencil test passes, but the depth test fails.

Declaration

@property(nonatomic) MTLStencilOperation depthFailureOperation;

Discussion

The default value is MTLStencilOperationKeep, which does not change the current stencil value. For more information on possible values, see MTLStencilOperation.

See Also

Specifying Stencil Functions and Operations

stencilFailureOperation

The operation that is performed to update the values in the stencil attachment when the stencil test fails.

depthStencilPassOperation

The operation that is performed to update the values in the stencil attachment when both the stencil test and the depth test pass.

stencilCompareFunction

The comparison that is performed between the masked reference value and a masked value in the stencil attachment.