LiteFX::Rendering::Rasterizer::Rasterizer¶
Initializes a new rasterizer instance.
Synopsis¶
Declared in <litefx/rendering_api.hpp>
[[dllimport, dllexport]] explicit Rasterizer(
PolygonMode polygonMode,
CullMode cullMode,
CullOrder cullOrder,
Float lineWidth = 1.f,
bool depthClip = true,
DepthStencilState const& depthStencilState = {},
bool conservativeRasterization = false) noexcept;
Parameters¶
| Name | Description |
|---|---|
| polygonMode | The polygon mode of the rasterizer state. |
| cullMode | The cull mode of the rasterizer state. |
| cullOrder | The cull order of the rasterizer state. |
| lineWidth | The line width of the rasterizer state. |
| depthClip | The depth clip toggle of the rasterizer state. |
| depthStencilState | The rasterizer depth/stencil state. |
| conservativeRasterization | Toggles the use of conservative rasterization in the rasterizer. |