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]
impl Clone for Viewfn clone(&self) -> View[src]
fn clone(&self) -> ViewReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for View[src]
impl Debug for Viewfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Validate for View[src]
impl Validate for Viewfn validate_minimally<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
P: Fn() -> Path,
R: FnMut(&Fn() -> Path, Error), [src]
fn validate_minimally<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
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), [src]
fn validate_completely<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
P: Fn() -> Path,
R: FnMut(&Fn() -> Path, Error), Validates the data against the glTF 2.0 specification. Read more
impl<'a> Get<View> for Root[src]
impl<'a> Get<View> for Root