From 1f05bb96bced0458a1647b66606e9dd61430d721 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Thu, 9 Jan 2025 15:02:40 -0800 Subject: [PATCH] Upload new bundle for testing iOS. --- global.min.js | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/global.min.js b/global.min.js index 5b81559..b136d6d 100644 --- a/global.min.js +++ b/global.min.js @@ -11426,16 +11426,12 @@ var init_gpu = __esm({ { binding: 0, visibility: GPUShaderStage.COMPUTE, - buffer: { - type: "uniform" - } + buffer: { type: "uniform" } }, { binding: 1, visibility: GPUShaderStage.COMPUTE, - buffer: { - type: "storage" - } + buffer: { type: "storage" } } ] }); @@ -11454,9 +11450,9 @@ var init_gpu = __esm({ static reset(loss) { console.dir(loss); console.warn(`Device lost. Reinitializing...`); - this.#cpuBuffer?.destroy(); - this.#gpuBuffer?.destroy(); - this.#uboBuffer?.destroy(); + if (this.#cpuBuffer) this.#cpuBuffer.destroy(); + if (this.#gpuBuffer) this.#gpuBuffer.destroy(); + if (this.#uboBuffer) this.#uboBuffer.destroy(); this.#busy = false; this.init(); } -- 2.34.1