pub struct BufferView {
pub buffer: usize,
pub byte_offset: Option<usize>,
pub byte_length: usize,
pub byte_stride: Option<usize>,
pub target: Option<BufferViewTarget>,
pub name: Option<String>,
pub extensions: Option<Extension>,
}
Expand description
A view into a buffer generally representing a subset of the buffer.
Fields§
§buffer: usize
The index of the buffer.
byte_offset: Option<usize>
The offset into the buffer in bytes.
byte_length: usize
The length of the bufferView in bytes.
byte_stride: Option<usize>
The stride, in bytes.
target: Option<BufferViewTarget>
The target that the GPU buffer should be bound to.
name: Option<String>
The user-defined name of this object.
extensions: Option<Extension>
Dictionary object with extension-specific objects.
Trait Implementations§
Source§impl Clone for BufferView
impl Clone for BufferView
Source§fn clone(&self) -> BufferView
fn clone(&self) -> BufferView
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BufferView
impl Debug for BufferView
Source§impl<'a> Deserialize<'a> for BufferView
impl<'a> Deserialize<'a> for BufferView
fn deserialize<D: Deserializer<'a>>(deserializer: &mut D) -> Option<Self>
Source§impl Serialize for BufferView
impl Serialize for BufferView
fn serialize<S: Serializer>(&self, serializer: &mut S)
Auto Trait Implementations§
impl Freeze for BufferView
impl RefUnwindSafe for BufferView
impl Send for BufferView
impl Sync for BufferView
impl Unpin for BufferView
impl UnwindSafe for BufferView
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