Trait gltf_utils::Source [] [src]

pub trait Source: Debug {
    fn source_buffer(&self, buffer: &Buffer) -> &[u8];
}

Represents sources of buffer data.

See the Buffers type in the gltf-importer crate for the reference implementation.

Required Methods

Return the buffer data referenced by the given Buffer.

This method must not fail.

Implementors