Trait gltf::Source
[−]
[src]
pub trait Source: Debug { fn source_buffer(&self, buffer: &Buffer) -> &[u8]; }
Represents sources of buffer data.
The user is expected to implement this trait in order to unlock the abstractions
provided by the Loaded
type. The gltf-importer
crate provides a useable
reference implementation.
Required Methods
fn source_buffer(&self, buffer: &Buffer) -> &[u8]
Return the buffer data referenced by the given Buffer
.
This method must not fail.