Struct sierra::VertexInputAttribute
source · pub struct VertexInputAttribute {
pub location: u32,
pub format: Format,
pub binding: u32,
pub offset: u32,
}
Expand description
Vertex sub-range to attribute mapping.
Fields§
§location: u32
Attribute index.
Each index must appear at most once in VertexInput::attributes
array.
format: Format
Attribute format. Controls how attribute data is interpreted. Must match attribute type in vertex shader.
binding: u32
Index of vertex buffer from which attribute data is read from.
offset: u32
Offset of this attribute in the vertex buffer sub-range.
Trait Implementations§
source§impl Clone for VertexInputAttribute
impl Clone for VertexInputAttribute
source§fn clone(&self) -> VertexInputAttribute
fn clone(&self) -> VertexInputAttribute
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 VertexInputAttribute
impl Debug for VertexInputAttribute
source§impl Hash for VertexInputAttribute
impl Hash for VertexInputAttribute
source§impl PartialEq<VertexInputAttribute> for VertexInputAttribute
impl PartialEq<VertexInputAttribute> for VertexInputAttribute
source§fn eq(&self, other: &VertexInputAttribute) -> bool
fn eq(&self, other: &VertexInputAttribute) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.