Struct vulkano::pipeline::vertex::SingleInstanceBufferDefinition [−][src]
pub struct SingleInstanceBufferDefinition<T>(pub PhantomData<T>);
Same as SingleBufferDefinition
but advances by instance.
Implementations
impl<T> SingleInstanceBufferDefinition<T>
[src]
impl<T> SingleInstanceBufferDefinition<T>
[src]pub fn new() -> SingleInstanceBufferDefinition<T>
[src]
Trait Implementations
impl<T, I> VertexDefinition<I> for SingleInstanceBufferDefinition<T> where
T: Vertex,
I: ShaderInterfaceDef,
[src]
impl<T, I> VertexDefinition<I> for SingleInstanceBufferDefinition<T> where
T: Vertex,
I: ShaderInterfaceDef,
[src]type BuffersIter = OptionIntoIter<(u32, usize, InputRate)>
type BuffersIter = OptionIntoIter<(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, B, V> VertexSource<B> for SingleInstanceBufferDefinition<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<V> VertexSource<Vec<Arc<dyn BufferAccess + 'static + Sync + Send>, Global>> for SingleInstanceBufferDefinition<V> where
V: Vertex,
[src]
impl<V> VertexSource<Vec<Arc<dyn BufferAccess + 'static + Sync + Send>, Global>> for SingleInstanceBufferDefinition<V> where
V: Vertex,
[src]Auto Trait Implementations
impl<T> RefUnwindSafe for SingleInstanceBufferDefinition<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for SingleInstanceBufferDefinition<T> where
T: Send,
T: Send,
impl<T> Sync for SingleInstanceBufferDefinition<T> where
T: Sync,
T: Sync,
impl<T> Unpin for SingleInstanceBufferDefinition<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for SingleInstanceBufferDefinition<T> where
T: UnwindSafe,
T: 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.