rendy_graph::render

Trait RenderGroup

Source
pub trait RenderGroup<B: Backend, T: ?Sized>:
    Debug
    + Send
    + Sync {
    // Required methods
    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);
}
Expand description

One or more graphics pipelines to be called in subpass.

Required Methods§

Source

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

Prepare resources and data for rendering.

Source

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

Record commands.

Source

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

Free all resources and destroy group instance.

Implementors§

Source§

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