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§
fn add_render_command<P, C>(&mut self) -> &mut Selfwhere
P: PhaseItem,
C: 'static + RenderCommand<P> + Send + Sync,
<<C as RenderCommand<P>>::Param as SystemParam>::Fetch: ReadOnlySystemParamFetch,
fn add_render_command<P, C>(&mut self) -> &mut Selfwhere
P: PhaseItem,
C: 'static + RenderCommand<P> + Send + Sync,
<<C as RenderCommand<P>>::Param as SystemParam>::Fetch: ReadOnlySystemParamFetch,
Adds the RenderCommand
for the specified RenderPhase
to the app.