WebGPU Headers
The WebGPU C API
 
All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
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 3826 of file webgpu.h.

Field Documentation

◆ nextInChain

WGPUChainedStruct* WGPUDepthStencilState::nextInChain

Definition at line 3827 of file webgpu.h.

◆ format

WGPUTextureFormat WGPUDepthStencilState::format

The INIT macro sets this to WGPUTextureFormat_Undefined.

Definition at line 3831 of file webgpu.h.

◆ depthWriteEnabled

WGPUOptionalBool WGPUDepthStencilState::depthWriteEnabled

The INIT macro sets this to WGPUOptionalBool_Undefined.

Definition at line 3835 of file webgpu.h.

◆ depthCompare

WGPUCompareFunction WGPUDepthStencilState::depthCompare

The INIT macro sets this to (WGPUCompareFunction)0.

Definition at line 3839 of file webgpu.h.

◆ stencilFront

WGPUStencilFaceState WGPUDepthStencilState::stencilFront

The INIT macro sets this to WGPU_STENCIL_FACE_STATE_INIT.

Definition at line 3843 of file webgpu.h.

◆ stencilBack

WGPUStencilFaceState WGPUDepthStencilState::stencilBack

The INIT macro sets this to WGPU_STENCIL_FACE_STATE_INIT.

Definition at line 3847 of file webgpu.h.

◆ stencilReadMask

uint32_t WGPUDepthStencilState::stencilReadMask

The INIT macro sets this to 0xFFFFFFFF.

Definition at line 3851 of file webgpu.h.

◆ stencilWriteMask

uint32_t WGPUDepthStencilState::stencilWriteMask

The INIT macro sets this to 0xFFFFFFFF.

Definition at line 3855 of file webgpu.h.

◆ depthBias

int32_t WGPUDepthStencilState::depthBias

The INIT macro sets this to 0.

Definition at line 3859 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 3867 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 3875 of file webgpu.h.