pub struct VertexDescriptor { /* private fields */ }Expand description
Wraps the corresponding Model I/O vertex descriptor counterpart.
Implementations§
Source§impl VertexDescriptor
impl VertexDescriptor
Sourcepub fn copy(&self) -> Result<Self>
pub fn copy(&self) -> Result<Self>
Calls the corresponding Model I/O method on the wrapped Model I/O vertex descriptor counterpart.
Sourcepub fn info(&self) -> Result<VertexDescriptorInfo>
pub fn info(&self) -> Result<VertexDescriptorInfo>
Calls the corresponding Model I/O method on the wrapped Model I/O vertex descriptor counterpart.
Sourcepub fn attribute_count(&self) -> usize
pub fn attribute_count(&self) -> usize
Calls the corresponding Model I/O method on the wrapped Model I/O vertex descriptor counterpart.
Sourcepub fn attribute_at(&self, index: usize) -> Option<VertexAttribute>
pub fn attribute_at(&self, index: usize) -> Option<VertexAttribute>
Calls the corresponding Model I/O method on the wrapped Model I/O vertex descriptor counterpart.
Sourcepub fn attribute_named(&self, name: &str) -> Result<Option<VertexAttribute>>
pub fn attribute_named(&self, name: &str) -> Result<Option<VertexAttribute>>
Calls the corresponding Model I/O method on the wrapped Model I/O vertex descriptor counterpart.
Sourcepub fn attributes(&self) -> Vec<VertexAttribute>
pub fn attributes(&self) -> Vec<VertexAttribute>
Calls the corresponding Model I/O method on the wrapped Model I/O vertex descriptor counterpart.
Sourcepub fn layout_count(&self) -> usize
pub fn layout_count(&self) -> usize
Calls the corresponding Model I/O method on the wrapped Model I/O vertex descriptor counterpart.
Sourcepub fn layout_at(&self, index: usize) -> Option<VertexBufferLayout>
pub fn layout_at(&self, index: usize) -> Option<VertexBufferLayout>
Calls the corresponding Model I/O method on the wrapped Model I/O vertex descriptor counterpart.
Sourcepub fn layouts(&self) -> Vec<VertexBufferLayout>
pub fn layouts(&self) -> Vec<VertexBufferLayout>
Calls the corresponding Model I/O method on the wrapped Model I/O vertex descriptor counterpart.
Sourcepub fn reset(&self)
pub fn reset(&self)
Calls the corresponding Model I/O method on the wrapped Model I/O vertex descriptor counterpart.
Sourcepub fn set_packed_offsets(&self)
pub fn set_packed_offsets(&self)
Calls the corresponding Model I/O method on the wrapped Model I/O vertex descriptor counterpart.
Sourcepub fn set_packed_strides(&self)
pub fn set_packed_strides(&self)
Calls the corresponding Model I/O method on the wrapped Model I/O vertex descriptor counterpart.
Trait Implementations§
Source§impl Clone for VertexDescriptor
impl Clone for VertexDescriptor
Source§fn clone(&self) -> VertexDescriptor
fn clone(&self) -> VertexDescriptor
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more