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

Depth bias descriptor structure to control fragment depth values. 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

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

Detailed Description

Depth bias descriptor structure to control fragment depth values.

Member Function Documentation

◆ reflect()

template<typename Processor >
static constexpr void CeresEngine::GPUDepthBiasDescriptor::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

◆ clamp

float CeresEngine::GPUDepthBiasDescriptor::clamp = 0.0f

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

By default 0.0.

◆ constantFactor

float CeresEngine::GPUDepthBiasDescriptor::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.

◆ slopeFactor

float CeresEngine::GPUDepthBiasDescriptor::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: