LiteFX::Rendering::Backends::DirectX12Rasterizer::create¶
Creates a new DirectX 12 rasterizer state.
Synopsis¶
Declared in <litefx/backends/dx12.hpp>
[[dllimport, dllexport]] static auto create(
PolygonMode polygonMode,
CullMode cullMode,
CullOrder cullOrder,
Float lineWidth = 1.f,
bool depthClip = true,
DepthStencilState const& depthStencilState = {},
bool conservativeRasterization = false);
Return Value¶
A shared pointer to the newly created rasterizer instance.
Parameters¶
| Name | Description |
|---|---|
| polygonMode | The polygon mode used by the pipeline. |
| cullMode | The cull mode used by the pipeline. |
| cullOrder | The cull order used by the pipeline. |
| lineWidth | The line width used by the pipeline. |
| 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. |