Skip to content

LiteFX::Rendering::Rasterizer::Rasterizer

Constructors

Synopses

Declared in <litefx/rendering_api.hpp>

Creates a copy of a rasterizer.

[[dllimport, dllexport]] Rasterizer(Rasterizer const& _other);

» more...

Takes over another instance of a rasterizer.

[[dllimport, dllexport]] Rasterizer(Rasterizer&& _other) noexcept;

» more...

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;

» more...

Parameters

NameDescription
_otherThe rasterizer instance to copy.
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.