[−][src]Struct luminance::pipeline::BoundBuffer
A bound Buffer
.
Parametricity
B
is the backend type. It must implementPipelineBuffer
.T
is the type of the carried item by theBuffer
.
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
impl<'a, B, T> BoundBuffer<'a, B, T> where
B: PipelineBuffer<T>,
T: Copy,
[src]
B: PipelineBuffer<T>,
T: Copy,
pub fn binding(&self) -> BufferBinding<T>
[src]
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
impl<'a, B, T> RefUnwindSafe for BoundBuffer<'a, B, T> where
T: RefUnwindSafe,
<B as PipelineBuffer<T>>::BoundBufferRepr: RefUnwindSafe,
T: RefUnwindSafe,
<B as PipelineBuffer<T>>::BoundBufferRepr: RefUnwindSafe,
impl<'a, B, T> Send for BoundBuffer<'a, B, T> where
T: Sync,
<B as PipelineBuffer<T>>::BoundBufferRepr: Send,
T: Sync,
<B as PipelineBuffer<T>>::BoundBufferRepr: Send,
impl<'a, B, T> Sync for BoundBuffer<'a, B, T> where
T: Sync,
<B as PipelineBuffer<T>>::BoundBufferRepr: Sync,
T: Sync,
<B as PipelineBuffer<T>>::BoundBufferRepr: Sync,
impl<'a, B, T> Unpin for BoundBuffer<'a, B, T> where
<B as PipelineBuffer<T>>::BoundBufferRepr: Unpin,
<B as PipelineBuffer<T>>::BoundBufferRepr: Unpin,
impl<'a, B, T> UnwindSafe for BoundBuffer<'a, B, T> where
T: RefUnwindSafe,
<B as PipelineBuffer<T>>::BoundBufferRepr: UnwindSafe,
T: RefUnwindSafe,
<B as PipelineBuffer<T>>::BoundBufferRepr: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,