UNPKG

@loaders.gl/textures

Version:

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

24 lines 1.02 kB
// 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 TextureCubeArrayLoader = { dataType: null, batchType: null, id: 'texture-cube-array', name: 'Texture Cube Array', module: 'textures', version: VERSION, extensions: [], mimeTypes: [], text: true, worker: false, testText: (text) => testCompositeImageManifestShape(text, 'image-texture-cube-array'), options: { image: {} }, parse: async (arrayBuffer, options, context) => await parseCompositeImageManifest(new TextDecoder().decode(arrayBuffer), 'image-texture-cube-array', options, context), parseText: async (text, options, context) => await parseCompositeImageManifest(text, 'image-texture-cube-array', options, context) }; //# sourceMappingURL=texture-cube-array-loader.js.map