set_test_enabled


Description:

public void set_test_enabled (Bool enable)

Enables or disables depth testing according to the value of enable.

If depth testing is enable then the DepthTestFunction set using set_test_function us used to evaluate the depth value of incoming fragments against the corresponding value stored in the current depth buffer, and if the test passes then the fragments depth value is used to update the depth buffer. (unless you have disabled depth writing via set_write_enabled)

By default depth testing is disabled.

NB: this won't directly affect the state of the GPU. You have to then set the state on a Pipeline using set_depth_state

Parameters:

this

A DepthState struct

enable

The enable state you want