pub struct VertexAttributeDesc {
pub location: u32,
pub binding: u32,
pub format: VertexFormat,
pub offset: u32,
}
Expand description
Vertex attribute format and binding.
Fields§
§location: u32
Shader binding location of the attribute.
binding: u32
Vertex buffer binding number which is the data source.
format: VertexFormat
Size and type of the vertex data.
offset: u32
Byte offset of this attribute relative to the start of an element in the vertex binding.
Trait Implementations§
Source§impl Clone for VertexAttributeDesc
impl Clone for VertexAttributeDesc
Source§fn clone(&self) -> VertexAttributeDesc
fn clone(&self) -> VertexAttributeDesc
Returns a duplicate 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 VertexAttributeDesc
impl Debug for VertexAttributeDesc
Source§impl PartialEq for VertexAttributeDesc
impl PartialEq for VertexAttributeDesc
impl Eq for VertexAttributeDesc
impl StructuralPartialEq for VertexAttributeDesc
Auto Trait Implementations§
impl Freeze for VertexAttributeDesc
impl RefUnwindSafe for VertexAttributeDesc
impl Send for VertexAttributeDesc
impl Sync for VertexAttributeDesc
impl Unpin for VertexAttributeDesc
impl UnwindSafe for VertexAttributeDesc
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