From: Chris Duncan Date: Thu, 9 Jan 2025 23:02:40 +0000 (-0800) Subject: Upload new bundle for testing iOS. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=1f05bb96bced0458a1647b66606e9dd61430d721;p=libnemo.git Upload new bundle for testing iOS. --- 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(); }