Represents the rasterizer state of a RenderPipeline.
More...
#include <rendering_api.hpp>
Inherits LiteFX::SharedObject.
Inherited by LiteFX::Rendering::Rasterizer.
|
| ~IRasterizer () noexcept override=default |
|
virtual PolygonMode | polygonMode () const noexcept=0 |
| Returns the polygon mode of the rasterizer state.
|
|
virtual CullMode | cullMode () const noexcept=0 |
| Returns the cull mode of the rasterizer state.
|
|
virtual CullOrder | cullOrder () const noexcept=0 |
| Returns the cull mode of the rasterizer state.
|
|
virtual Float | lineWidth () const noexcept=0 |
| Returns the line width of the rasterizer state.
|
|
virtual const DepthStencilState & | depthStencilState () const noexcept=0 |
| Returns the depth/stencil state of the rasterizer.
|
|
virtual | ~SharedObject () noexcept=default |
| Destroys the shared object.
|
|
template<typename TSelf > |
auto | shared_from_this (this TSelf &&self) noexcept |
| Returns a shared pointer to the current object instance.
|
|
template<typename TSelf > |
auto | weak_from_this (this TSelf &&self) noexcept -> WeakPtr< std::remove_reference_t< TSelf > > |
| Returns a weak pointer to the current object instance.
|
|
|
template<typename T , typename... TArgs> |
static auto | create (TArgs &&... args) -> SharedPtr< T > |
| Generic factory method used to create instances of the shared object.
|
|
Represents the rasterizer state of a RenderPipeline.
◆ IRasterizer() [1/3]
LiteFX::Rendering::IRasterizer::IRasterizer |
( |
| ) |
|
|
protecteddefaultnoexcept |
◆ IRasterizer() [2/3]
LiteFX::Rendering::IRasterizer::IRasterizer |
( |
const IRasterizer & | | ) |
|
|
protecteddefault |
◆ IRasterizer() [3/3]
LiteFX::Rendering::IRasterizer::IRasterizer |
( |
IRasterizer && | | ) |
|
|
protecteddefaultnoexcept |
◆ ~IRasterizer()
LiteFX::Rendering::IRasterizer::~IRasterizer |
( |
| ) |
|
|
overridedefaultnoexcept |
◆ cullMode()
virtual CullMode LiteFX::Rendering::IRasterizer::cullMode |
( |
| ) |
const |
|
pure virtualnoexcept |
◆ cullOrder()
virtual CullOrder LiteFX::Rendering::IRasterizer::cullOrder |
( |
| ) |
const |
|
pure virtualnoexcept |
◆ 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 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.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ polygonMode()
virtual PolygonMode LiteFX::Rendering::IRasterizer::polygonMode |
( |
| ) |
const |
|
pure virtualnoexcept |