Represents setting for depth testing and writing.
More...
#include <State.h>
|
|
uint8 | writeMask { true } |
| | Enable writing to the depth buffer.
|
| |
|
uint8 | enabled { false } |
| | Enable depth test.
|
| |
Represents setting for depth testing and writing.
◆ DepthTest()
| gpu::State::DepthTest::DepthTest |
( |
bool |
enabled = false, |
|
|
bool |
writeMask = true, |
|
|
ComparisonFunction |
func = ComparisonFunction::LESS |
|
) |
| |
|
inline |
- Parameters
-
| enabled | true if depth testing is enabled. |
| writeMask | true if writing to depth buffer is enabled. |
| func | Comparison function to use for depth thest. |
◆ getFunction()
| ComparisonFunction gpu::State::DepthTest::getFunction |
( |
| ) |
const |
|
inline |
- Returns
- Comparison function used for depth testing.
◆ getWriteMask()
| uint8 gpu::State::DepthTest::getWriteMask |
( |
| ) |
const |
|
inline |
- Returns
true if writing to depth buffer is enabled.
◆ isEnabled()
| bool gpu::State::DepthTest::isEnabled |
( |
| ) |
const |
|
inline |
- Returns
true if depth testing is enabled.
The documentation for this class was generated from the following file: