Skip to main content

preflight_scale_source_bytes

Function preflight_scale_source_bytes 

Source
pub fn preflight_scale_source_bytes(
    path: &Path,
    bytes: &[u8],
) -> Result<GltfScaleSource, GltfScalePreflightError>
Expand description

Preflight captured glTF/GLB bytes without creating a candidate or output.

path is used only for source provenance and resolving resources. The initial accepted subset rejects external resources before resolving them, so a successful value is fully captured in memory.

ยงErrors

Returns GltfScalePreflightError::Load for malformed input and GltfScalePreflightError::Unsupported for unsupported raw domains.