#[repr(C)]pub struct VertexAttribute { /* private fields */ }
Implementations§
Source§impl VertexAttribute
impl VertexAttribute
pub fn new() -> Self
Sourcepub fn with_location(self, value: u32) -> Self
pub fn with_location(self, value: u32) -> Self
The shader input location index.
Sourcepub fn with_buffer_slot(self, value: u32) -> Self
pub fn with_buffer_slot(self, value: u32) -> Self
The binding slot of the associated vertex buffer.
Sourcepub fn with_format(self, value: VertexElementFormat) -> Self
pub fn with_format(self, value: VertexElementFormat) -> Self
The size and type of the attribute data.
Sourcepub fn with_offset(self, value: u32) -> Self
pub fn with_offset(self, value: u32) -> Self
The byte offset of this attribute relative to the start of the vertex element.
Trait Implementations§
Source§impl Clone for VertexAttribute
impl Clone for VertexAttribute
Source§fn clone(&self) -> VertexAttribute
fn clone(&self) -> VertexAttribute
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 Default for VertexAttribute
impl Default for VertexAttribute
Source§fn default() -> VertexAttribute
fn default() -> VertexAttribute
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VertexAttribute
impl RefUnwindSafe for VertexAttribute
impl Send for VertexAttribute
impl Sync for VertexAttribute
impl Unpin for VertexAttribute
impl UnwindSafe for VertexAttribute
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