Skip to content

ZenFG TypeScript API / webgpu / root / RenderDepthStencilAttachmentDesc

Type Alias: RenderDepthStencilAttachmentDesc

RenderDepthStencilAttachmentDesc = RenderDepthStencilAttachmentBaseDesc & { depthLoadOp?: never; depthReadOnly: true; depthStoreOp?: never; } | { depthLoadOp: "load"; depthReadOnly?: false; depthStoreOp: GPUStoreOp; } | { depthClearValue: number; depthLoadOp: "clear"; depthReadOnly?: false; depthStoreOp: GPUStoreOp; }

Defined in: packages/webgpu/src/types.ts:595

Beta

Describes the depth attachment of a render-pass node.

FrameGraph currently accepts pure depth formats only. Formats containing a stencil aspect are rejected when registered. Reverse-z clear and comparison conventions remain caller-owned.

Open source / MIT licensed