RasterizerStateDesc struct
Rasterizer state description.
Contents
- Reference
This structure describes the rasterizer state and is part of the GraphicsPipelineDesc.
Public functions
- auto operator==(const RasterizerStateDesc& RHS) const -> bool
- Tests if two structures are equivalent.
Public variables
-
FILL_
MODE FillMode - Determines traingle fill mode, see Diligent::
FILL_MODE for details. Default value: Diligent:: FILL_MODE_SOLID. -
CULL_
MODE CullMode - Determines traingle cull mode, see Diligent::
CULL_MODE for details. Default value: Diligent:: CULL_MODE_BACK. - Bool FrontCounterClockwise
- Determines if a triangle is front- or back-facing. If this parameter is True, a triangle will be considered front-facing if its vertices are counter-clockwise on the render target and considered back-facing if they are clockwise. If this parameter is False, the opposite is true. Default value: False.
- Bool DepthClipEnable
- Enable clipping against near and far clip planes. Default value: True.
- Bool ScissorEnable
- Enable scissor-rectangle culling. All pixels outside an active scissor rectangle are culled. Default value: False.
- Bool AntialiasedLineEnable
- Specifies whether to enable line antialiasing. Default value: False.
- Int32 DepthBias
- Constant value added to the depth of a given pixel. Default value: 0.
- Float32 DepthBiasClamp
- Maximum depth bias of a pixel.
- Float32 SlopeScaledDepthBias
- Scalar that scales the given pixel's slope before adding to the pixel's depth. Default value: 0.
Function documentation
bool Diligent:: RasterizerStateDesc:: operator==(const RasterizerStateDesc& RHS) const
Tests if two structures are equivalent.
| Parameters | |
|---|---|
| RHS in | - reference to the structure to perform comparison with |
| Returns |
|
Variable documentation
Float32 Diligent:: RasterizerStateDesc:: DepthBiasClamp
Maximum depth bias of a pixel.