Skip to main content

RenderModuleReplayAsyncTrait

Trait RenderModuleReplayAsyncTrait 

Source
pub trait RenderModuleReplayAsyncTrait<'frame, ConfigType, RenderCommandType, LayoutModule> {
    // Required method
    async fn replay(
        &mut self,
        render_commands: impl Iterator<Item = RenderCommandType>,
        layout: &mut LayoutModule,
    );
}
Expand description

Async renderer replay: init(layout) followed by draw_frame(commands).await.

Required Methods§

Source

async fn replay( &mut self, render_commands: impl Iterator<Item = RenderCommandType>, layout: &mut LayoutModule, )

Initializes the renderer against layout, then draws render_commands asynchronously.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<'frame, ConfigType, RenderCommandType, LayoutModule, Renderer> RenderModuleReplayAsyncTrait<'frame, ConfigType, RenderCommandType, LayoutModule> for RenderModuleReplay<Renderer>
where Renderer: RenderCompatibleWith<LayoutModule> + CotisRendererAsync<RenderCommandType>,