Trait vulkano::pipeline::vertex::Source
[−]
[src]
pub unsafe trait Source<L>: 'static + Send + Sync { type Iter: ExactSizeIterator<Item=Arc<Buffer>>; fn decode(&self, L) -> (Self::Iter, usize, usize); }
Extension trait of Definition
. The L
parameter is an acceptable vertex source for this
vertex definition.
Associated Types
type Iter: ExactSizeIterator<Item=Arc<Buffer>>
Iterator used by decode
.
Required Methods
fn decode(&self, L) -> (Self::Iter, usize, usize)
Checks and returns the list of buffers, number of vertices and number of instances.
Implementors
impl<'a, B, V> Source<&'a Arc<B>> for SingleBufferDefinition<V> where B: TypedBuffer<Content=[V]> + 'static, V: Vertex + 'static
impl<'a, T, U, Bt, Bu> Source<(&'a Arc<Bt>, &'a Arc<Bu>)> for TwoBuffersDefinition<T, U> where T: Vertex + 'static, Bt: TypedBuffer<Content=[T]> + 'static, T: 'static, U: Vertex + 'static, Bu: TypedBuffer<Content=[U]> + 'static, T: 'static
impl<'a, T, U, Bt, Bu> Source<(&'a Arc<Bt>, &'a Arc<Bu>)> for OneVertexOneInstanceDefinition<T, U> where T: Vertex + 'static, Bt: TypedBuffer<Content=[T]> + 'static, T: 'static, U: Vertex + 'static, Bu: TypedBuffer<Content=[U]> + 'static, U: 'static