pub struct VertexAttribute {
pub name: &'static str,
pub format: VertexFormat,
pub buffer_index: usize,
}
Fields
name: &'static str
format: VertexFormat
buffer_index: usize
Implementations
sourceimpl VertexAttribute
impl VertexAttribute
pub const fn new(name: &'static str, format: VertexFormat) -> VertexAttribute
pub const fn with_buffer(
name: &'static str,
format: VertexFormat,
buffer_index: usize
) -> VertexAttribute
Trait Implementations
sourceimpl Clone for VertexAttribute
impl Clone for VertexAttribute
sourcefn clone(&self) -> VertexAttribute
fn clone(&self) -> VertexAttribute
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for VertexAttribute
impl Send for VertexAttribute
impl Sync for VertexAttribute
impl Unpin for VertexAttribute
impl UnwindSafe for VertexAttribute
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more