Skip to content

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

NameDescription
polygonModeThe polygon mode of the rasterizer state.
cullModeThe cull mode of the rasterizer state.
cullOrderThe cull order of the rasterizer state.
lineWidthThe line width of the rasterizer state.
depthClipThe depth clip toggle of the rasterizer state.
depthStencilStateThe rasterizer depth/stencil state.
conservativeRasterizationToggles the use of conservative rasterization in the rasterizer.