WebGPU Headers
The WebGPU C API
 
Loading...
Searching...
No Matches
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
 

Detailed Description

Default values can be set using WGPU_DEPTH_STENCIL_STATE_INIT as initializer.

Definition at line 3832 of file webgpu.h.

Field Documentation

◆ nextInChain

WGPUChainedStruct* WGPUDepthStencilState::nextInChain

Definition at line 3833 of file webgpu.h.

◆ format

WGPUTextureFormat WGPUDepthStencilState::format

The INIT macro sets this to WGPUTextureFormat_Undefined.

Definition at line 3837 of file webgpu.h.

◆ depthWriteEnabled

WGPUOptionalBool WGPUDepthStencilState::depthWriteEnabled

The INIT macro sets this to WGPUOptionalBool_Undefined.

Definition at line 3841 of file webgpu.h.

◆ depthCompare

WGPUCompareFunction WGPUDepthStencilState::depthCompare

The INIT macro sets this to (WGPUCompareFunction)0.

Definition at line 3845 of file webgpu.h.

◆ stencilFront

WGPUStencilFaceState WGPUDepthStencilState::stencilFront

The INIT macro sets this to WGPU_STENCIL_FACE_STATE_INIT.

Definition at line 3849 of file webgpu.h.

◆ stencilBack

WGPUStencilFaceState WGPUDepthStencilState::stencilBack

The INIT macro sets this to WGPU_STENCIL_FACE_STATE_INIT.

Definition at line 3853 of file webgpu.h.

◆ stencilReadMask

uint32_t WGPUDepthStencilState::stencilReadMask

The INIT macro sets this to 0xFFFFFFFF.

Definition at line 3857 of file webgpu.h.

◆ stencilWriteMask

uint32_t WGPUDepthStencilState::stencilWriteMask

The INIT macro sets this to 0xFFFFFFFF.

Definition at line 3861 of file webgpu.h.

◆ depthBias

int32_t WGPUDepthStencilState::depthBias

The INIT macro sets this to 0.

Definition at line 3865 of file webgpu.h.

◆ depthBiasSlopeScale

float WGPUDepthStencilState::depthBiasSlopeScale

TODO

If non-finite, produces a Non-Finite Float Value Errors.

The INIT macro sets this to 0.f.

Definition at line 3873 of file webgpu.h.

◆ depthBiasClamp

float WGPUDepthStencilState::depthBiasClamp

TODO

If non-finite, produces a Non-Finite Float Value Errors.

The INIT macro sets this to 0.f.

Definition at line 3881 of file webgpu.h.