pub struct VertexLayout {
pub array_stride: u64,
pub step_mode: VertexStepMode,
pub attributes: Vec<VertexAttribute>,
}Expand description
A vertex buffer layout (WGPUVertexBufferLayout) with owned attributes.
Fields§
§array_stride: u64§step_mode: VertexStepMode§attributes: Vec<VertexAttribute>Trait Implementations§
Source§impl Clone for VertexLayout
impl Clone for VertexLayout
Auto Trait Implementations§
impl Forget for VertexLayout
impl Freeze for VertexLayout
impl RefUnwindSafe for VertexLayout
impl Send for VertexLayout
impl Sync for VertexLayout
impl Unpin for VertexLayout
impl UnsafeUnpin for VertexLayout
impl UnwindSafe for VertexLayout
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