Struct vulkano::pipeline::graphics::vertex_input::VertexMemberInfo
source · pub struct VertexMemberInfo {
pub offset: usize,
pub format: Format,
pub num_elements: u32,
}
Expand description
Information about a member of a vertex struct.
Fields§
§offset: usize
Offset of the member in bytes from the start of the struct.
format: Format
Attribute format of the member. Implicitly provides number of components.
num_elements: u32
Number of consecutive array elements or matrix columns using format. The corresponding number of locations might defer depending on the size of the format.
Implementations§
source§impl VertexMemberInfo
impl VertexMemberInfo
pub fn num_components(&self) -> u32
Trait Implementations§
source§impl Clone for VertexMemberInfo
impl Clone for VertexMemberInfo
source§fn clone(&self) -> VertexMemberInfo
fn clone(&self) -> VertexMemberInfo
Returns a copy 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 Debug for VertexMemberInfo
impl Debug for VertexMemberInfo
source§impl PartialEq for VertexMemberInfo
impl PartialEq for VertexMemberInfo
source§fn eq(&self, other: &VertexMemberInfo) -> bool
fn eq(&self, other: &VertexMemberInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for VertexMemberInfo
impl StructuralEq for VertexMemberInfo
impl StructuralPartialEq for VertexMemberInfo
Auto Trait Implementations§
impl RefUnwindSafe for VertexMemberInfo
impl Send for VertexMemberInfo
impl Sync for VertexMemberInfo
impl Unpin for VertexMemberInfo
impl UnwindSafe for VertexMemberInfo
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