pub struct VertexAttribute { /* private fields */ }Expand description
Wraps the corresponding Model I/O vertex attribute counterpart.
Implementations§
Source§impl VertexAttribute
impl VertexAttribute
Sourcepub fn new(
name: &str,
format: u32,
offset: usize,
buffer_index: usize,
) -> Result<Self>
pub fn new( name: &str, format: u32, offset: usize, buffer_index: usize, ) -> Result<Self>
Wraps the corresponding Model I/O initializer for the wrapped Model I/O vertex attribute counterpart.
Sourcepub fn info(&self) -> Result<VertexAttributeDescriptorInfo>
pub fn info(&self) -> Result<VertexAttributeDescriptorInfo>
Calls the corresponding Model I/O method on the wrapped Model I/O vertex attribute counterpart.
Sourcepub fn set_name(&self, name: &str) -> Result<()>
pub fn set_name(&self, name: &str) -> Result<()>
Calls the corresponding Model I/O method on the wrapped Model I/O vertex attribute counterpart.
Sourcepub fn set_format(&self, format: u32)
pub fn set_format(&self, format: u32)
Calls the corresponding Model I/O method on the wrapped Model I/O vertex attribute counterpart.
Sourcepub fn set_offset(&self, offset: usize)
pub fn set_offset(&self, offset: usize)
Calls the corresponding Model I/O method on the wrapped Model I/O vertex attribute counterpart.
Sourcepub fn set_buffer_index(&self, buffer_index: usize)
pub fn set_buffer_index(&self, buffer_index: usize)
Calls the corresponding Model I/O method on the wrapped Model I/O vertex attribute counterpart.
Sourcepub fn set_time(&self, time: f64)
pub fn set_time(&self, time: f64)
Calls the corresponding Model I/O method on the wrapped Model I/O vertex attribute counterpart.
Sourcepub fn set_initialization_value(&self, value: [f32; 4])
pub fn set_initialization_value(&self, value: [f32; 4])
Calls the corresponding Model I/O method on the wrapped Model I/O vertex attribute counterpart.
Trait Implementations§
Source§impl Clone for VertexAttribute
impl Clone for VertexAttribute
Source§fn clone(&self) -> VertexAttribute
fn clone(&self) -> VertexAttribute
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more