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
Type Aliases
Member Functions
| Name | Description |
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
| Name | Description |
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
| Name | Description |
| TRasterizer | The type of the rasterizer. Must implement IRasterizer. |
Derived Classes
See Also
IRasterizer