LiteFX 0.3.1.2022
Computer Graphics Engine
LiteFX::Rendering::DepthStencilState::DepthState Struct Reference

Describes the rasterizer depth state. More...

#include <rendering_api.hpp>

Public Attributes

bool Enable { true }
 Specifies, if depth testing should be enabled (default: true). More...
 
bool Write { true }
 Specifies, if depth should be written (default: true). More...
 
CompareOperation Operation { CompareOperation::Always }
 The compare operation used to pass the depth test (default: CompareOperation::Always). More...
 

Detailed Description

Describes the rasterizer depth state.

Member Data Documentation

◆ Enable

bool LiteFX::Rendering::DepthStencilState::DepthState::Enable { true }

Specifies, if depth testing should be enabled (default: true).

◆ Operation

CompareOperation LiteFX::Rendering::DepthStencilState::DepthState::Operation { CompareOperation::Always }

The compare operation used to pass the depth test (default: CompareOperation::Always).

◆ Write

bool LiteFX::Rendering::DepthStencilState::DepthState::Write { true }

Specifies, if depth should be written (default: true).