pixi-basis-ktx2
Version:
Loader for the *.basis & *.ktx2 supercompressed texture file format. This package also ships with the transcoder!
17 lines • 697 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.detectBasis = void 0;
/* eslint-disable @typescript-eslint/require-await */
const core_1 = require("@pixi/core");
const BasisParser_1 = require("./BasisParser");
exports.detectBasis = {
extension: {
type: core_1.ExtensionType.DetectionParser,
priority: 3,
},
test: async () => !!(BasisParser_1.BasisParser.basisBinding && BasisParser_1.BasisParser.TranscoderWorker.wasmSource),
add: async (formats) => [...formats, 'basis'],
remove: async (formats) => formats.filter((f) => f !== 'basis'),
};
core_1.extensions.add(exports.detectBasis);
//# sourceMappingURL=detectBasis.js.map