Struct vulkano::pipeline::vertex::BufferlessDefinition
[−]
[src]
pub struct BufferlessDefinition;
Implementation of VertexDefinition
for drawing with no buffers at all.
This is only useful if your shaders come up with vertex data on their own, e.g. by inspecting
gl_VertexIndex
Trait Implementations
impl VertexSource<BufferlessVertices> for BufferlessDefinition
[src]
fn decode(
&self,
n: BufferlessVertices
) -> (Vec<Box<BufferAccess + Sync + Send + 'static>>, usize, usize)
[src]
&self,
n: BufferlessVertices
) -> (Vec<Box<BufferAccess + Sync + Send + 'static>>, usize, usize)
Checks and returns the list of buffers with offsets, number of vertices and number of instances.
impl<T> VertexSource<Vec<T>> for BufferlessDefinition
[src]
fn decode<'l>(
&self,
_: Vec<T>
) -> (Vec<Box<BufferAccess + Sync + Send + 'static>>, usize, usize)
[src]
&self,
_: Vec<T>
) -> (Vec<Box<BufferAccess + Sync + Send + 'static>>, usize, usize)
Checks and returns the list of buffers with offsets, number of vertices and number of instances.
impl<I> VertexDefinition<I> for BufferlessDefinition
[src]
type BuffersIter = Empty<(u32, usize, InputRate)>
Iterator that returns the offset, the stride (in bytes) and input rate of each buffer.
type AttribsIter = Empty<(u32, u32, AttributeInfo)>
Iterator that returns the attribute location, buffer id, and infos.
fn definition(
&self,
_: &I
) -> Result<(Self::BuffersIter, Self::AttribsIter), IncompatibleVertexDefinitionError>
[src]
&self,
_: &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