UNPKG

@loaders.gl/textures

Version:

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

11 lines 677 B
import type { ImageDataType } from '@loaders.gl/images'; import { type KTX2BasisWriterOptions } from "../../ktx2-basis-writer.js"; /** * Encodes image to Basis Universal Supercompressed GPU Texture. * Code example is taken from here - https://github.com/BinomialLLC/basis_universal/blob/master/webgl/ktx2_encode_test/index.html#L279 * BasisEncoder API - https://github.com/BinomialLLC/basis_universal/blob/master/webgl/transcoder/basis_wrappers.cpp#L1712 * @param image * @param options */ export declare function encodeKTX2BasisTexture(image: ImageDataType, options?: KTX2BasisWriterOptions): Promise<ArrayBuffer>; //# sourceMappingURL=encode-ktx2-basis-texture.d.ts.map