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

Tessellation descriptor structure for the graphics pipeline. More...

#include <PipelineStateFlags.h>

Public Attributes

TessellationPartition partition = TessellationPartition::Undefined
 Specifies the partition mode of the tessellator stage. By default TessellationPartition::Undefined.
std::uint32_t maxTessFactor = 64
 Specifies the maximum tessellation factor. By default 64.
bool outputWindingCCW = false
 If enabled, the output topology is in counter-clockwise winding order. By default disabled.

Detailed Description

Tessellation descriptor structure for the graphics pipeline.

Remarks
This is only used for the Metal backend or shader reflection.
See also
GraphicsPipelineDescriptor::tessellation
RenderingFeatures::hasTessellatorStage

Member Data Documentation

◆ maxTessFactor

std::uint32_t LLGL::TessellationDescriptor::maxTessFactor = 64

Specifies the maximum tessellation factor. By default 64.

Remarks
Depending on the partition mode, this value must be:
This value is automatically clamped to the maximum value allowed by the rendering API, e.g. 64 for macOS and 16 for iOS.
Equivalent of [maxtessfactor(64.0)] in HLSL.
See also
RenderingLimits::maxTessFactor

◆ outputWindingCCW

bool LLGL::TessellationDescriptor::outputWindingCCW = false

If enabled, the output topology is in counter-clockwise winding order. By default disabled.

Remarks
Equivalent of [outputtopology("triangle_ccw")] in HLSL and layout(ccw) in GLSL.
See also
RasterizerDescriptor::frontCCW

◆ partition

TessellationPartition LLGL::TessellationDescriptor::partition = TessellationPartition::Undefined

Specifies the partition mode of the tessellator stage. By default TessellationPartition::Undefined.


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