LiteFX 0.3.1.2022
Computer Graphics Engine
LiteFX::Rendering::IRasterizer Class Referenceabstract

Represents the rasterizer state of a RenderPipeline. More...

#include <rendering_api.hpp>

Inherited by LiteFX::Rendering::Rasterizer.

Public Member Functions

virtual ~IRasterizer () noexcept=default
 
virtual const PolygonMode & polygonMode () const noexcept=0
 Returns the polygon mode of the rasterizer state. More...
 
virtual const CullMode & cullMode () const noexcept=0
 Returns the cull mode of the rasterizer state. More...
 
virtual const CullOrder & cullOrder () const noexcept=0
 Returns the cull mode of the rasterizer state. More...
 
virtual const FloatlineWidth () const noexcept=0
 Returns the line width of the rasterizer state. More...
 
virtual const DepthStencilStatedepthStencilState () const noexcept=0
 Returns the depth/stencil state of the rasterizer. More...
 

Detailed Description

Represents the rasterizer state of a RenderPipeline.

Constructor & Destructor Documentation

◆ ~IRasterizer()

virtual LiteFX::Rendering::IRasterizer::~IRasterizer ( )
virtualdefaultnoexcept

Member Function Documentation

◆ cullMode()

virtual const CullMode & LiteFX::Rendering::IRasterizer::cullMode ( ) const
pure virtualnoexcept

Returns the cull mode of the rasterizer state.

Returns
The cull mode of the rasterizer state.

Implemented in LiteFX::Rendering::Rasterizer.

◆ cullOrder()

virtual const CullOrder & LiteFX::Rendering::IRasterizer::cullOrder ( ) const
pure virtualnoexcept

Returns the cull mode of the rasterizer state.

Returns
The cull mode of the rasterizer state.

Implemented in LiteFX::Rendering::Rasterizer.

◆ depthStencilState()

virtual const DepthStencilState & LiteFX::Rendering::IRasterizer::depthStencilState ( ) const
pure virtualnoexcept

Returns the depth/stencil state of the rasterizer.

Returns
The depth/stencil state of the rasterizer.

Implemented in LiteFX::Rendering::Rasterizer.

◆ lineWidth()

virtual const Float & LiteFX::Rendering::IRasterizer::lineWidth ( ) const
pure virtualnoexcept

Returns the line width of the rasterizer state.

Note that line width is not supported in DirectX and is only emulated under Vulkan. Instead of forcing this value, it is recommended to use a custom shader for it.

Returns
The line width of the rasterizer state.

Implemented in LiteFX::Rendering::Rasterizer.

◆ polygonMode()

virtual const PolygonMode & LiteFX::Rendering::IRasterizer::polygonMode ( ) const
pure virtualnoexcept

Returns the polygon mode of the rasterizer state.

Returns
The polygon mode of the rasterizer state.

Implemented in LiteFX::Rendering::Rasterizer.