Trait vulkano::pipeline::vertex::VertexDefinition [] [src]

pub unsafe trait VertexDefinition<I>: VertexSource<Vec<Arc<BufferAccess + Send + Sync>>> {
    type BuffersIter: ExactSizeIterator<Item = (u32, usize, InputRate)>;
    type AttribsIter: ExactSizeIterator<Item = (u32, u32, AttributeInfo)>;
    fn definition(
        &self,
        interface: &I
    ) -> Result<(Self::BuffersIter, Self::AttribsIter), IncompatibleVertexDefinitionError>; }

Trait for types that describe the definition of the vertex input used by a graphics pipeline.

Associated Types

Iterator that returns the offset, the stride (in bytes) and input rate of each buffer.

Iterator that returns the attribute location, buffer id, and infos.

Required Methods

Builds the vertex definition to use to link this definition to a vertex shader's input interface.

Implementors