pub struct VertexAttribute { /* private fields */ }Implementations§
Source§impl VertexAttribute
impl VertexAttribute
pub fn new( name: &str, format: u32, offset: usize, buffer_index: usize, ) -> Result<Self>
pub fn info(&self) -> Result<VertexAttributeDescriptorInfo>
pub fn set_name(&self, name: &str) -> Result<()>
pub fn set_format(&self, format: u32)
pub fn set_offset(&self, offset: usize)
pub fn set_buffer_index(&self, buffer_index: usize)
pub fn set_time(&self, time: f64)
pub fn set_initialization_value(&self, value: [f32; 4])
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VertexAttribute
impl RefUnwindSafe for VertexAttribute
impl !Send for VertexAttribute
impl !Sync for VertexAttribute
impl Unpin for VertexAttribute
impl UnsafeUnpin 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