WebGPU Headers
The WebGPU C API
 
Loading...
Searching...
No Matches
WGPUDepthStencilState Struct Reference

Data Fields

WGPUChainedStruct const * nextInChain
 
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 3530 of file webgpu.h.

Field Documentation

◆ nextInChain

WGPUChainedStruct const* WGPUDepthStencilState::nextInChain

Definition at line 3531 of file webgpu.h.

◆ format

WGPUTextureFormat WGPUDepthStencilState::format

Defaults to WGPUTextureFormat_Undefined.

Definition at line 3535 of file webgpu.h.

◆ depthWriteEnabled

WGPUOptionalBool WGPUDepthStencilState::depthWriteEnabled

Defaults to WGPUOptionalBool_Undefined.

Definition at line 3539 of file webgpu.h.

◆ depthCompare

WGPUCompareFunction WGPUDepthStencilState::depthCompare

Defaults to (WGPUCompareFunction)0.

Definition at line 3543 of file webgpu.h.

◆ stencilFront

WGPUStencilFaceState WGPUDepthStencilState::stencilFront

Defaults to WGPU_STENCIL_FACE_STATE_INIT.

Definition at line 3547 of file webgpu.h.

◆ stencilBack

WGPUStencilFaceState WGPUDepthStencilState::stencilBack

Defaults to WGPU_STENCIL_FACE_STATE_INIT.

Definition at line 3551 of file webgpu.h.

◆ stencilReadMask

uint32_t WGPUDepthStencilState::stencilReadMask

Defaults to 0xFFFFFFFF.

Definition at line 3555 of file webgpu.h.

◆ stencilWriteMask

uint32_t WGPUDepthStencilState::stencilWriteMask

Defaults to 0xFFFFFFFF.

Definition at line 3559 of file webgpu.h.

◆ depthBias

int32_t WGPUDepthStencilState::depthBias

Defaults to 0.

Definition at line 3563 of file webgpu.h.

◆ depthBiasSlopeScale

float WGPUDepthStencilState::depthBiasSlopeScale

Defaults to 0.f.

Definition at line 3567 of file webgpu.h.

◆ depthBiasClamp

float WGPUDepthStencilState::depthBiasClamp

Defaults to 0.f.

Definition at line 3571 of file webgpu.h.