Trait bevy_internal::render::render_phase::AddRenderCommand
source · pub trait AddRenderCommand {
// Required method
fn add_render_command<P, C>(&mut self) -> &mut Self
where P: PhaseItem,
C: RenderCommand<P> + Send + Sync + 'static,
<C as RenderCommand<P>>::Param: ReadOnlySystemParam;
}
Expand description
Registers a RenderCommand
as a Draw
function.
They are stored inside the DrawFunctions
resource of the app.
Required Methods§
sourcefn add_render_command<P, C>(&mut self) -> &mut Selfwhere
P: PhaseItem,
C: RenderCommand<P> + Send + Sync + 'static,
<C as RenderCommand<P>>::Param: ReadOnlySystemParam,
fn add_render_command<P, C>(&mut self) -> &mut Selfwhere
P: PhaseItem,
C: RenderCommand<P> + Send + Sync + 'static,
<C as RenderCommand<P>>::Param: ReadOnlySystemParam,
Adds the RenderCommand
for the specified RenderPhase
to the app.
Object Safety§
This trait is not object safe.