GL_APICALL void GL_APIENTRY glEarlyDepthFuncDMP(
GLenum func
);
| Name | Description | |
|---|---|---|
| in | func | Comparison function |
Specifies the comparison function to use for the early depth test.
Set func to one of the following values.
| GL_GEQUAL | Passes when the depth value of the fragment is greater than or equal to the depth value in the early depth buffer. |
|---|---|
| GL_GREATER | Passes when the depth value of the fragment is greater than the depth value in the early depth buffer. |
| GL_LEQUAL | Passes when the depth value of the fragment is equal to or less than the depth value in the early depth buffer. |
| GL_LESS | Passes when the depth value of the fragment is less than the depth value in the early depth buffer. |
Early depth tests do not work properly unless you specify the same comparison function here as in glDepthFunc. You must also clear the depth buffer with glClear when you use this function to change the comparison function. You will get incorrect rendering results if you re-render to a single depth buffer while changing the comparison function.
This function generates the following errors.
| GL_INVALID_ENUM | The func argument was set to an invalid value. |
|---|---|
| GL_INVALID_OPERATION | This function was called without any command-list objects bound. |
CONFIDENTIAL