From cbf617556383e5a52bc708ba88b30968437bf1fb Mon Sep 17 00:00:00 2001 From: Diego Betto Date: Tue, 20 May 2025 10:54:18 +0200 Subject: [PATCH] fix: Update GPU instantiation to use GPU.GPU() in example files --- examples/fluid.html | 2 +- examples/internal-variable-precision.html | 2 +- examples/mandelbrot-set.html | 2 +- examples/mandelbulb.html | 2 +- examples/parallel-raytracer.html | 2 +- examples/random.html | 6 +++--- examples/raytracer.html | 4 ++-- examples/simple-javascript.js | 4 +--- examples/slow-fade.html | 2 +- 9 files changed, 12 insertions(+), 14 deletions(-) diff --git a/examples/fluid.html b/examples/fluid.html index 2b3fd1ba..d4d27ed0 100644 --- a/examples/fluid.html +++ b/examples/fluid.html @@ -27,7 +27,7 @@ this.keys = {}; this.canvas = document.createElement('canvas'); - const gpu = this.gpu = new GPU({ + const gpu = this.gpu = new GPU.GPU({ canvas: this.canvas, mode: 'gpu' }); diff --git a/examples/internal-variable-precision.html b/examples/internal-variable-precision.html index 0cf6ee42..0fa9e84e 100644 --- a/examples/internal-variable-precision.html +++ b/examples/internal-variable-precision.html @@ -10,7 +10,7 @@

GPU.js Internal variable precision: