sdfsdfs
This commit is contained in:
23
node_modules/pixi.js/lib/compressed-textures/basis/detectBasis.mjs
generated
vendored
Normal file
23
node_modules/pixi.js/lib/compressed-textures/basis/detectBasis.mjs
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
import { ExtensionType } from '../../extensions/Extensions.mjs';
|
||||
import { isWebGLSupported } from '../../utils/browser/isWebGLSupported.mjs';
|
||||
import { isWebGPUSupported } from '../../utils/browser/isWebGPUSupported.mjs';
|
||||
|
||||
"use strict";
|
||||
const detectBasis = {
|
||||
extension: {
|
||||
type: ExtensionType.DetectionParser,
|
||||
priority: 3
|
||||
},
|
||||
test: async () => {
|
||||
if (await isWebGPUSupported())
|
||||
return true;
|
||||
if (isWebGLSupported())
|
||||
return true;
|
||||
return false;
|
||||
},
|
||||
add: async (formats) => [...formats, "basis"],
|
||||
remove: async (formats) => formats.filter((f) => f !== "basis")
|
||||
};
|
||||
|
||||
export { detectBasis };
|
||||
//# sourceMappingURL=detectBasis.mjs.map
|
Reference in New Issue
Block a user