Trait vulkano::pipeline::vertex::VertexSource [−][src]
pub unsafe trait VertexSource<L> { fn decode(
&self,
_: L
) -> (Vec<Box<BufferAccess + Send + Sync>>, usize, usize); }
Extension trait of VertexDefinition
. The L
parameter is an acceptable vertex source for this
vertex definition.
Required Methods
fn decode(&self, _: L) -> (Vec<Box<BufferAccess + Send + Sync>>, usize, usize)
Checks and returns the list of buffers with offsets, number of vertices and number of instances.
Implementors
impl<Mv, L, Rp, S> VertexSource<S> for GraphicsPipeline<Mv, L, Rp> where
Mv: VertexSource<S>,impl VertexSource<BufferlessVertices> for BufferlessDefinition
impl<T> VertexSource<Vec<T>> for BufferlessDefinition
impl<L, T> VertexSource<L> for T where
T: SafeDeref,
T::Target: VertexSource<L>,impl<V> VertexSource<Vec<Arc<BufferAccess + Send + Sync>>> for SingleInstanceBufferDefinition<V> where
V: Vertex,impl<'a, B, V> VertexSource<B> for SingleInstanceBufferDefinition<V> where
B: TypedBufferAccess<Content = [V]> + Send + Sync + 'static,
V: Vertex,impl<T, U> VertexSource<Vec<Arc<BufferAccess + Send + Sync>>> for OneVertexOneInstanceDefinition<T, U> where
T: Vertex,
U: Vertex,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,impl<V> VertexSource<Vec<Arc<BufferAccess + Send + Sync>>> for SingleBufferDefinition<V> where
V: Vertex,impl<'a, B, V> VertexSource<B> for SingleBufferDefinition<V> where
B: TypedBufferAccess<Content = [V]> + Send + Sync + 'static,
V: Vertex,impl<T, U> VertexSource<Vec<Arc<BufferAccess + Send + Sync>>> for TwoBuffersDefinition<T, U> where
T: Vertex,
U: Vertex,impl<'a, T, U, Bt, Bu> VertexSource<(Bt, Bu)> for TwoBuffersDefinition<T, U> where
T: Vertex,
Bt: TypedBufferAccess<Content = [T]> + Send + Sync + 'static,
U: Vertex,
Bu: TypedBufferAccess<Content = [U]> + Send + Sync + 'static,