Trait bevy_render::render_phase::AddRenderCommand
source · pub trait AddRenderCommand {
fn add_render_command<P: PhaseItem, C: RenderCommand<P> + Send + Sync + 'static>(
&mut self
) -> &mut Self
where
<C::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
sourcefn add_render_command<P: PhaseItem, C: RenderCommand<P> + Send + Sync + 'static>(
&mut self
) -> &mut Selfwhere
<C::Param as SystemParam>::Fetch: ReadOnlySystemParamFetch,
fn add_render_command<P: PhaseItem, C: RenderCommand<P> + Send + Sync + 'static>(
&mut self
) -> &mut Selfwhere
<C::Param as SystemParam>::Fetch: ReadOnlySystemParamFetch,
Adds the RenderCommand
for the specified RenderPhase
to the app.