Struct vulkano::pipeline::vertex::OneVertexOneInstanceDefinition
[−]
[src]
pub struct OneVertexOneInstanceDefinition<T, U>(pub PhantomData<(T, U)>);
Unstable.
Methods
impl<T, U> OneVertexOneInstanceDefinition<T, U>
[src]
fn new() -> OneVertexOneInstanceDefinition<T, U>
Trait Implementations
impl<T, U, I> VertexDefinition<I> for OneVertexOneInstanceDefinition<T, U> where
T: Vertex,
U: Vertex,
I: ShaderInterfaceDef,
[src]
T: Vertex,
U: Vertex,
I: ShaderInterfaceDef,
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>
&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
impl<T, U> VertexSource<Vec<Arc<BufferAccess + Send + Sync>>> for OneVertexOneInstanceDefinition<T, U> where
T: Vertex,
U: Vertex,
[src]
T: Vertex,
U: Vertex,
fn decode(
&self,
source: Vec<Arc<BufferAccess + Send + Sync>>
) -> (Vec<Box<BufferAccess + Send + Sync>>, usize, usize)
&self,
source: Vec<Arc<BufferAccess + Send + Sync>>
) -> (Vec<Box<BufferAccess + Send + Sync>>, usize, usize)
Checks and returns the list of buffers with offsets, number of vertices and number of instances.
impl<'a, T, U, Bt, Bu> VertexSource<(Bt, Bu)> for OneVertexOneInstanceDefinition<T, U> where
T: Vertex,
Bt: TypedBufferAccess<Content = [T]> + Send + Sync + 'static,
U: Vertex,
Bu: TypedBufferAccess<Content = [U]> + Send + Sync + 'static,
[src]
T: Vertex,
Bt: TypedBufferAccess<Content = [T]> + Send + Sync + 'static,
U: Vertex,
Bu: TypedBufferAccess<Content = [U]> + Send + Sync + 'static,