Values for the depth state.
Use this with RenderStateBlock and ScriptableRenderContext.DrawRenderers to override the GPU's render state.
Corresponds to the ZTest and ZWrite commands in ShaderLab.
See Also: RenderStateBlock, [[ScriptableRenderContext.DrawRenderers], ShaderLab command: ZTest, ShaderLab command: ZWrite.
| defaultValue | Default values for the depth state. |
| compareFunction | How should depth testing be performed. |
| writeEnabled | Controls whether pixels from this object are written to the depth buffer. |
| DepthState | Creates a new depth state with the given values. |