pub trait AddRenderCommand {
    // Required method
    fn add_render_command<P: PhaseItem, C: RenderCommand<P> + Send + Sync + 'static>(
        &mut self
    ) -> &mut Self
       where C::Param: ReadOnlySystemParam;
}
Expand description

Registers a RenderCommand as a Draw function. They are stored inside the DrawFunctions resource of the app.

Required Methods§

source

fn add_render_command<P: PhaseItem, C: RenderCommand<P> + Send + Sync + 'static>( &mut self ) -> &mut Self

Adds the RenderCommand for the specified RenderPhase to the app.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl AddRenderCommand for App

source§

fn add_render_command<P: PhaseItem, C: RenderCommand<P> + Send + Sync + 'static>( &mut self ) -> &mut Self

Implementors§