UNPKG

@loaders.gl/textures

Version:

Framework-independent loaders for compressed and super compressed (basis) textures

24 lines 983 B
// loaders.gl // SPDX-License-Identifier: MIT // Copyright (c) vis.gl contributors import { VERSION } from "./lib/utils/version.js"; import { parseCompositeImageManifest, testCompositeImageManifestShape } from "./lib/composite-image/parse-composite-image.js"; export const TextureArrayLoader = { dataType: null, batchType: null, id: 'texture-array', name: 'Texture Array', module: 'textures', version: VERSION, extensions: [], mimeTypes: [], text: true, worker: false, testText: (text) => testCompositeImageManifestShape(text, 'image-texture-array'), options: { image: {} }, parse: async (arrayBuffer, options, context) => await parseCompositeImageManifest(new TextDecoder().decode(arrayBuffer), 'image-texture-array', options, context), parseText: async (text, options, context) => await parseCompositeImageManifest(text, 'image-texture-array', options, context) }; //# sourceMappingURL=texture-array-loader.js.map