Back to class index

Class DepthState

Summary

Specifies render state for Z-buffering.

Member Reference

DepthStateSpecifies render state for Z-buffering.
stateIDPacks the whole state into a single u32.
depthTestEnabledIf true, rasterized pixels are tested against the depth buffer for visibility. If false, all rendered pixels pass the depth test.
depthWriteEnabledIf true, each rasterized pixel that passed the depth test updates the depth buffer with its own depth. If false, Z-buffer is not modified during rendering.
depthFuncThe comparison operator to use during the depth test stage.
ctor (+1 overload)Creates a null DepthState object.
~dtor
Create(...)Recreates this state object to the given Z-buffering state options.
Deinit()Frees up all resources associated with this state object, and makes it null.
ReComputeStateID()
Back to class index