Struct vulkano::pipeline::vertex::TwoBuffersDefinition
[−]
[src]
pub struct TwoBuffersDefinition<T, U>(pub PhantomData<(T, U)>);
Unstable.
Methods
impl<T, U> TwoBuffersDefinition<T, U>
[src]
fn new() -> TwoBuffersDefinition<T, U>
Trait Implementations
impl<T, U, I> Definition<I> for TwoBuffersDefinition<T, U> where T: Vertex, U: Vertex, I: ShaderInterfaceDef
[src]
type BuffersIter = VecIntoIter<(u32, usize, InputRate)>
Iterator that returns the offset, the stride (in bytes) and input rate of each buffer.
type AttribsIter = VecIntoIter<(u32, u32, AttributeInfo)>
Iterator that returns the attribute location, buffer id, and infos.
fn definition(&self, interface: &I) -> Result<(Self::BuffersIter, Self::AttribsIter), IncompatibleVertexDefinitionError>
Builds the vertex definition to use to link this definition to a vertex shader's input interface. Read more