Struct gltf::json::buffer::View
[−]
[src]
pub struct View { pub buffer: Index<Buffer>, pub byte_length: u32, pub byte_offset: u32, pub byte_stride: Option<ByteStride>, pub target: Option<Checked<Target>>, pub extensions: View, pub extras: Extras, }
A view into a buffer generally representing a subset of the buffer.
Fields
buffer: Index<Buffer>
The parent Buffer
.
byte_length: u32
The length of the BufferView
in bytes.
byte_offset: u32
Offset into the parent buffer in bytes.
byte_stride: Option<ByteStride>
The stride in bytes between vertex attributes or other interleavable data.
When zero, data is assumed to be tightly packed.
target: Option<Checked<Target>>
Optional target the buffer should be bound to.
extensions: View
Extension specific data.
extras: Extras
Optional application specific data.
Trait Implementations
impl Clone for View
[src]
fn clone(&self) -> View
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
impl Debug for View
[src]
impl Validate for View
[src]
fn validate_minimally<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
P: Fn() -> Path,
R: FnMut(&Fn() -> Path, Error),
P: Fn() -> Path,
R: FnMut(&Fn() -> Path, Error),
Validates only the invariants required for the library to function safely.
fn validate_completely<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
P: Fn() -> Path,
R: FnMut(&Fn() -> Path, Error),
P: Fn() -> Path,
R: FnMut(&Fn() -> Path, Error),
Validates the data against the glTF 2.0 specification.