Readonly bitsReadonly bitsConvert integer bit representations into ULPs-from-zero, e.g. unorm8 255 -> 255 ULPs
Readonly componentData type and bit length of each component in the format.
Readonly componentOrder of components in the packed representation.
Readonly decode: ComponentMapFnDecode the data representation into the shader values. ex.) unorm8 255 -> float 1.0
Readonly encode: ComponentMapFnEncode shader values into their data representation. ex.) float 1.0 -> unorm8 255
Readonly numberConvert numeric values into integer bit representations, e.g. numeric 1.0 -> unorm8 255
Readonly numericThe valid range of numeric "color" values, e.g. [0, Infinity] for ufloat.
Readonly pack: ComponentPackFnPack texel component values into an ArrayBuffer. ex.) rg8unorm {r: 0, g: 255} -> 0xFF00
Readonly unpackUnpack integer bit representations from an ArrayBuffer, e.g. 0xFF00 -> rg8unorm [0,255]
Generated using TypeDoc
Convert integer bit representations into numeric values, e.g. unorm8 255 -> numeric 1.0