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 3788 of file webgpu.h.

Field Documentation

◆ nextInChain

WGPUChainedStruct* WGPUDepthStencilState::nextInChain

Definition at line 3789 of file webgpu.h.

◆ format

WGPUTextureFormat WGPUDepthStencilState::format

The INIT macro sets this to WGPUTextureFormat_Undefined.

Definition at line 3793 of file webgpu.h.

◆ depthWriteEnabled

WGPUOptionalBool WGPUDepthStencilState::depthWriteEnabled

The INIT macro sets this to WGPUOptionalBool_Undefined.

Definition at line 3797 of file webgpu.h.

◆ depthCompare

WGPUCompareFunction WGPUDepthStencilState::depthCompare

The INIT macro sets this to WGPUCompareFunction_Undefined.

Definition at line 3801 of file webgpu.h.

◆ stencilFront

WGPUStencilFaceState WGPUDepthStencilState::stencilFront

The INIT macro sets this to WGPU_STENCIL_FACE_STATE_INIT.

Definition at line 3805 of file webgpu.h.

◆ stencilBack

WGPUStencilFaceState WGPUDepthStencilState::stencilBack

The INIT macro sets this to WGPU_STENCIL_FACE_STATE_INIT.

Definition at line 3809 of file webgpu.h.

◆ 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

TODO

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

The INIT macro sets this to 0.f.

Definition at line 3829 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 3837 of file webgpu.h.