logo

Trait bevy::render::render_phase::AddRenderCommand[]

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

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

Required methods

Adds the RenderCommand for the specified RenderPhase to the app.

Implementors