Struct Info |
|---|
struct DepthStencilState 深度测试和模板测试配置信息。 |
Qualifier and Type |
Field and Description |
|---|---|
bool |
depthTestEnable 是否开启深度测试,默认开启。 |
bool |
depthWriteEnable 是否开启深度写入,默认开启。 |
depthFunc 深度测试中使用的比较运算符,默认值为COMPARISON_OPERATION_LESS_OR_EQUAL。 |
|
bool |
depthBoundsTestEnable 是否开启深度范围测试,默认关闭。 |
bool |
stencilTestEnable 是否开启模板测试,默认关闭。 |
front 模板测试参数。 |
|
back 模板测试参数。 |
|
std::size_t |
hash DepthStencilState结构体的hash值,内部使用,不需要用户赋值。 |