pub struct VertexAttribute<'a> {
pub name: &'a str,
pub format: AttributeFormat,
pub offset: u32,
}Expand description
Attribute entry inside a VertexBinding.
Fields§
§name: &'a str§format: AttributeFormat§offset: u32Implementations§
Source§impl<'a> VertexAttribute<'a>
impl<'a> VertexAttribute<'a>
pub const fn new(name: &'a str, format: AttributeFormat, offset: u32) -> Self
Trait Implementations§
Source§impl<'a> Clone for VertexAttribute<'a>
impl<'a> Clone for VertexAttribute<'a>
impl<'a> Copy for VertexAttribute<'a>
Auto Trait Implementations§
impl<'a> Forget for VertexAttribute<'a>
impl<'a> Freeze for VertexAttribute<'a>
impl<'a> Move for VertexAttribute<'a>
impl<'a> RefUnwindSafe for VertexAttribute<'a>
impl<'a> Send for VertexAttribute<'a>
impl<'a> Sync for VertexAttribute<'a>
impl<'a> Unpin for VertexAttribute<'a>
impl<'a> UnsafeUnpin for VertexAttribute<'a>where
&'a str: UnsafeUnpin,
impl<'a> UnwindSafe for VertexAttribute<'a>where
&'a str: UnwindSafe,
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