Skip to content

LiteFX::Rendering::RasterizerBuilder

Builds a Rasterizer.

Synopsis

Declared in <litefx/rendering_builders.hpp>

template<typename TRasterizer>
requires meta::implements<TRasterizer, IRasterizer>
class RasterizerBuilder
    : public Builder<TRasterizer, std::nullptr_t, SharedPtr<TRasterizer>>

Base Classes

NameDescription
Builder<TRasterizer, std::nullptr_t, SharedPtr<TRasterizer>>Describes an generic builder type.

Type Aliases

Member Functions

NameDescription
operator= Assignment operators
add First, calls build, then use on the parent builder using the current object instance and finally returns the parent builder.
conservativeRasterization Initializes the rasterizer state with conservative rasterization.
cullMode Initializes the rasterizer state with the provided cull mode.
cullOrder Initializes the rasterizer state with the provided cull order.
depthBias Initializes the rasterizer depth bias.
depthClip Initializes the depth clip toggle for the rasterizer state.
depthState Initializes the rasterizer depth state.
instance Returns a pointer to the current instance of the object that is built by the builder.
lineWidth Initializes the rasterizer state with the provided line width.
parent Returns a reference of the parent builder.
polygonMode Initializes the rasterizer state with the provided polygon mode.
stencilState Initializes the rasterizer stencil state.
use [deleted]Called by child builders to pass a constructed object back to the parent builder.

Using Declarations

Protected Member Functions

NameDescription
build [virtual]Can be overwritten to perform any pre-construction work before the builder returns the final object instance.
instance Returns a pointer to the current instance of the object that is built by the builder.
state Returns the current rasterizer state.

Template Parameters

NameDescription
TRasterizerThe type of the rasterizer. Must implement IRasterizer.

Derived Classes

NameDescription
DirectX12RasterizerBuilder Builds a DirectX 12 IRasterizer.
VulkanRasterizerBuilder Builds a Vulkan IRasterizer.

See Also

IRasterizer