WebGPU Headers
The WebGPU C API
 
All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
Loading...
Searching...
No Matches
WGPURenderPassDepthStencilAttachment Struct Reference

Data Fields

WGPUChainedStructnextInChain
 
WGPUTextureView view
 
WGPULoadOp depthLoadOp
 
WGPUStoreOp depthStoreOp
 
float depthClearValue
 
WGPUBool depthReadOnly
 
WGPULoadOp stencilLoadOp
 
WGPUStoreOp stencilStoreOp
 
uint32_t stencilClearValue
 
WGPUBool stencilReadOnly
 

Detailed Description

Default values can be set using WGPU_RENDER_PASS_DEPTH_STENCIL_ATTACHMENT_INIT as initializer.

Definition at line 2651 of file webgpu.h.

Field Documentation

◆ nextInChain

WGPUChainedStruct* WGPURenderPassDepthStencilAttachment::nextInChain

Definition at line 2652 of file webgpu.h.

◆ view

WGPUTextureView WGPURenderPassDepthStencilAttachment::view

The INIT macro sets this to NULL.

Definition at line 2656 of file webgpu.h.

◆ depthLoadOp

WGPULoadOp WGPURenderPassDepthStencilAttachment::depthLoadOp

The INIT macro sets this to WGPULoadOp_Undefined.

Definition at line 2660 of file webgpu.h.

◆ depthStoreOp

WGPUStoreOp WGPURenderPassDepthStencilAttachment::depthStoreOp

The INIT macro sets this to WGPUStoreOp_Undefined.

Definition at line 2664 of file webgpu.h.

◆ depthClearValue

float WGPURenderPassDepthStencilAttachment::depthClearValue

This is a Nullable Floating-Point Type.

If NaN, indicates an undefined value (as defined by the JS spec). Use WGPU_DEPTH_CLEAR_VALUE_UNDEFINED to indicate this semantically.

If infinite, produces a Non-Finite Float Value Errors.

The INIT macro sets this to WGPU_DEPTH_CLEAR_VALUE_UNDEFINED.

Definition at line 2675 of file webgpu.h.

◆ depthReadOnly

WGPUBool WGPURenderPassDepthStencilAttachment::depthReadOnly

The INIT macro sets this to WGPU_FALSE.

Definition at line 2679 of file webgpu.h.

◆ stencilLoadOp

WGPULoadOp WGPURenderPassDepthStencilAttachment::stencilLoadOp

The INIT macro sets this to WGPULoadOp_Undefined.

Definition at line 2683 of file webgpu.h.

◆ stencilStoreOp

WGPUStoreOp WGPURenderPassDepthStencilAttachment::stencilStoreOp

The INIT macro sets this to WGPUStoreOp_Undefined.

Definition at line 2687 of file webgpu.h.

◆ stencilClearValue

uint32_t WGPURenderPassDepthStencilAttachment::stencilClearValue

The INIT macro sets this to 0.

Definition at line 2691 of file webgpu.h.

◆ stencilReadOnly

WGPUBool WGPURenderPassDepthStencilAttachment::stencilReadOnly

The INIT macro sets this to WGPU_FALSE.

Definition at line 2695 of file webgpu.h.