Rasterizer state description.
More...
Rasterizer state description.
This structure describes the rasterizer state and is part of the GraphicsPipelineDesc.
◆ RasterizerStateDesc()
| Diligent::RasterizerStateDesc::RasterizerStateDesc |
( |
FILL_MODE |
_FillMode = FILL_MODE_SOLID, |
|
|
CULL_MODE |
_CullMode = CULL_MODE_BACK, |
|
|
Bool |
_FrontCounterClockwise = False, |
|
|
Int32 |
_DepthBias = 0, |
|
|
Float32 |
_DepthBiasClamp = 0.f, |
|
|
Float32 |
_SlopeScaledDepthBias = 0.f, |
|
|
Bool |
_DepthClipEnable = True, |
|
|
Bool |
_ScissorEnable = False, |
|
|
Bool |
_AntialiasedLineEnable = False |
|
) |
| |
|
inline |
Initializes the structure members.
| Member | Default va |
| FillMode | FILL_MODE_SOLID |
| CullMode | CULL_MODE_BACK |
| FrontCounterClockwise | False |
| DepthBias | 0 |
| DepthBiasClamp | 0.f |
| SlopeScaledDepthBias | 0.f |
| DepthClipEnable | True |
| ScissorEnable | False |
| AntialiasedLineEnable | False |
◆ operator==()
Tests if two structures are equivalent.
- Parameters
-
| [in] | RHS | - reference to the structure to perform comparison with |
- Returns
- True if all members of the two structures are equal.
- False otherwise
◆ DepthBiasClamp
| Float32 Diligent::RasterizerStateDesc::DepthBiasClamp |
Maximum depth bias of a pixel.
- Warning
- Depth bias clamp is not available in OpenGL
◆ DepthClipEnable
| Bool Diligent::RasterizerStateDesc::DepthClipEnable |
Enable clipping based on distance.
- Warning
- On DirectX this only disables clipping against far clipping plane, while on OpenGL this disables clipping against both far and near clip planes.