From fe962f40733578bf7009910ec62c2d97e3cc1511 Mon Sep 17 00:00:00 2001 From: Greggman Date: Thu, 3 Oct 2024 07:42:49 +0900 Subject: [PATCH] "Fix" clear value (#454) We previously set all clearValue settings to arrays. Arrays are arguably a better pattern as they directly map to TypedArrays and other forms of 4 values. --- sample/occlusionQuery/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sample/occlusionQuery/main.ts b/sample/occlusionQuery/main.ts index 8b1d9170..60a425a2 100644 --- a/sample/occlusionQuery/main.ts +++ b/sample/occlusionQuery/main.ts @@ -211,7 +211,7 @@ const renderPassDescriptor: GPURenderPassDescriptor = { colorAttachments: [ { view: undefined, // Assigned later - clearValue: { r: 0.5, g: 0.5, b: 0.5, a: 1.0 }, + clearValue: [0.5, 0.5, 0.5, 1.0], loadOp: 'clear', storeOp: 'store', },