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

Depth 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

bool testEnabled = false
 Specifies whether the depth test is enabled or disabled.
 
bool writeEnabled = false
 Specifies whether writing to the depth buffer is enabled or disabled.
 
GPUCompareOp compareOp = GPUCompareOp::Less
 Specifies the depth test comparison function.
 

Detailed Description

Depth state descriptor structure.

Member Function Documentation

◆ reflect()

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

◆ compareOp

GPUCompareOp CeresEngine::GPUDepthDescriptor::compareOp = GPUCompareOp::Less

Specifies the depth test comparison function.

By default CompareOp::Less.

◆ testEnabled

bool CeresEngine::GPUDepthDescriptor::testEnabled = false

Specifies whether the depth test is enabled or disabled.

By default disabled.

Remarks
If no pixel shader is used in the graphics pipeline, the depth test must be disabled.

◆ writeEnabled

bool CeresEngine::GPUDepthDescriptor::writeEnabled = false

Specifies whether writing to the depth buffer is enabled or disabled.

By default disabled.


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