[−][src]Trait vulkano::pipeline::vertex::VertexSource
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)
&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.
Implementors
impl VertexSource<BufferlessVertices> for BufferlessDefinition
[src]
fn decode(
&self,
n: BufferlessVertices
) -> (Vec<Box<dyn BufferAccess + Sync + Send + 'static>>, usize, usize)
[src]
&self,
n: BufferlessVertices
) -> (Vec<Box<dyn BufferAccess + Sync + Send + 'static>>, usize, usize)
impl<'a, B, V> VertexSource<B> for SingleBufferDefinition<V> where
B: TypedBufferAccess<Content = [V]> + Send + Sync + 'static,
V: Vertex,
[src]
B: TypedBufferAccess<Content = [V]> + Send + Sync + 'static,
V: Vertex,
impl<'a, B, V> VertexSource<B> for SingleInstanceBufferDefinition<V> where
B: TypedBufferAccess<Content = [V]> + Send + Sync + 'static,
V: Vertex,
[src]
B: TypedBufferAccess<Content = [V]> + Send + Sync + 'static,
V: 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,
[src]
T: Vertex,
Bt: TypedBufferAccess<Content = [T]> + Send + Sync + 'static,
U: Vertex,
Bu: TypedBufferAccess<Content = [U]> + Send + Sync + 'static,
fn decode(
&self,
source: (Bt, Bu)
) -> (Vec<Box<dyn BufferAccess + Send + Sync>>, usize, usize)
[src]
&self,
source: (Bt, Bu)
) -> (Vec<Box<dyn BufferAccess + Send + Sync>>, usize, usize)
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]
T: Vertex,
Bt: TypedBufferAccess<Content = [T]> + Send + Sync + 'static,
U: Vertex,
Bu: TypedBufferAccess<Content = [U]> + Send + Sync + 'static,
fn decode(
&self,
source: (Bt, Bu)
) -> (Vec<Box<dyn BufferAccess + Send + Sync>>, usize, usize)
[src]
&self,
source: (Bt, Bu)
) -> (Vec<Box<dyn BufferAccess + Send + Sync>>, usize, usize)
impl<L, T> VertexSource<L> for T where
T: SafeDeref,
T::Target: VertexSource<L>,
[src]
T: SafeDeref,
T::Target: VertexSource<L>,
impl<Mv, L, Rp, S> VertexSource<S> for GraphicsPipeline<Mv, L, Rp> where
Mv: VertexSource<S>,
[src]
Mv: VertexSource<S>,
impl<T> VertexSource<Vec<T>> for BufferlessDefinition
[src]
fn decode<'l>(
&self,
_: Vec<T>
) -> (Vec<Box<dyn BufferAccess + Sync + Send + 'static>>, usize, usize)
[src]
&self,
_: Vec<T>
) -> (Vec<Box<dyn BufferAccess + Sync + Send + 'static>>, usize, usize)
impl<T, U> VertexSource<Vec<Arc<dyn BufferAccess + 'static + Sync + Send>>> for OneVertexOneInstanceDefinition<T, U> where
T: Vertex,
U: Vertex,
[src]
T: Vertex,
U: Vertex,
fn decode(
&self,
source: Vec<Arc<dyn BufferAccess + Send + Sync>>
) -> (Vec<Box<dyn BufferAccess + Send + Sync>>, usize, usize)
[src]
&self,
source: Vec<Arc<dyn BufferAccess + Send + Sync>>
) -> (Vec<Box<dyn BufferAccess + Send + Sync>>, usize, usize)
impl<T, U> VertexSource<Vec<Arc<dyn BufferAccess + 'static + Sync + Send>>> for TwoBuffersDefinition<T, U> where
T: Vertex,
U: Vertex,
[src]
T: Vertex,
U: Vertex,
fn decode(
&self,
source: Vec<Arc<dyn BufferAccess + Send + Sync>>
) -> (Vec<Box<dyn BufferAccess + Send + Sync>>, usize, usize)
[src]
&self,
source: Vec<Arc<dyn BufferAccess + Send + Sync>>
) -> (Vec<Box<dyn BufferAccess + Send + Sync>>, usize, usize)
impl<V> VertexSource<Vec<Arc<dyn BufferAccess + 'static + Sync + Send>>> for SingleBufferDefinition<V> where
V: Vertex,
[src]
V: Vertex,
fn decode(
&self,
source: Vec<Arc<dyn BufferAccess + Send + Sync>>
) -> (Vec<Box<dyn BufferAccess + Send + Sync>>, usize, usize)
[src]
&self,
source: Vec<Arc<dyn BufferAccess + Send + Sync>>
) -> (Vec<Box<dyn BufferAccess + Send + Sync>>, usize, usize)
impl<V> VertexSource<Vec<Arc<dyn BufferAccess + 'static + Sync + Send>>> for SingleInstanceBufferDefinition<V> where
V: Vertex,
[src]
V: Vertex,