pub struct VertexBufferLayout<'a> {
pub stride: u32,
pub per_instance: bool,
pub attributes: &'a [VertexAttribute],
}Expand description
a vertex buffer slot (empty list: vertex pulling)
Fields§
§stride: u32§per_instance: bool§attributes: &'a [VertexAttribute]Trait Implementations§
Source§impl<'a> Clone for VertexBufferLayout<'a>
impl<'a> Clone for VertexBufferLayout<'a>
impl<'a> Copy for VertexBufferLayout<'a>
Auto Trait Implementations§
impl<'a> Forget for VertexBufferLayout<'a>
impl<'a> Freeze for VertexBufferLayout<'a>
impl<'a> RefUnwindSafe for VertexBufferLayout<'a>
impl<'a> Send for VertexBufferLayout<'a>
impl<'a> Sync for VertexBufferLayout<'a>
impl<'a> Unpin for VertexBufferLayout<'a>
impl<'a> UnsafeUnpin for VertexBufferLayout<'a>
impl<'a> UnwindSafe for VertexBufferLayout<'a>
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