glEarlyDepthFuncDMP Function

Syntax

GL_APICALL void GL_APIENTRY glEarlyDepthFuncDMP(
     GLenum func
);

Arguments

Name Description
in func Comparison function

Return Values

No values are returned.

Description

Specifies the comparison function to use for the early depth test.

Set func to one of the following values.

GL_GEQUALPasses when the depth value of the fragment is greater than or equal to the depth value in the early depth buffer.
GL_GREATERPasses when the depth value of the fragment is greater than the depth value in the early depth buffer.
GL_LEQUALPasses when the depth value of the fragment is equal to or less than the depth value in the early depth buffer.
GL_LESSPasses 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_ENUMThe func argument was set to an invalid value.
GL_INVALID_OPERATIONThis function was called without any command-list objects bound.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL