Skip to main content

parse_glb_bytes

Function parse_glb_bytes 

Source
pub fn parse_glb_bytes(bytes: &[u8]) -> Result<ImportedScene3D, String>
Expand description

Parses a self-contained binary Khronos GLB v2 container (.glb) into an ImportedScene3D.

§Arguments

  • &[u8] - Raw .glb file bytes.

§Returns

  • Result<ImportedScene3D, String> - Fully imported scene bundle or validation error.