API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceCompressedBlockLayout
Block geometry of a compressed format: the texel footprint of one block and how many bytes that block occupies. Both backends need it for every upload - WebGL2 to size the level slice it hands `compressedTexImage2D`, WebGPU to compute a `bytesPerRow` that counts block rows rather than texel rows - and the container parser needs it to validate a level's declared byte length before trusting it.
import { CompressedBlockLayout } from '@codexo/exojs'Block geometry of a compressed format: the texel footprint of one block and how many bytes that block occupies.
Both backends need it for every upload - WebGL2 to size the level slice it hands `compressedTexImage2D`, WebGPU to compute a `bytesPerRow` that counts block rows rather than texel rows - and the container parser needs it to validate a level's declared byte length before trusting it.
blockHeight: numberblockWidth: numberbytesPerBlock: number