Struct vulkano::pipeline::vertex::TwoBuffersDefinition [−][src]
pub struct TwoBuffersDefinition<T, U>(pub PhantomData<(T, U)>);
Expand description
Unstable.
Implementations
Trait Implementations
type BuffersIter = VecIntoIter<(u32, usize, InputRate)>
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)>
type AttribsIter = VecIntoIter<(u32, u32, AttributeInfo)>
Iterator that returns the attribute location, buffer id, and infos.
fn definition(
&self,
interface: &ShaderInterface
) -> Result<(Self::BuffersIter, Self::AttribsIter), IncompatibleVertexDefinitionError>
fn definition(
&self,
interface: &ShaderInterface
) -> 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<'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,
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,
impl<T, U> VertexSource<Vec<Arc<dyn BufferAccess + 'static + Sync + Send>, Global>> for TwoBuffersDefinition<T, U> where
T: Vertex,
U: Vertex,
impl<T, U> VertexSource<Vec<Arc<dyn BufferAccess + 'static + Sync + Send>, Global>> for TwoBuffersDefinition<T, U> where
T: Vertex,
U: Vertex,
Auto Trait Implementations
impl<T, U> RefUnwindSafe for TwoBuffersDefinition<T, U> where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> Send for TwoBuffersDefinition<T, U> where
T: Send,
U: Send,
impl<T, U> Sync for TwoBuffersDefinition<T, U> where
T: Sync,
U: Sync,
impl<T, U> Unpin for TwoBuffersDefinition<T, U> where
T: Unpin,
U: Unpin,
impl<T, U> UnwindSafe for TwoBuffersDefinition<T, U> where
T: UnwindSafe,
U: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.