q5 4.6.3 → 4.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/deno.json +1 -1
- package/package.json +1 -1
- package/q5.js +2 -5
- package/q5.min.js +1 -1
- package/q5.min.js.map +1 -1
package/deno.json
CHANGED
package/package.json
CHANGED
package/q5.js
CHANGED
|
@@ -9081,11 +9081,8 @@ Q5.initWebGPU = async () => {
|
|
|
9081
9081
|
|
|
9082
9082
|
Q5.WebGPU = async function (scope, parent) {
|
|
9083
9083
|
if (!scope || scope == 'global') Q5._hasGlobal = true;
|
|
9084
|
-
let
|
|
9085
|
-
|
|
9086
|
-
q = new Q5(scope, parent, 'webgpu-fallback');
|
|
9087
|
-
}
|
|
9088
|
-
q = new Q5(scope, parent, 'webgpu');
|
|
9084
|
+
let supportsWebGPU = await Q5.initWebGPU(),
|
|
9085
|
+
q = new Q5(scope, parent, 'webgpu' + (supportsWebGPU ? '' : '-fallback'));
|
|
9089
9086
|
await q.ready;
|
|
9090
9087
|
return q;
|
|
9091
9088
|
};
|