Struct vulkano::pipeline::vertex::OneVertexOneInstanceDefinition
source · pub struct OneVertexOneInstanceDefinition<T, U>(pub PhantomData<(T, U)>);
Expand description
Unstable.
Tuple Fields
0: PhantomData<(T, U)>
Implementations
sourceimpl<T, U> OneVertexOneInstanceDefinition<T, U>
impl<T, U> OneVertexOneInstanceDefinition<T, U>
pub fn new() -> OneVertexOneInstanceDefinition<T, U>
Trait Implementations
sourceimpl<T, U, I> VertexDefinition<I> for OneVertexOneInstanceDefinition<T, U>where
T: Vertex,
U: Vertex,
I: ShaderInterfaceDef,
impl<T, U, I> VertexDefinition<I> for OneVertexOneInstanceDefinition<T, U>where
T: Vertex,
U: Vertex,
I: ShaderInterfaceDef,
type BuffersIter = IntoIter<(u32, usize, InputRate), Global>
type BuffersIter = IntoIter<(u32, usize, InputRate), Global>
Iterator that returns the offset, the stride (in bytes) and input rate of each buffer.
type AttribsIter = IntoIter<(u32, u32, AttributeInfo), Global>
type AttribsIter = IntoIter<(u32, u32, AttributeInfo), Global>
Iterator that returns the attribute location, buffer id, and infos.
sourcefn definition(
&self,
interface: &I
) -> Result<(Self::BuffersIter, Self::AttribsIter), IncompatibleVertexDefinitionError>
fn definition(
&self,
interface: &I
) -> 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
sourceimpl<'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,
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,
sourceimpl<T, U> VertexSource<Vec<Arc<dyn BufferAccess + Sync + Send + 'static>, Global>> for OneVertexOneInstanceDefinition<T, U>where
T: Vertex,
U: Vertex,
impl<T, U> VertexSource<Vec<Arc<dyn BufferAccess + Sync + Send + 'static>, Global>> for OneVertexOneInstanceDefinition<T, U>where
T: Vertex,
U: Vertex,
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.