From 8e755a7aeef2da15f867d508ea61adffc65a867d Mon Sep 17 00:00:00 2001 From: Chris Mills Date: Fri, 1 Nov 2024 11:58:47 +0000 Subject: [PATCH] Add beginRenderPass() depthSlice config option --- .../en-us/web/api/gpucommandencoder/beginrenderpass/index.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/files/en-us/web/api/gpucommandencoder/beginrenderpass/index.md b/files/en-us/web/api/gpucommandencoder/beginrenderpass/index.md index 2d6e406d0b0e884..b24300859b9fb17 100644 --- a/files/en-us/web/api/gpucommandencoder/beginrenderpass/index.md +++ b/files/en-us/web/api/gpucommandencoder/beginrenderpass/index.md @@ -75,6 +75,10 @@ Color attachment objects can have the following properties: If `clearValue` is omitted, it defaults to `{r: 0, g: 0, b: 0, a: 0}`. +- `depthSlice` {{optional_inline}} + + - : A number representing the index of the 3D depth slice that will be output to for this color attachment, in the case of a 3D {{domxref("GPUTextureView")}} `view`. When specified, this allows WebGPU to render directly to slices of 3D textures within render passes. + - `loadOp` - : An enumerated value indicating the load operation to perform on `view` prior to executing the render pass. Possible values are: