Instance Property


The depth to use when the depth render target is cleared.


@property(nonatomic) double clearDepth;


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

The default value is 1.0.