bevy_render::render_phase

Trait AddRenderCommand

Source
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 render phase to the app.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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

Source§

impl AddRenderCommand for SubApp

Source§

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

Implementors§