API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
enumCompressedTextureFormat
A block-compressed GPU texture format. These are hardware formats: the GPU samples the compressed blocks directly, so a compressed texture costs a fraction of the VRAM and upload bandwidth of the same image as RGBA8 and stays compressed for its whole lifetime. No device supports all of them - desktop GPUs implement the BC family, mobile GPUs implement ETC2 and ASTC - so a project ships one file per target family and lets AssetVariantProfile pick per device rather than picking at build time. The values are the engine's own vocabulary, mapped per backend (`Bc7RgbaUnorm` becomes `bc7-rgba-unorm` on WebGPU and `COMPRESSED_RGBA_BPTC_UNORM_EXT` on WebGL2). Availability is read from RenderBackend.supportedTextureFormats.
import { CompressedTextureFormat } from '@codexo/exojs'A block-compressed GPU texture format.
These are hardware formats: the GPU samples the compressed blocks directly, so a compressed texture costs a fraction of the VRAM and upload bandwidth of the same image as RGBA8 and stays compressed for its whole lifetime. No device supports all of them - desktop GPUs implement the BC family, mobile GPUs implement ETC2 and ASTC - so a project ships one file per target family and lets AssetVariantProfile pick per device rather than picking at build time.
The values are the engine's own vocabulary, mapped per backend (`Bc7RgbaUnorm` becomes `bc7-rgba-unorm` on WebGPU and `COMPRESSED_RGBA_BPTC_UNORM_EXT` on WebGL2). Availability is read from RenderBackend.supportedTextureFormats.
Astc10x10UnormAstc10x5UnormAstc10x6UnormAstc10x8UnormAstc12x10UnormAstc12x12UnormAstc4x4UnormAstc5x4UnormAstc5x5UnormAstc6x5UnormAstc6x6UnormAstc8x5UnormAstc8x6UnormAstc8x8UnormBc1RgbaUnormBc2RgbaUnormBc3RgbaUnormBc4RSnormBc4RUnormBc5RgSnormBc5RgUnormBc6hRgbFloatBc6hRgbUfloatBc7RgbaUnormEacR11UnormEacRg11UnormEtc2Rgb8A1UnormEtc2Rgb8UnormEtc2Rgba8Unorm