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§
Sourcefn prepare(
&mut self,
factory: &Factory<B>,
queue: QueueId,
index: usize,
subpass: Subpass<'_, B>,
aux: &T,
) -> PrepareResult
fn prepare( &mut self, factory: &Factory<B>, queue: QueueId, index: usize, subpass: Subpass<'_, B>, aux: &T, ) -> PrepareResult
Prepare resources and data for rendering.
Sourcefn draw_inline(
&mut self,
encoder: RenderPassEncoder<'_, B>,
index: usize,
subpass: Subpass<'_, B>,
aux: &T,
)
fn draw_inline( &mut self, encoder: RenderPassEncoder<'_, B>, index: usize, subpass: Subpass<'_, B>, aux: &T, )
Record commands.