Struct rin::gl::attributes::VertexBufferBinding[][src]

pub struct VertexBufferBinding<T, B> where
    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> VertexBufferBinding<T, B> where
    B: BufferRange<T>, 
[src]

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

Trait Implementations

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

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

impl<T, B> DynVertexBufferBinding for VertexBufferBinding<T, B> where
    B: 'static + BufferRange<T>,
    T: 'static, 
[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> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Any + Send + Sync
[src]

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

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

impl<V> IntoPnt<V> for V[src]

impl<V> IntoVec<V> for V[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

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

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]