CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::GPURasterizerDescriptor Struct Referencefinal

Rasterizer state descriptor structure. More...

#include <CeresEngine/RenderAPI/GPUGraphicsPipeline.hpp>

Static Public Member Functions

template<typename Processor >
static constexpr void reflect (Processor &&RTTI)
 Executes the given processor for every field of the struct.
 

Public Attributes

GPUPolygonMode polygonMode = GPUPolygonMode::Fill
 Polygon render mode. By default PolygonMode::Fill.
 
GPUCullMode cullMode = GPUCullMode::Disabled
 Polygon face culling mode. By default CullMode::Disabled.
 
GPUDepthBiasDescriptor depthBias
 Specifies the parameters to bias fragment depth values.
 
GPUMultiSamplingDescriptor multiSampling
 (Multi-)sampling descriptor.
 
GPUConservativeRasterizationDescriptor conservativeRasterization
 Conservative rasterization descriptor.
 
bool frontCCW = false
 If enabled, front facing polygons are in counter-clock-wise winding, otherwise in clock-wise winding.
 
bool depthClampEnabled = false
 If enabled, there is effectively no near and far clipping plane.
 
bool scissorTestEnabled = false
 Specifies whether scissor test is enabled or disabled.
 
bool antiAliasedLineEnabled = false
 Specifies whether lines are rendered with or without anti-aliasing.
 
float lineWidth = 1.0f
 Specifies the width of all generated line primitives.
 

Detailed Description

Rasterizer state descriptor structure.

Member Function Documentation

◆ reflect()

template<typename Processor >
static constexpr void CeresEngine::GPURasterizerDescriptor::reflect ( Processor &&  RTTI)
inlinestaticconstexpr

Executes the given processor for every field of the struct.

Parameters
RTTIThe processor to be ran for every field.

Member Data Documentation

◆ antiAliasedLineEnabled

bool CeresEngine::GPURasterizerDescriptor::antiAliasedLineEnabled = false

Specifies whether lines are rendered with or without anti-aliasing.

By default disabled.

◆ conservativeRasterization

GPUConservativeRasterizationDescriptor CeresEngine::GPURasterizerDescriptor::conservativeRasterization

Conservative rasterization descriptor.

◆ cullMode

GPUCullMode CeresEngine::GPURasterizerDescriptor::cullMode = GPUCullMode::Disabled

Polygon face culling mode. By default CullMode::Disabled.

◆ depthBias

GPUDepthBiasDescriptor CeresEngine::GPURasterizerDescriptor::depthBias

Specifies the parameters to bias fragment depth values.

◆ depthClampEnabled

bool CeresEngine::GPURasterizerDescriptor::depthClampEnabled = false

If enabled, there is effectively no near and far clipping plane.

By default disabled.

◆ frontCCW

bool CeresEngine::GPURasterizerDescriptor::frontCCW = false

If enabled, front facing polygons are in counter-clock-wise winding, otherwise in clock-wise winding.

◆ lineWidth

float CeresEngine::GPURasterizerDescriptor::lineWidth = 1.0f

Specifies the width of all generated line primitives.

By default 1.0. If this line width is out of range, it will be clamped silently during graphics pipeline creation.

◆ multiSampling

GPUMultiSamplingDescriptor CeresEngine::GPURasterizerDescriptor::multiSampling

(Multi-)sampling descriptor.

◆ polygonMode

GPUPolygonMode CeresEngine::GPURasterizerDescriptor::polygonMode = GPUPolygonMode::Fill

Polygon render mode. By default PolygonMode::Fill.

◆ scissorTestEnabled

bool CeresEngine::GPURasterizerDescriptor::scissorTestEnabled = false

Specifies whether scissor test is enabled or disabled.

By default disabled.


The documentation for this struct was generated from the following file: