Files
il/resources/public/js/cljs-runtime/module$node_modules$pixi_DOT_js$lib$utils$browser$isWebGPUSupported.js
2026-07-01 22:38:29 -06:00

21 lines
783 B
JavaScript

shadow$provide.module$node_modules$pixi_DOT_js$lib$utils$browser$isWebGPUSupported = function(global, require, module, exports) {
var adapter = require("module$node_modules$pixi_DOT_js$lib$environment$adapter");
"use strict";
let _isWebGPUSupported;
exports.isWebGPUSupported = async function(options = {}) {
return void 0 !== _isWebGPUSupported ? _isWebGPUSupported : _isWebGPUSupported = await (async() => {
const gpu = adapter.DOMAdapter.get().getNavigator().gpu;
if (!gpu) {
return !1;
}
try {
return await (await gpu.requestAdapter(options)).requestDevice(), !0;
} catch (_e) {
return !1;
}
})();
};
};
//# sourceMappingURL=module$node_modules$pixi_DOT_js$lib$utils$browser$isWebGPUSupported.js.map