Struct sierra::VertexInputAttribute [−][src]
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for VertexInputAttribute
impl Send for VertexInputAttribute
impl Sync for VertexInputAttribute
impl Unpin for VertexInputAttribute
impl UnwindSafe for VertexInputAttribute
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash,
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more