Instance Property


The stencil value to use when the stencil render target is cleared.


var clearStencil: UInt32 { get set }


If the loadAction property of the render target is set to MTLLoadAction.clear, then at the start of a render pass, the contents of the texture are filled with the value stored in the clearStencil property. Otherwise, clearStencil is ignored.

The default value is 0.