Cogl.Pipeline.prototype.set_depth_state

function set_depth_state(state: Cogl.DepthState): Cogl.Bool {
    // Gjs wrapper for cogl_pipeline_set_depth_state()
}
  

This commits all the depth state configured in state struct to the given pipeline. The configuration values are copied into the pipeline so there is no requirement to keep the Cogl.DepthState struct around if you don't need it any more.

Note: Since some platforms do not support the depth range feature it is possible for this function to fail and report an @error.

Since 2.0

state

A Cogl.DepthState struct

Returns

TRUE if the GPU supports all the given state else false and returns an @error.