WebGPU Headers: WGPUDepthStencilState Struct Reference

Data Fields

WGPUChainedStructnextInChain
 
WGPUTextureFormat format
 
WGPUOptionalBool depthWriteEnabled
 
WGPUCompareFunction depthCompare
 
WGPUStencilFaceState stencilFront
 
WGPUStencilFaceState stencilBack
 
uint32_t stencilReadMask
 
uint32_t stencilWriteMask
 
int32_t depthBias
 
float depthBiasSlopeScale
 
float depthBiasClamp
 

Default values can be set using WGPU_DEPTH_STENCIL_STATE_INIT as initializer.

Definition at line 3788 of file webgpu.h.

◆ nextInChain

◆ format

◆ depthWriteEnabled

◆ depthCompare

◆ stencilFront

◆ stencilBack

◆ stencilReadMask

uint32_t WGPUDepthStencilState::stencilReadMask

The INIT macro sets this to 0xFFFFFFFF.

Definition at line 3813 of file webgpu.h.

◆ stencilWriteMask

uint32_t WGPUDepthStencilState::stencilWriteMask

The INIT macro sets this to 0xFFFFFFFF.

Definition at line 3817 of file webgpu.h.

◆ depthBias

int32_t WGPUDepthStencilState::depthBias

The INIT macro sets this to 0.

Definition at line 3821 of file webgpu.h.

◆ depthBiasSlopeScale

float WGPUDepthStencilState::depthBiasSlopeScale

◆ depthBiasClamp

float WGPUDepthStencilState::depthBiasClamp