API reference

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

I

interfaceCompressedBlockLayout

@codexo/exojs / rendering / stable

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.

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

Properties3
blockHeight: number
blockWidth: number
bytesPerBlock: number
Source