HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HgiDepthStencilState Struct Reference

#include <graphicsPipeline.h>

Public Member Functions

HGI_API HgiDepthStencilState ()
 

Public Attributes

bool depthTestEnabled
 
bool depthWriteEnabled
 
HgiCompareFunction depthCompareFn
 
bool depthBiasEnabled
 
float depthBiasConstantFactor
 
float depthBiasSlopeFactor
 
bool stencilTestEnabled
 
HgiStencilState stencilFront
 
HgiStencilState stencilBack
 

Detailed Description

Properties to configure depth and stencil test.

  • depthTestEnabled: When enabled uses depthCompareFn to test if a fragment passes the depth test. Note that depth writes are automatically disabled when depthTestEnabled is false.
  • depthWriteEnabled: When enabled uses depthCompareFn to test if a fragment passes the depth test. Note that depth writes are automatically disabled when depthTestEnabled is false.
  • depthCompareFn: The function used to test depth values.
  • depthBiasEnabled: When enabled applies a bias to depth values before the depth test.
  • depthBiasConstantFactor: The constant depth bias.
  • depthBiasSlopeFactor: The depth bias that scales with the gradient of the primitive.
  • stencilTestEnabled: Enables the stencil test.
  • stencilFront: Stencil operation for front faces.
  • stencilBack: Stencil operation for back faces.

Definition at line 286 of file graphicsPipeline.h.

Constructor & Destructor Documentation

HGI_API HgiDepthStencilState::HgiDepthStencilState ( )

Member Data Documentation

float HgiDepthStencilState::depthBiasConstantFactor

Definition at line 296 of file graphicsPipeline.h.

bool HgiDepthStencilState::depthBiasEnabled

Definition at line 295 of file graphicsPipeline.h.

float HgiDepthStencilState::depthBiasSlopeFactor

Definition at line 297 of file graphicsPipeline.h.

HgiCompareFunction HgiDepthStencilState::depthCompareFn

Definition at line 293 of file graphicsPipeline.h.

bool HgiDepthStencilState::depthTestEnabled

Definition at line 291 of file graphicsPipeline.h.

bool HgiDepthStencilState::depthWriteEnabled

Definition at line 292 of file graphicsPipeline.h.

HgiStencilState HgiDepthStencilState::stencilBack

Definition at line 301 of file graphicsPipeline.h.

HgiStencilState HgiDepthStencilState::stencilFront

Definition at line 300 of file graphicsPipeline.h.

bool HgiDepthStencilState::stencilTestEnabled

Definition at line 299 of file graphicsPipeline.h.


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