Depth/Stencil state. More...
#include <kanzi/core.ui/graphics/composition_stack.hpp>
Public Member Functions | |
| void | apply (Renderer &renderer) |
| Applies blend mode state. | |
| DepthStencilState (GraphicsCompareFunction depthFunc, bool depthWrite, GraphicsCompareFunction stencilFunc, unsigned int referenceValue, unsigned int maskValue, GraphicsStencilOperation stencilFail, GraphicsStencilOperation stencilPassDepthFail, GraphicsStencilOperation stencilPassDepthPass, bool stencilWrite) | |
| Constructor. | |
Public Attributes | |
| GraphicsCompareFunction | depthFunc |
| Depth testing mode. Use GraphicsCompareFunctionDisabled for turning off depth test completely. | |
| bool | depthWrite |
| Depth write enabled or not. | |
| unsigned int | maskValue |
| Stencil mask value. | |
| unsigned int | referenceValue |
| Stencil reference value. | |
| GraphicsStencilOperation | stencilFail |
| Operation for stencil test failing. | |
| GraphicsCompareFunction | stencilFunc |
| Stencil compare function. Use GraphicsCompareFunctionDisabled for turning off stencil test completely. | |
| GraphicsStencilOperation | stencilPassDepthFail |
| Operation for stencil test passing but depth test failing. | |
| GraphicsStencilOperation | stencilPassDepthPass |
| Operation for stencil and depth tests passing. | |
| bool | stencilWrite |
| Stencil write enabled or not. | |
Depth/Stencil state.
|
inlineexplicit |
Constructor.
| depthFunc | Depth test function. |
| depthWrite | Depth write enabled? |
| stencilFunc | Stencil test function to use. |
| referenceValue | Stencil reference value. |
| maskValue | Stencil mask value. |
| stencilFail | Operation for stencil failing. |
| stencilPassDepthFail | Operation for stencil passing but depth failing. |
| stencilPassDepthPass | Operation for stencil and depth passing. |
| stencilWrite | Stencil write enabled? |
Applies blend mode state.
| renderer | Renderer to use. |
| GraphicsCompareFunction kanzi::CompositionStack::DepthStencilState::depthFunc |
Depth testing mode. Use GraphicsCompareFunctionDisabled for turning off depth test completely.
| bool kanzi::CompositionStack::DepthStencilState::depthWrite |
Depth write enabled or not.
| GraphicsCompareFunction kanzi::CompositionStack::DepthStencilState::stencilFunc |
Stencil compare function. Use GraphicsCompareFunctionDisabled for turning off stencil test completely.
| GraphicsStencilOperation kanzi::CompositionStack::DepthStencilState::stencilFail |
Operation for stencil test failing.
| GraphicsStencilOperation kanzi::CompositionStack::DepthStencilState::stencilPassDepthFail |
Operation for stencil test passing but depth test failing.
| GraphicsStencilOperation kanzi::CompositionStack::DepthStencilState::stencilPassDepthPass |
Operation for stencil and depth tests passing.
| bool kanzi::CompositionStack::DepthStencilState::stencilWrite |
Stencil write enabled or not.