Back to class index
| DepthState::CreateSyntaxvoid DepthState::Create(bool depthTestEnabled, bool depthWriteEnabled, DepthCmpFunc depthFunc);Recreates this state object to the given Z-buffering state options. ParametersbooldepthTestEnabledIf true, rasterized pixels are tested against the depth buffer for visibility. If false, all rendered pixels pass the depth test. booldepthWriteEnabledIf 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. DepthCmpFuncdepthFuncThe comparison operator to use during the depth test stage.
Leave a Comment |