loadKtx2 abstract method

Future<Texture> loadKtx2(
  1. Uint8List data
)

Create a Texture from the content of a KTX2 file containing BasisU-encoded data. Even though the KTX2 format does not mandate BasisU compression, the Filament implementation uses BasisU to decode KTX2 data (which will fail if you pass an uncompressed KTX2 file).

Implementation

Future<Texture> loadKtx2(Uint8List data);