WebGPU Headers
The WebGPU C API
 
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 2497 of file webgpu.h.

Field Documentation

◆ nextInChain

WGPUChainedStruct* WGPURenderPassDepthStencilAttachment::nextInChain

Definition at line 2498 of file webgpu.h.

◆ view

WGPUTextureView WGPURenderPassDepthStencilAttachment::view

The INIT macro sets this to NULL.

Definition at line 2502 of file webgpu.h.

◆ depthLoadOp

WGPULoadOp WGPURenderPassDepthStencilAttachment::depthLoadOp

The INIT macro sets this to WGPULoadOp_Undefined.

Definition at line 2506 of file webgpu.h.

◆ depthStoreOp

WGPUStoreOp WGPURenderPassDepthStencilAttachment::depthStoreOp

The INIT macro sets this to WGPUStoreOp_Undefined.

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

◆ depthReadOnly

WGPUBool WGPURenderPassDepthStencilAttachment::depthReadOnly

The INIT macro sets this to 0.

Definition at line 2525 of file webgpu.h.

◆ stencilLoadOp

WGPULoadOp WGPURenderPassDepthStencilAttachment::stencilLoadOp

The INIT macro sets this to WGPULoadOp_Undefined.

Definition at line 2529 of file webgpu.h.

◆ stencilStoreOp

WGPUStoreOp WGPURenderPassDepthStencilAttachment::stencilStoreOp

The INIT macro sets this to WGPUStoreOp_Undefined.

Definition at line 2533 of file webgpu.h.

◆ stencilClearValue

uint32_t WGPURenderPassDepthStencilAttachment::stencilClearValue

The INIT macro sets this to 0.

Definition at line 2537 of file webgpu.h.

◆ stencilReadOnly

WGPUBool WGPURenderPassDepthStencilAttachment::stencilReadOnly

The INIT macro sets this to 0.

Definition at line 2541 of file webgpu.h.