write.d.ts 702 B

123456789101112131415161718
  1. import { KTX2Container } from './container.js';
  2. interface WriteOptions {
  3. keepWriter?: boolean;
  4. }
  5. /**
  6. * Serializes a {@link KTX2Container} instance to a KTX 2.0 file. Mip levels and other binary data
  7. * are copied into the resulting Uint8Array, so the original container can safely be edited or
  8. * destroyed after it is serialized.
  9. *
  10. * Options:
  11. * - keepWriter: If true, 'KTXWriter' key/value field is written as provided by the container.
  12. * Otherwise, a string for the current ktx-parse version is generated. Default: false.
  13. *
  14. * @param container
  15. * @param options
  16. */
  17. export declare function write(container: KTX2Container, options?: WriteOptions): Uint8Array;
  18. export {};