Esc

Gltf_Error_Kind

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

Declaration

Gltf_Error_Kind :: enum {
    NONE;// the text is not valid JSON for the schema    JSON;// a malformed GLB header, chunk or binary buffer    CONTAINER;// a Gltf_Options bound was exceeded    LIMIT;// a buffer or image could not be fetched or was the wrong size    RESOLVE;// the document breaks a glTF rule    INVALID;}

Which stage of loading or validating failed.

Example↗
_, error := gltf_load("{");
assert(error.kind == .JSON);
gltf_error_free(*error);

See also