1
0
forked from Rowland/EG
EG/Cesium-1.132/node_modules/ktx-parse/dist/read.d.ts
2025-08-25 17:48:13 +08:00

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;