Struct vulkano::pipeline::vertex::VertexInput [−][src]
pub struct VertexInput { /* fields omitted */ }
Expand description
A description of the vertex input of a graphics pipeline.
Implementations
pub fn new(
bindings: impl IntoIterator<Item = (u32, VertexInputBinding)>,
attributes: impl IntoIterator<Item = (u32, VertexInputAttribute)>
) -> VertexInput
pub fn new(
bindings: impl IntoIterator<Item = (u32, VertexInputBinding)>,
attributes: impl IntoIterator<Item = (u32, VertexInputAttribute)>
) -> VertexInput
Constructs a new VertexInput
from the given bindings and attributes.
Panics
Panics if any element of attributes
refers to a binding number that is not provided in
bindings
.
Constructs a new empty VertexInput
.
Returns an iterator of the binding numbers and their descriptions.
Returns an iterator of the attribute numbers and their descriptions.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for VertexInput
impl Send for VertexInput
impl Sync for VertexInput
impl Unpin for VertexInput
impl UnwindSafe for VertexInput
Blanket Implementations
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.