The .drft container · interface
BcImage
A block-compressed image, as a CODEC_BC payload holds it.
Explained in The .drft container.
interface BcImageimport type { BcImage } from '@driftengine/drft';Properties
| Name | Type | Description |
|---|---|---|
formatreadonly | BcFormat | |
srgbreadonly | boolean | What the author's header said of its texels. How a material slot samples them is still the renderer's decision, as for every other codec: a colour map is read as sRGB and a normal map as linear whatever its file claimed, so this is the author's statement rather than an instruction. |
widthreadonly | number | |
heightreadonly | number | |
levelsreadonly | readonly Uint8Array[] | Level 0 first. Views over the payload when read, never copies. |