[][src]Struct sfml_rust::canvas::shader::dynamic_vertex::RuntimeVertexDef

pub struct RuntimeVertexDef { /* fields omitted */ }

Runtime Vertex def is just a generic holder of "dynamic vertex definitions"

Methods

impl RuntimeVertexDef[src]

pub fn from_primitive(primitive: u32) -> RuntimeVertexDef[src]

primitive is an input value or struct which can then describe these damn values that are required for inputting them into vulkan

pub fn vertex_buffer_ids(&self) -> &[(usize, usize)][src]

Returns the indices of the buffers to bind as vertex buffers and the byte offset, when drawing the primitive.

Trait Implementations

impl Default for RuntimeVertexDef[src]

impl Clone for RuntimeVertexDef[src]

impl Debug for RuntimeVertexDef[src]

impl VertexSource<Vec<Arc<dyn BufferAccess + 'static + Sync + Send>>> for RuntimeVertexDef[src]

I don't know what the fuck is going on here... It just repackages the buffs Needs the num vertices

impl<I> VertexDefinition<I> for RuntimeVertexDef where
    I: ShaderInterfaceDef, 
[src]

Implementing VertexDefinition

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.

At this point I need to have enough information from the implementing type to describe its elements

Needs: buffers attributes

Auto Trait Implementations

impl Send for RuntimeVertexDef

impl Unpin for RuntimeVertexDef

impl Sync for RuntimeVertexDef

impl UnwindSafe for RuntimeVertexDef

impl RefUnwindSafe for RuntimeVertexDef

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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.

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

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

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

impl<T> SetParameter for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> Content for T

impl<L, T> VertexSource<L> for T where
    T: SafeDeref,
    <T as Deref>::Target: VertexSource<L>, 

impl<I, T> VertexDefinition<I> for T where
    T: SafeDeref,
    <T as Deref>::Target: VertexDefinition<I>, 

type BuffersIter = <<T as Deref>::Target as VertexDefinition<I>>::BuffersIter

Iterator that returns the offset, the stride (in bytes) and input rate of each buffer.

type AttribsIter = <<T as Deref>::Target as VertexDefinition<I>>::AttribsIter

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

impl<T> Erased for T

impl<T> SafeBorrow<T> for T