Skip to main content

validate

Function validate 

Source
pub fn validate(scene: &SceneDocument) -> Result<(), Diagnostic>
Expand description

Validates a deserialized or programmatically constructed scene document.

This function borrows the document and performs no I/O or mutation. It checks format/version, bounded owned data, identifiers, graph topology, numeric transforms, material values, animations, conversations, and every tessellatable primitive.

§Errors

Returns a Diagnostic for any unsupported, malformed, oversized, non-finite, cyclic, or non-renderable scene value.