[][src]Trait rendy_graph::render::RenderGroup

pub trait RenderGroup<B: Backend, T: ?Sized>: Debug + Send + Sync {
    fn prepare(
        &mut self,
        factory: &Factory<B>,
        queue: QueueId,
        index: usize,
        subpass: Subpass<'_, B>,
        aux: &T
    ) -> PrepareResult;
fn draw_inline(
        &mut self,
        encoder: RenderPassEncoder<'_, B>,
        index: usize,
        subpass: Subpass<'_, B>,
        aux: &T
    );
fn dispose(self: Box<Self>, factory: &mut Factory<B>, aux: &T); }

One or more graphics pipelines to be called in subpass.

Required methods

fn prepare(
    &mut self,
    factory: &Factory<B>,
    queue: QueueId,
    index: usize,
    subpass: Subpass<'_, B>,
    aux: &T
) -> PrepareResult

Prepare resources and data for rendering.

fn draw_inline(
    &mut self,
    encoder: RenderPassEncoder<'_, B>,
    index: usize,
    subpass: Subpass<'_, B>,
    aux: &T
)

Record commands.

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

Free all resources and destroy group instance.

Loading content...

Implementors

impl<B, T, P> RenderGroup<B, T> for SimpleRenderGroup<B, P> where
    B: Backend,
    T: ?Sized,
    P: SimpleGraphicsPipeline<B, T>, 
[src]

Loading content...