Struct glin::attributes::VertexBufferBinding[][src]

pub struct VertexBufferBinding<T, B: BufferRange<T>> {
    pub index: usize,
    pub buffer: B,
    pub divisor: usize,
    pub marker: PhantomData<T>,
}

Representation of a binding of a buffer to a vertex buffer binding point

Also allows to specify a divisor for the binding

Used internally by a VAO to bind attributes from a buffer

https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glBindVertexBuffer.xhtml https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glVertexBindingDivisor.xhtml

Fields

index: usizebuffer: Bdivisor: usizemarker: PhantomData<T>

Implementations

impl<T, B: BufferRange<T>> VertexBufferBinding<T, B>[src]

pub fn divisor(self, divisor: usize) -> VertexBufferBinding<T, B>[src]

Trait Implementations

impl<T: Clone, B: Clone + BufferRange<T>> Clone for VertexBufferBinding<T, B>[src]

impl<T: Debug, B: Debug + BufferRange<T>> Debug for VertexBufferBinding<T, B>[src]

impl<T: 'static, B: BufferRange<T> + 'static> DynVertexBufferBinding for VertexBufferBinding<T, B>[src]

Auto Trait Implementations

impl<T, B> RefUnwindSafe for VertexBufferBinding<T, B> where
    B: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, B> Send for VertexBufferBinding<T, B> where
    B: Send,
    T: Send

impl<T, B> Sync for VertexBufferBinding<T, B> where
    B: Sync,
    T: Sync

impl<T, B> Unpin for VertexBufferBinding<T, B> where
    B: Unpin,
    T: Unpin

impl<T, B> UnwindSafe for VertexBufferBinding<T, B> where
    B: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

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

impl<T> Any for T where
    T: Any
[src]

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

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

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

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

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

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

type Owned = T

The resulting type after obtaining ownership.

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.