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

Depth bias descriptor structure to control fragment depth values. More...

#include <PipelineStateFlags.h>

Public Attributes

float constantFactor = 0.0f
 Specifies a scalar factor controlling the constant depth value added to each fragment. By default 0.0.
float slopeFactor = 0.0f
 Specifies a scalar factor applied to a fragment's slope in depth bias calculations. By default 0.0.
float clamp = 0.0f
 Specifies the maximum (or minimum) depth bias of a fragment. By default 0.0.

Detailed Description

Depth bias descriptor structure to control fragment depth values.

Member Data Documentation

◆ clamp

float LLGL::DepthBiasDescriptor::clamp = 0.0f

Specifies the maximum (or minimum) depth bias of a fragment. By default 0.0.

Note
For OpenGL, this is only supported if the extension GL_ARB_polygon_offset_clamp is available
See also
https://www.khronos.org/registry/OpenGL/extensions/ARB/ARB_polygon_offset_clamp.txt

◆ constantFactor

float LLGL::DepthBiasDescriptor::constantFactor = 0.0f

Specifies a scalar factor controlling the constant depth value added to each fragment. By default 0.0.

Note
The actual constant factor being added to each fragment is implementation dependent of the respective rendering API. Direct3D 12 for instance only considers the integral part.

◆ slopeFactor

float LLGL::DepthBiasDescriptor::slopeFactor = 0.0f

Specifies a scalar factor applied to a fragment's slope in depth bias calculations. By default 0.0.


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