Struct vulkano::pipeline::vertex::OneVertexOneInstanceDefinition[][src]

pub struct OneVertexOneInstanceDefinition<T, U>(pub PhantomData<(T, U)>);

Unstable.

Implementations

impl<T, U> OneVertexOneInstanceDefinition<T, U>[src]

Trait Implementations

impl<T, U, I> VertexDefinition<I> for OneVertexOneInstanceDefinition<T, U> where
    T: Vertex,
    U: Vertex,
    I: ShaderInterfaceDef
[src]

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)>

Iterator that returns the attribute location, buffer id, and infos.

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]

fn decode(
    &self,
    source: (Bt, Bu)
) -> (Vec<Box<dyn BufferAccess + Send + Sync>>, usize, usize)
[src]

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

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

fn decode(
    &self,
    source: Vec<Arc<dyn BufferAccess + Send + Sync>>
) -> (Vec<Box<dyn BufferAccess + Send + Sync>>, usize, usize)
[src]

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

Auto Trait Implementations

impl<T, U> RefUnwindSafe for OneVertexOneInstanceDefinition<T, U> where
    T: RefUnwindSafe,
    U: RefUnwindSafe

impl<T, U> Send for OneVertexOneInstanceDefinition<T, U> where
    T: Send,
    U: Send

impl<T, U> Sync for OneVertexOneInstanceDefinition<T, U> where
    T: Sync,
    U: Sync

impl<T, U> Unpin for OneVertexOneInstanceDefinition<T, U> where
    T: Unpin,
    U: Unpin

impl<T, U> UnwindSafe for OneVertexOneInstanceDefinition<T, U> where
    T: UnwindSafe,
    U: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> Content for 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]

Returns true if the size is suitable to store a type like this.

pub fn indiv_size() -> usize[src]

Returns the size of an individual element.

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.