read.d.ts 465 B

123456789
  1. import { KTX2Container } from './container.js';
  2. /**
  3. * Parses a KTX 2.0 file, returning an unpacked {@link KTX2Container} instance with all associated
  4. * data. The container's mip levels and other binary data are pointers into the original file, not
  5. * copies, so the original file should not be overwritten after reading.
  6. *
  7. * @param data Bytes of KTX 2.0 file, as Uint8Array or Buffer.
  8. */
  9. export declare function read(data: Uint8Array): KTX2Container;