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

Field Documentation

◆ nextInChain

WGPUChainedStruct* WGPURenderPassDepthStencilAttachment::nextInChain

Definition at line 2610 of file webgpu.h.

◆ view

WGPUTextureView WGPURenderPassDepthStencilAttachment::view

The INIT macro sets this to NULL.

Definition at line 2614 of file webgpu.h.

◆ depthLoadOp

WGPULoadOp WGPURenderPassDepthStencilAttachment::depthLoadOp

The INIT macro sets this to WGPULoadOp_Undefined.

Definition at line 2618 of file webgpu.h.

◆ depthStoreOp

WGPUStoreOp WGPURenderPassDepthStencilAttachment::depthStoreOp

The INIT macro sets this to WGPUStoreOp_Undefined.

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

◆ depthReadOnly

WGPUBool WGPURenderPassDepthStencilAttachment::depthReadOnly

The INIT macro sets this to 0.

Definition at line 2637 of file webgpu.h.

◆ stencilLoadOp

WGPULoadOp WGPURenderPassDepthStencilAttachment::stencilLoadOp

The INIT macro sets this to WGPULoadOp_Undefined.

Definition at line 2641 of file webgpu.h.

◆ stencilStoreOp

WGPUStoreOp WGPURenderPassDepthStencilAttachment::stencilStoreOp

The INIT macro sets this to WGPUStoreOp_Undefined.

Definition at line 2645 of file webgpu.h.

◆ stencilClearValue

uint32_t WGPURenderPassDepthStencilAttachment::stencilClearValue

The INIT macro sets this to 0.

Definition at line 2649 of file webgpu.h.

◆ stencilReadOnly

WGPUBool WGPURenderPassDepthStencilAttachment::stencilReadOnly

The INIT macro sets this to 0.

Definition at line 2653 of file webgpu.h.