Documentation / @debuffjp/core / parseKtx2
Function: parseKtx2()
parseKtx2(
bytes):CompressedTexture
Defined in: spryte/dist/ktx2.d.ts:27
Reads a KTX2 file holding BC7, ETC2 (RGBA) or ASTC 4x4 data, as written by toktx, basisu or ktx create. Supercompressed files (Basis, zstd) aren't supported: encode straight to the GPU format. Throws when the file can't be used, naming why.
Parameters
bytes
Uint8Array