Struct luminance::pipeline::BoundBuffer[][src]

pub struct BoundBuffer<'a, B, T> where
    B: PipelineBuffer<T>,
    T: Copy
{ /* fields omitted */ }
Expand description

A bound Buffer.

Parametricity

  • B is the backend type. It must implement PipelineBuffer.
  • T is the type of the carried item by the Buffer.

Notes

Once a Buffer is bound, it can be used and passed around to shaders. In order to do so, you will need to pass a BufferBinding to your ProgramInterface. That value is unique to each BoundBuffer and should always be asked — you shouldn’t cache them, for instance.

Getting a BufferBinding is a cheap operation and is performed via the BoundBuffer::binding method.

Implementations

Obtain a BufferBinding object that can be used to refer to this bound buffer in shader stages.

Notes

You shouldn’t try to do store / cache or do anything special with that value. Consider it an opaque object.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.