pub struct View {
pub buffer: Index<Buffer>,
pub byte_length: USize64,
pub byte_offset: Option<USize64>,
pub byte_stride: Option<Stride>,
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: USize64
The length of the BufferView
in bytes.
byte_offset: Option<USize64>
Offset into the parent buffer in bytes.
byte_stride: Option<Stride>
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§
source§impl<'de> Deserialize<'de> for View
impl<'de> Deserialize<'de> for View
source§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 Send for View
impl Sync for View
impl Unpin for View
impl UnwindSafe for View
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more