]> zoso.dev Git - nano-pow.git/commitdiff
Log loading errors for WebGPU in addition to WebGL.
authorChris Duncan <chris@zoso.dev>
Wed, 5 Feb 2025 13:58:27 +0000 (05:58 -0800)
committerChris Duncan <chris@zoso.dev>
Wed, 5 Feb 2025 13:58:27 +0000 (05:58 -0800)
src/classes/index.ts

index 7908c6f19bad4ac71468d1d22d855bed0bbe2fc9..3e7f7e07944d0c6516e9e3545b24e2c89109fcac 100644 (file)
@@ -9,6 +9,7 @@ try {
        await NanoPowGpu.init()
        isGpuSupported = true
 } catch (err) {
+       console.error(err)
        console.warn(`WebGPU is not supported in this environment.`)
        isGpuSupported = false
 }