The .drft container · interface

BcImage

A block-compressed image, as a CODEC_BC payload holds it.

Explained in The .drft container.

interface BcImage
import type { BcImage } from '@driftengine/drft';

Properties

NameTypeDescription
formatreadonlyBcFormat
srgbreadonlybooleanWhat 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.
widthreadonlynumber
heightreadonlynumber
levelsreadonlyreadonly Uint8Array[]Level 0 first. Views over the payload when read, never copies.