[][src]Trait vulkano::pipeline::vertex::VertexSource

pub unsafe trait VertexSource<L> {
    fn decode(
        &self,
        _: L
    ) -> (Vec<Box<dyn 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<dyn BufferAccess + Send + Sync>>, usize, usize)

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

Loading content...

Implementors

impl VertexSource<BufferlessVertices> for BufferlessDefinition[src]

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

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

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]

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, 
[src]

impl<L, T> VertexSource<L> for T where
    T: SafeDeref,
    T::Target: VertexSource<L>, 
[src]

impl<Mv, L, Rp, S> VertexSource<S> for GraphicsPipeline<Mv, L, Rp> where
    Mv: VertexSource<S>, 
[src]

impl<T> VertexSource<Vec<T>> for BufferlessDefinition[src]

impl<T, U> VertexSource<Vec<Arc<dyn BufferAccess + 'static + Sync + Send>>> for OneVertexOneInstanceDefinition<T, U> where
    T: Vertex,
    U: Vertex
[src]

impl<T, U> VertexSource<Vec<Arc<dyn BufferAccess + 'static + Sync + Send>>> for TwoBuffersDefinition<T, U> where
    T: Vertex,
    U: Vertex
[src]

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

impl<V> VertexSource<Vec<Arc<dyn BufferAccess + 'static + Sync + Send>>> for SingleInstanceBufferDefinition<V> where
    V: Vertex
[src]

Loading content...