Struct vulkano::pipeline::vertex::SingleBufferDefinition [] [src]

pub struct SingleBufferDefinition<T>(pub PhantomData<T>);

Implementation of VertexDefinition for a single vertex buffer.

Methods

impl<T> SingleBufferDefinition<T>
[src]

Trait Implementations

impl<T, I> VertexDefinition<I> for SingleBufferDefinition<T> where
    T: Vertex,
    I: ShaderInterfaceDef
[src]

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.

[src]

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

impl<V> VertexSource<Vec<Arc<BufferAccess + Send + Sync>>> for SingleBufferDefinition<V> where
    V: Vertex
[src]

[src]

Checks and returns the list of buffers with offsets, number of vertices and number of instances.

impl<'a, B, V> VertexSource<B> for SingleBufferDefinition<V> where
    B: TypedBufferAccess<Content = [V]> + Send + Sync + 'static,
    V: Vertex
[src]

[src]

Checks and returns the list of buffers with offsets, number of vertices and number of instances.

Auto Trait Implementations

impl<T> Send for SingleBufferDefinition<T> where
    T: Send

impl<T> Sync for SingleBufferDefinition<T> where
    T: Sync