[][src]Struct web_glitz::rendering::ActiveGraphicsPipeline

pub struct ActiveGraphicsPipeline<'a, V, R, Tf> { /* fields omitted */ }

An activated GraphicsPipeline which may be used to draw to a Framebuffer.

A handle to an ActiveGraphicsPipeline is obtained by using a GraphicsPipeline to create a [PipelineTask] for a Framebuffer, see [Framebuffer::pipeline_task].

Implementations

impl<'a, V, R, Tf> ActiveGraphicsPipeline<'a, V, R, Tf>[src]

pub fn task_builder(
    &self
) -> GraphicsPipelineTaskBuilder<'a, V, R, Unspecified, Unspecified, Unspecified, Empty>
[src]

A builder interface that enforces valid sequencing of pipeline commands.

Notably, this builder will not allow the sequencing of a DrawCommand, before vertex buffers and/or resources have been bound (if the pipeline requires vertex buffers, resp. resources), see GraphicsPipelineTaskBuilder::draw; it will not allow the sequencing of a DrawIndexedCommand before an index buffer has been bound and before vertex buffers and/or resources have been bound (if the pipeline requires vertex buffers, resp. resources), see GraphicsPipelineTaskBuilder::draw_indexed.

Example

let render_pass = render_target.create_render_pass(|framebuffer| {
    framebuffer.pipeline_task(&graphics_pipeline, |active_pipeline| {
        active_pipeline.task_builder()
            .bind_vertex_buffers(vertex_buffer)
            .bind_resources(resources)
            .draw(16, 1)
            .finish()
    })
});

Auto Trait Implementations

impl<'a, V, R, Tf> !RefUnwindSafe for ActiveGraphicsPipeline<'a, V, R, Tf>

impl<'a, V, R, Tf> !Send for ActiveGraphicsPipeline<'a, V, R, Tf>

impl<'a, V, R, Tf> !Sync for ActiveGraphicsPipeline<'a, V, R, Tf>

impl<'a, V, R, Tf> Unpin for ActiveGraphicsPipeline<'a, V, R, Tf>

impl<'a, V, R, Tf> !UnwindSafe for ActiveGraphicsPipeline<'a, V, R, Tf>

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<D, T> IntoBuffer<T> for D where
    D: Borrow<T> + 'static,
    T: Copy + 'static, 
[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.