[][src]Trait rendy_graph::render::SimpleGraphicsPipeline

pub trait SimpleGraphicsPipeline<B: Backend, T: ?Sized>: Debug + Sized + Send + Sync + 'static {
    type Desc: SimpleGraphicsPipelineDesc<B, T, Pipeline = Self>;
    fn draw(
        &mut self,
        layout: &B::PipelineLayout,
        encoder: RenderPassEncoder<'_, B>,
        index: usize,
        aux: &T
    );
fn dispose(self, factory: &mut Factory<B>, aux: &T); fn builder() -> DescBuilder<B, T, SimpleRenderGroupDesc<Self::Desc>>
    where
        Self::Desc: Default
, { ... }
fn prepare(
        &mut self,
        _factory: &Factory<B>,
        _queue: QueueId,
        _set_layouts: &[Handle<DescriptorSetLayout<B>>],
        _index: usize,
        _aux: &T
    ) -> PrepareResult { ... } }

Simple render pipeline.

Associated Types

type Desc: SimpleGraphicsPipelineDesc<B, T, Pipeline = Self>

This pipeline descriptor.

Loading content...

Required methods

fn draw(
    &mut self,
    layout: &B::PipelineLayout,
    encoder: RenderPassEncoder<'_, B>,
    index: usize,
    aux: &T
)

Record drawing commands to the command buffer provided.

fn dispose(self, factory: &mut Factory<B>, aux: &T)

Free all resources and destroy pipeline instance.

Loading content...

Provided methods

fn builder() -> DescBuilder<B, T, SimpleRenderGroupDesc<Self::Desc>> where
    Self::Desc: Default

Make simple render group builder.

fn prepare(
    &mut self,
    _factory: &Factory<B>,
    _queue: QueueId,
    _set_layouts: &[Handle<DescriptorSetLayout<B>>],
    _index: usize,
    _aux: &T
) -> PrepareResult

Prepare to record drawing commands.

Should return true if commands must be re-recorded.

Loading content...

Implementors

Loading content...