MCPcopy Create free account
hub / github.com/PerroEngine/Perro / parse_panim

Function parse_panim

perro_source/core/perro_animation/src/panim/core.rs:1–4  ·  view source on GitHub ↗
(source: &str)

Source from the content-addressed store, hash-verified

1pub fn parse_panim(source: &str) -> Result<AnimationClip, String> {
2 let mut parser = PanimParser::new(source);
3 let clip = parser.parse()?;
4 // Load-time (cold) guard 4 the sampler's binary-search invariant; the
5 // per-sample path must not re-verify it per frame.
6 clip.validate_key_order()?;
7 Ok(clip)

Calls 1

parseMethod · 0.45