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