pub async fn load_buffers<F, Fut, E>(
    file: impl ExactSizeIterator<Item = Buffer<'_>>,
    blob: Option<Vec<u8>>,
    io_func: F
) -> Result<Vec<Vec<u8>>, GltfLoadError<E>> where
    F: FnMut(SsoString) -> Fut,
    Fut: Future<Output = Result<Vec<u8>, E>>,
    E: Error + 'static, 
Expand description

Loads buffers from a gltf::Buffer iterator, calling io_func to resolve them from URI.

If the gltf came from a .glb, the glb’s blob should be provided.

Panics

Panics if buffers requires a blob but no blob was given.