[][src]Struct luminance::pipeline::Pipeline

pub struct Pipeline<'a, B: ?Sized> where
    B: PipelineBase
{ /* fields omitted */ }

A GPU pipeline handle.

A Pipeline is a special object that is provided as soon as one enters a PipelineGate. It is used to dynamically modify the behavior of the running graphics pipeline. That includes, for instance, obtaining bound resources, like buffers and textures, for subsequent uses in shader stages.

Parametricity

Implementations

impl<'a, B> Pipeline<'a, B> where
    B: PipelineBase
[src]

pub fn bind_buffer<T>(
    &'a self,
    buffer: &'a mut Buffer<B, T>
) -> Result<BoundBuffer<'a, B, T>, PipelineError> where
    B: PipelineBuffer<T>,
    T: Copy
[src]

Bind a buffer.

Once the buffer is bound, the BoundBuffer object has to be dropped / die in order to bind the buffer again.

pub fn bind_texture<D, P>(
    &'a self,
    texture: &'a mut Texture<B, D, P>
) -> Result<BoundTexture<'a, B, D, P>, PipelineError> where
    B: PipelineTexture<D, P>,
    D: Dimensionable,
    P: Pixel
[src]

Bind a texture.

Once the texture is bound, the BoundTexture object has to be dropped / die in order to bind the texture again.

Auto Trait Implementations

impl<'a, B: ?Sized> RefUnwindSafe for Pipeline<'a, B> where
    <B as PipelineBase>::PipelineRepr: RefUnwindSafe

impl<'a, B: ?Sized> Send for Pipeline<'a, B> where
    <B as PipelineBase>::PipelineRepr: Send

impl<'a, B: ?Sized> Sync for Pipeline<'a, B> where
    <B as PipelineBase>::PipelineRepr: Sync

impl<'a, B: ?Sized> Unpin for Pipeline<'a, B> where
    <B as PipelineBase>::PipelineRepr: Unpin

impl<'a, B> !UnwindSafe for Pipeline<'a, B>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[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, 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.