Cogl.DepthState.prototype.set_test_function
function set_test_function(function: Cogl.DepthTestFunction): void {
// Gjs wrapper for cogl_depth_state_set_test_function()
}
Sets the Cogl.DepthTestFunction used to compare the depth value of an incoming fragment against the corresponding value in the current depth buffer.
By default the depth test function is Cogl.DepthTestFunction.less
NB: this won't directly affect the state of the GPU. You have to then set the state on a Cogl.Pipeline using Cogl.Pipeline.prototype.set_depth_state
Since 2.0
- function
The Cogl.DepthTestFunction to set