Ktx2Reader
Allows clients to create Filament textures from KTX2 containers.
Contains a cache of the transcoding state. Call requestFormat at least once before load.
Parameters
don't log errors
Types
A texture whose mipmap levels asyncCreate leaves to transcode and upload.
How requestFormat, load and the async transcoding went.
The transfer function the KTX2 data must declare in its metadata.
Properties
Functions
Creates a texture without transcoding it yet, so mipmap levels can be populated asynchronously; data is copied. Returns null if none of the requested formats can be extracted from it.
Frees async and the source data it copied, but not its texture.
Creates and loads a texture from a KTX2 blob, or null if none of the requested formats can be extracted from it.
Removes a format from the list requestFormat builds.