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

The parent Buffer.

The length of the BufferView in bytes.

Offset into the parent buffer in bytes.

The stride in bytes between vertex attributes or other interleavable data.

When zero, data is assumed to be tightly packed.

Optional target the buffer should be bound to.

Extension specific data.

Optional application specific data.

Trait Implementations

impl Clone for View
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for View
[src]

Formats the value using the given formatter.

impl Validate for View
[src]

Validates only the invariants required for the library to function safely.

Validates the data against the glTF 2.0 specification.