Struct gltf::buffer::View
[−]
[src]
pub struct View<'a> { /* fields omitted */ }
A view into a buffer generally representing a subset of the buffer.
Methods
impl<'a> View<'a>
[src]
fn index(&self) -> usize
Returns the internal JSON index.
fn as_json(&self) -> &View
Returns the internal JSON item.
fn buffer(&self) -> Buffer<'a>
Returns the parent Buffer
.
fn length(&self) -> usize
Returns the length of the buffer view in bytes.
fn offset(&self) -> usize
Returns the offset into the parent buffer in bytes.
fn stride(&self) -> Option<usize>
Returns the stride in bytes between vertex attributes or other interleavable
data. When None
, data is assumed to be tightly packed.
fn target(&self) -> Option<Target>
Optional target the buffer should be bound to.
fn extras(&self) -> &Extras
Optional application specific data.
Trait Implementations
impl<'a> Clone for View<'a>
[src]
fn clone(&self) -> View<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more