[][src]Trait rendy::graph::render::RenderGroup

pub trait RenderGroup<B, T>: Send + Sync + Debug where
    B: Backend,
    T: ?Sized
{ 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,
    P: SimpleGraphicsPipeline<B, T>,
    T: ?Sized
[src]

Loading content...