Skip to main content

Basis Universal

Basis Universal is a supercompressed texture format designed to be transcoded efficiently into GPU-native compressed texture formats at load time.

Rather than shipping one texture asset per target GPU family, applications can distribute Basis-compressed data and transcode it on the client into a supported runtime format.

Why It Is Used​

Basis Universal is useful when an application needs:

  • smaller portable texture distribution assets
  • one source asset for multiple GPU format families
  • runtime selection of the best supported target texture format

Basis data may appear as:

  • raw .basis files
  • Basis payloads stored inside .ktx2 containers

loaders.gl Support​

Format Featureloaders.gl SupportNotes
Raw .basis inputYesSupported by BasisLoader.
Basis payloads in KTX2YesSupported by BasisLoader.
Runtime transcodingYesTranscodes into compressed or fallback uncompressed target formats.
Automatic format selectionYesbasis.format: 'auto' and basis.supportedTextureFormats help select a target format.
Preservation of multiple images / mip levelsYesReturned as TextureLevel[][].