LLGL 0.05 Beta
Loading...
Searching...
No Matches
LLGL::RasterizerDescriptor Struct Reference

Rasterizer state descriptor structure. More...

#include <PipelineStateFlags.h>

Public Attributes

PolygonMode polygonMode = PolygonMode::Fill
 Polygon render mode. By default PolygonMode::Fill.
CullMode cullMode = CullMode::Disabled
 Polygon face culling mode. By default CullMode::Disabled.
DepthBiasDescriptor depthBias
 Specifies the parameters to bias fragment depth values.
float lineWidth = 1.0f
 Specifies the width of all generated line primitives. By default 1.0.
bool frontCCW = false
 If enabled, front facing polygons are in counter-clock-wise winding, otherwise in clock-wise winding. By default disabled.
bool discardEnabled = false
 If enabled, primitives are discarded after optional stream-outputs but before the rasterization stage. By default disabled.
bool depthClampEnabled = false
 If enabled, there is effectively no near and far clipping plane. By default disabled.
bool scissorTestEnabled = false
 Specifies whether scissor test is enabled or disabled. By default disabled.
bool multiSampleEnabled = false
 Specifies whether multi-sampling is enabled or disabled. By default disabled.
bool antiAliasedLineEnabled = false
 Specifies whether lines are rendered with or without anti-aliasing. By default disabled.
bool conservativeRasterization = false
 If true, conservative rasterization is enabled. By default disabled.
bool shadingRateEnabled = false
 If true, variable rate shading (VRS) is enabled for the rasterizer. By default disabled.

Detailed Description

Rasterizer state descriptor structure.

See also
GraphicsPipelineDescriptor::rasterizer

Member Data Documentation

◆ antiAliasedLineEnabled

bool LLGL::RasterizerDescriptor::antiAliasedLineEnabled = false

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

◆ conservativeRasterization

bool LLGL::RasterizerDescriptor::conservativeRasterization = false

If true, conservative rasterization is enabled. By default disabled.

Note
Only supported with:
  • Direct3D 12
  • Direct3D 11.3
  • OpenGL (if the extension GL_NV_conservative_raster or GL_INTEL_conservative_rasterization is supported)
  • Vulkan (if the extension VK_EXT_conservative_rasterization is supported).
See also
https://www.opengl.org/registry/specs/NV/conservative_raster.txt
https://www.opengl.org/registry/specs/INTEL/conservative_rasterization.txt
https://www.khronos.org/registry/vulkan/specs/1.1-extensions/man/html/VK_EXT_conservative_rasterization.html
RenderingFeatures::hasConservativeRasterization

◆ cullMode

CullMode LLGL::RasterizerDescriptor::cullMode = CullMode::Disabled

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

◆ depthBias

DepthBiasDescriptor LLGL::RasterizerDescriptor::depthBias

Specifies the parameters to bias fragment depth values.

◆ depthClampEnabled

bool LLGL::RasterizerDescriptor::depthClampEnabled = false

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

◆ discardEnabled

bool LLGL::RasterizerDescriptor::discardEnabled = false

If enabled, primitives are discarded after optional stream-outputs but before the rasterization stage. By default disabled.

Note
Only supported with: OpenGL, Vulkan, Metal.

◆ frontCCW

bool LLGL::RasterizerDescriptor::frontCCW = false

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

◆ lineWidth

float LLGL::RasterizerDescriptor::lineWidth = 1.0f

Specifies the width of all generated line primitives. By default 1.0.

Remarks
The minimum and maximum supported line width can be determined by the lineWidthRange member in the RenderingCapabilities structure. If this line width is out of range, it will be clamped silently during graphics pipeline creation.
Note
Only supported with: OpenGL, Vulkan.
See also
RenderingLimits::lineWidthRange

◆ multiSampleEnabled

bool LLGL::RasterizerDescriptor::multiSampleEnabled = false

Specifies whether multi-sampling is enabled or disabled. By default disabled.

◆ polygonMode

PolygonMode LLGL::RasterizerDescriptor::polygonMode = PolygonMode::Fill

Polygon render mode. By default PolygonMode::Fill.

◆ scissorTestEnabled

bool LLGL::RasterizerDescriptor::scissorTestEnabled = false

Specifies whether scissor test is enabled or disabled. By default disabled.

See also
CommandBuffer::SetScissor
CommandBuffer::SetScissors

◆ shadingRateEnabled

bool LLGL::RasterizerDescriptor::shadingRateEnabled = false

If true, variable rate shading (VRS) is enabled for the rasterizer. By default disabled.

Remarks
If enabled, a shading rate must be specified before the first draw command.
Note
Only supported with: Direct3D 12, Vulkan.
See also
CommandBufferTier1::SetShadingRate
RenderingFeatures::hasVariableRateShading

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