forked from Rowland/EG
10 lines
461 B
TypeScript
10 lines
461 B
TypeScript
import type { KTX2Container } from './container.js';
|
|
/**
|
|
* Parses a KTX 2.0 file, returning an unpacked {@link KTX2Container} instance with all associated
|
|
* data. The container's mip levels and other binary data are pointers into the original file, not
|
|
* copies, so the original file should not be overwritten after reading.
|
|
*
|
|
* @param data Bytes of KTX 2.0 file, as Uint8Array or Buffer.
|
|
*/
|
|
export declare function read(data: Uint8Array): KTX2Container;
|