From 2678ab34f2d538611bf4228d9f524642e09dfe37 Mon Sep 17 00:00:00 2001 From: James Price Date: Mon, 20 Mar 2023 17:42:21 -0400 Subject: [PATCH] Use getPreferredCanvasFormat() in render pipeline --- src/nbody.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nbody.ts b/src/nbody.ts index c264c60..917e63c 100644 --- a/src/nbody.ts +++ b/src/nbody.ts @@ -121,7 +121,7 @@ function initPipelines() { module: module, entryPoint: 'fs_main', targets: [{ - format: 'bgra8unorm', + format: navigator.gpu.getPreferredCanvasFormat(), blend: { color: { operation: "add",