API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

E

enumCompressedTextureFormat

@codexo/exojs / rendering / stable

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.

0
props
0
methods
0
events
Import
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.

Members29
Astc10x10Unorm
Astc10x5Unorm
Astc10x6Unorm
Astc10x8Unorm
Astc12x10Unorm
Astc12x12Unorm
Astc4x4Unorm
Astc5x4Unorm
Astc5x5Unorm
Astc6x5Unorm
Astc6x6Unorm
Astc8x5Unorm
Astc8x6Unorm
Astc8x8Unorm
Bc1RgbaUnorm
Bc2RgbaUnorm
Bc3RgbaUnorm
Bc4RSnorm
Bc4RUnorm
Bc5RgSnorm
Bc5RgUnorm
Bc6hRgbFloat
Bc6hRgbUfloat
Bc7RgbaUnorm
EacR11Unorm
EacRg11Unorm
Etc2Rgb8A1Unorm
Etc2Rgb8Unorm
Etc2Rgba8Unorm
Source