Struct vulkano::pipeline::vertex::OneVertexOneInstanceDefinition [−][src]
pub struct OneVertexOneInstanceDefinition<T, U>(pub PhantomData<(T, U)>);
Unstable.
Implementations
impl<T, U> OneVertexOneInstanceDefinition<T, U>
[src]
impl<T, U> OneVertexOneInstanceDefinition<T, U>
[src]pub fn new() -> OneVertexOneInstanceDefinition<T, U>
[src]
Trait Implementations
impl<T, U, I> VertexDefinition<I> for OneVertexOneInstanceDefinition<T, U> where
T: Vertex,
U: Vertex,
I: ShaderInterfaceDef,
[src]
impl<T, U, I> VertexDefinition<I> for OneVertexOneInstanceDefinition<T, U> where
T: Vertex,
U: Vertex,
I: ShaderInterfaceDef,
[src]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: &I
) -> Result<(Self::BuffersIter, Self::AttribsIter), IncompatibleVertexDefinitionError>
[src]
fn definition(
&self,
interface: &I
) -> Result<(Self::BuffersIter, Self::AttribsIter), IncompatibleVertexDefinitionError>
[src]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 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 OneVertexOneInstanceDefinition<T, U> where
T: Vertex,
Bt: TypedBufferAccess<Content = [T]> + Send + Sync + 'static,
U: Vertex,
Bu: TypedBufferAccess<Content = [U]> + Send + Sync + 'static,
[src]impl<T, U> VertexSource<Vec<Arc<dyn BufferAccess + 'static + Sync + Send>, Global>> for OneVertexOneInstanceDefinition<T, U> where
T: Vertex,
U: Vertex,
[src]
impl<T, U> VertexSource<Vec<Arc<dyn BufferAccess + 'static + Sync + Send>, Global>> for OneVertexOneInstanceDefinition<T, U> where
T: Vertex,
U: Vertex,
[src]Auto Trait Implementations
impl<T, U> RefUnwindSafe for OneVertexOneInstanceDefinition<T, U> where
T: RefUnwindSafe,
U: RefUnwindSafe,
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> Send for OneVertexOneInstanceDefinition<T, U> where
T: Send,
U: Send,
T: Send,
U: Send,
impl<T, U> Sync for OneVertexOneInstanceDefinition<T, U> where
T: Sync,
U: Sync,
T: Sync,
U: Sync,
impl<T, U> Unpin for OneVertexOneInstanceDefinition<T, U> where
T: Unpin,
U: Unpin,
T: Unpin,
U: Unpin,
impl<T, U> UnwindSafe for OneVertexOneInstanceDefinition<T, U> where
T: UnwindSafe,
U: UnwindSafe,
T: UnwindSafe,
U: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Content for T
[src]
impl<T> Content for T
[src]pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]
pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]Builds a pointer to this type from a raw pointer.
pub fn is_size_suitable(usize) -> bool
[src]
pub fn is_size_suitable(usize) -> bool
[src]Returns true if the size is suitable to store a type like this.
pub fn indiv_size() -> usize
[src]
pub fn indiv_size() -> usize
[src]Returns the size of an individual element.