LiteFX::Rendering::Rasterizer::Rasterizer¶
Constructors
Synopses¶
Declared in <litefx/rendering_api.hpp>
Creates a copy of a rasterizer.
[[dllimport, dllexport]] Rasterizer(Rasterizer const& _other);
Takes over another instance of a rasterizer.
[[dllimport, dllexport]] Rasterizer(Rasterizer&& _other) noexcept;
Initializes a new rasterizer instance.
[[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 |
|---|---|
| _other | The rasterizer instance to copy. |
| 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. |