Struct gltf_json::buffer::View [−][src]
pub struct View {
pub buffer: Index<Buffer>,
pub byte_length: u32,
pub byte_offset: Option<u32>,
pub byte_stride: Option<u32>,
pub name: Option<String>,
pub target: Option<Checked<Target>>,
pub extensions: Option<View>,
pub extras: Extras,
}
Expand description
A view into a buffer generally representing a subset of the buffer.
https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#reference-bufferview
Fields
buffer: Index<Buffer>
The parent Buffer
.
byte_length: u32
The length of the BufferView
in bytes.
byte_offset: Option<u32>
Offset into the parent buffer in bytes.
byte_stride: Option<u32>
The stride in bytes between vertex attributes or other interleavable data.
When zero, data is assumed to be tightly packed.
name: Option<String>
Optional user-defined name for this object.
target: Option<Checked<Target>>
Optional target the buffer should be bound to.
extensions: Option<View>
Extension specific data.
extras: Extras
Optional application specific data.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for View
impl UnwindSafe for View
Blanket Implementations
Mutably borrows from an owned value. Read more