Ktx1Bundle
An in-memory representation of a KTX1 file: a hierarchy of blobs (miplevels, array elements, cubemap faces) and metadata.
See also
Properties
Link copied to clipboard
The number of array elements, which is 1 for a plain texture.
Link copied to clipboard
The native object, for interop with code calling the Fila* C API directly. Read-only: this wrapper owns it.
Link copied to clipboard
The number of miplevels.
Link copied to clipboard
The size of the KTX file serialize writes.
Functions
Link copied to clipboard
Frees the bundle, unless Ktx1Reader.createTexture took it.
Link copied to clipboard
The KTX metadata value of key, or null if it has none.
Link copied to clipboard
Parses the key="sh" metadata into result: 3 bands of spherical harmonics, 9 RGB coefficients (27 floats).
Link copied to clipboard
Writes out the KTX file into destination, which must hold serializedLength bytes; false if it's too small.
Link copied to clipboard
Adds a key/value pair to the KTX metadata.