Esc

Gltf_Component

enumextensionsince 0.36.1Source
  • macOS: Gltf_Component works on macOS
  • Linux: Gltf_Component works on Linux
  • Windows: Gltf_Component works on Windows
  • Wasm: Gltf_Component works on Wasm

Declaration

Gltf_Component :: enum u32 {
    BYTE :: 5120;    UNSIGNED_BYTE :: 5121;    SHORT :: 5122;    UNSIGNED_SHORT :: 5123;    UNSIGNED_INT :: 5125;    FLOAT :: 5126;}

The type of an accessor's components, with the glTF numeric codes. The enums in this file mirror the spec's closed sets: numeric ones are written as numbers, string ones in the spec's spelling, and a value outside the set fails to decode.

Example↗
assert(cast(u32) Gltf_Component.FLOAT == 5126);
assert(cast(u32) Gltf_Component.UNSIGNED_SHORT == 5123);

See also