pub trait RenderCommand<P>
where P: PhaseItem,
{ type Param: SystemParam + 'static; type ViewQuery: ReadOnlyQueryData; type ItemQuery: ReadOnlyQueryData; // Required method fn render<'w>( item: &P, view: <<Self::ViewQuery as QueryData>::ReadOnly as WorldQuery>::Item<'w>, entity: Option<<<Self::ItemQuery as QueryData>::ReadOnly as WorldQuery>::Item<'w>>, param: <Self::Param as SystemParam>::Item<'w, '_>, pass: &mut TrackedRenderPass<'w> ) -> RenderCommandResult; }
Expand description

RenderCommands are modular standardized pieces of render logic that can be composed into Draw functions.

To turn a stateless render command into a usable draw function it has to be wrapped by a RenderCommandState. This is done automatically when registering a render command as a Draw function via the AddRenderCommand::add_render_command method.

Compared to the draw function the required ECS data is fetched automatically (by the RenderCommandState) from the render world. Therefore the three types Param, ViewQuery and ItemQuery are used. They specify which information is required to execute the render command.

Multiple render commands can be combined together by wrapping them in a tuple.

Example

The DrawMaterial draw function is created from the following render command tuple. Const generics are used to set specific bind group locations:

pub type DrawMaterial<M> = (
    SetItemPipeline,
    SetMeshViewBindGroup<0>,
    SetMeshBindGroup<1>,
    SetMaterialBindGroup<M, 2>,
    DrawMesh,
);

Required Associated Types§

source

type Param: SystemParam + 'static

Specifies the general ECS data (e.g. resources) required by RenderCommand::render.

When fetching resources, note that, due to lifetime limitations of the Deref trait, SRes::into_inner must be called on each SRes reference in the RenderCommand::render method, instead of being automatically dereferenced as is the case in normal systems.

All parameters have to be read only.

source

type ViewQuery: ReadOnlyQueryData

Specifies the ECS data of the view entity required by RenderCommand::render.

The view entity refers to the camera, or shadow-casting light, etc. from which the phase item will be rendered from. All components have to be accessed read only.

source

type ItemQuery: ReadOnlyQueryData

Specifies the ECS data of the item entity required by RenderCommand::render.

The item is the entity that will be rendered for the corresponding view. All components have to be accessed read only.

For efficiency reasons, Bevy doesn’t always extract entities to the render world; for instance, entities that simply consist of meshes are often not extracted. If the entity doesn’t exist in the render world, the supplied query data will be None.

Required Methods§

source

fn render<'w>( item: &P, view: <<Self::ViewQuery as QueryData>::ReadOnly as WorldQuery>::Item<'w>, entity: Option<<<Self::ItemQuery as QueryData>::ReadOnly as WorldQuery>::Item<'w>>, param: <Self::Param as SystemParam>::Item<'w, '_>, pass: &mut TrackedRenderPass<'w> ) -> RenderCommandResult

Renders a PhaseItem by recording commands (e.g. setting pipelines, binding bind groups, issuing draw calls, etc.) via the TrackedRenderPass.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<P> RenderCommand<P> for ()
where P: PhaseItem,

§

type Param = ()

§

type ViewQuery = ()

§

type ItemQuery = ()

source§

fn render<'w>( _item: &P, _: <<<() as RenderCommand<P>>::ViewQuery as QueryData>::ReadOnly as WorldQuery>::Item<'w>, maybe_entities: Option<<<<() as RenderCommand<P>>::ItemQuery as QueryData>::ReadOnly as WorldQuery>::Item<'w>>, _: <<() as RenderCommand<P>>::Param as SystemParam>::Item<'w, '_>, _pass: &mut TrackedRenderPass<'w> ) -> RenderCommandResult

source§

impl<P, C0> RenderCommand<P> for (C0,)
where P: PhaseItem, C0: RenderCommand<P>,

§

type Param = (<C0 as RenderCommand<P>>::Param,)

§

type ViewQuery = (<C0 as RenderCommand<P>>::ViewQuery,)

§

type ItemQuery = (<C0 as RenderCommand<P>>::ItemQuery,)

source§

fn render<'w>( _item: &P, _: <<<(C0,) as RenderCommand<P>>::ViewQuery as QueryData>::ReadOnly as WorldQuery>::Item<'w>, maybe_entities: Option<<<<(C0,) as RenderCommand<P>>::ItemQuery as QueryData>::ReadOnly as WorldQuery>::Item<'w>>, _: <<(C0,) as RenderCommand<P>>::Param as SystemParam>::Item<'w, '_>, _pass: &mut TrackedRenderPass<'w> ) -> RenderCommandResult

source§

impl<P, C0, C1> RenderCommand<P> for (C0, C1)
where P: PhaseItem, C0: RenderCommand<P>, C1: RenderCommand<P>,

§

type Param = (<C0 as RenderCommand<P>>::Param, <C1 as RenderCommand<P>>::Param)

§

type ViewQuery = (<C0 as RenderCommand<P>>::ViewQuery, <C1 as RenderCommand<P>>::ViewQuery)

§

type ItemQuery = (<C0 as RenderCommand<P>>::ItemQuery, <C1 as RenderCommand<P>>::ItemQuery)

source§

fn render<'w>( _item: &P, _: <<<(C0, C1) as RenderCommand<P>>::ViewQuery as QueryData>::ReadOnly as WorldQuery>::Item<'w>, maybe_entities: Option<<<<(C0, C1) as RenderCommand<P>>::ItemQuery as QueryData>::ReadOnly as WorldQuery>::Item<'w>>, _: <<(C0, C1) as RenderCommand<P>>::Param as SystemParam>::Item<'w, '_>, _pass: &mut TrackedRenderPass<'w> ) -> RenderCommandResult

source§

impl<P, C0, C1, C2> RenderCommand<P> for (C0, C1, C2)
where P: PhaseItem, C0: RenderCommand<P>, C1: RenderCommand<P>, C2: RenderCommand<P>,

§

type Param = (<C0 as RenderCommand<P>>::Param, <C1 as RenderCommand<P>>::Param, <C2 as RenderCommand<P>>::Param)

§

type ViewQuery = (<C0 as RenderCommand<P>>::ViewQuery, <C1 as RenderCommand<P>>::ViewQuery, <C2 as RenderCommand<P>>::ViewQuery)

§

type ItemQuery = (<C0 as RenderCommand<P>>::ItemQuery, <C1 as RenderCommand<P>>::ItemQuery, <C2 as RenderCommand<P>>::ItemQuery)

source§

fn render<'w>( _item: &P, _: <<<(C0, C1, C2) as RenderCommand<P>>::ViewQuery as QueryData>::ReadOnly as WorldQuery>::Item<'w>, maybe_entities: Option<<<<(C0, C1, C2) as RenderCommand<P>>::ItemQuery as QueryData>::ReadOnly as WorldQuery>::Item<'w>>, _: <<(C0, C1, C2) as RenderCommand<P>>::Param as SystemParam>::Item<'w, '_>, _pass: &mut TrackedRenderPass<'w> ) -> RenderCommandResult

source§

impl<P, C0, C1, C2, C3> RenderCommand<P> for (C0, C1, C2, C3)
where P: PhaseItem, C0: RenderCommand<P>, C1: RenderCommand<P>, C2: RenderCommand<P>, C3: RenderCommand<P>,

§

type Param = (<C0 as RenderCommand<P>>::Param, <C1 as RenderCommand<P>>::Param, <C2 as RenderCommand<P>>::Param, <C3 as RenderCommand<P>>::Param)

§

type ViewQuery = (<C0 as RenderCommand<P>>::ViewQuery, <C1 as RenderCommand<P>>::ViewQuery, <C2 as RenderCommand<P>>::ViewQuery, <C3 as RenderCommand<P>>::ViewQuery)

§

type ItemQuery = (<C0 as RenderCommand<P>>::ItemQuery, <C1 as RenderCommand<P>>::ItemQuery, <C2 as RenderCommand<P>>::ItemQuery, <C3 as RenderCommand<P>>::ItemQuery)

source§

fn render<'w>( _item: &P, _: <<<(C0, C1, C2, C3) as RenderCommand<P>>::ViewQuery as QueryData>::ReadOnly as WorldQuery>::Item<'w>, maybe_entities: Option<<<<(C0, C1, C2, C3) as RenderCommand<P>>::ItemQuery as QueryData>::ReadOnly as WorldQuery>::Item<'w>>, _: <<(C0, C1, C2, C3) as RenderCommand<P>>::Param as SystemParam>::Item<'w, '_>, _pass: &mut TrackedRenderPass<'w> ) -> RenderCommandResult

source§

impl<P, C0, C1, C2, C3, C4> RenderCommand<P> for (C0, C1, C2, C3, C4)
where P: PhaseItem, C0: RenderCommand<P>, C1: RenderCommand<P>, C2: RenderCommand<P>, C3: RenderCommand<P>, C4: RenderCommand<P>,

§

type Param = (<C0 as RenderCommand<P>>::Param, <C1 as RenderCommand<P>>::Param, <C2 as RenderCommand<P>>::Param, <C3 as RenderCommand<P>>::Param, <C4 as RenderCommand<P>>::Param)

§

type ViewQuery = (<C0 as RenderCommand<P>>::ViewQuery, <C1 as RenderCommand<P>>::ViewQuery, <C2 as RenderCommand<P>>::ViewQuery, <C3 as RenderCommand<P>>::ViewQuery, <C4 as RenderCommand<P>>::ViewQuery)

§

type ItemQuery = (<C0 as RenderCommand<P>>::ItemQuery, <C1 as RenderCommand<P>>::ItemQuery, <C2 as RenderCommand<P>>::ItemQuery, <C3 as RenderCommand<P>>::ItemQuery, <C4 as RenderCommand<P>>::ItemQuery)

source§

fn render<'w>( _item: &P, _: <<<(C0, C1, C2, C3, C4) as RenderCommand<P>>::ViewQuery as QueryData>::ReadOnly as WorldQuery>::Item<'w>, maybe_entities: Option<<<<(C0, C1, C2, C3, C4) as RenderCommand<P>>::ItemQuery as QueryData>::ReadOnly as WorldQuery>::Item<'w>>, _: <<(C0, C1, C2, C3, C4) as RenderCommand<P>>::Param as SystemParam>::Item<'w, '_>, _pass: &mut TrackedRenderPass<'w> ) -> RenderCommandResult

source§

impl<P, C0, C1, C2, C3, C4, C5> RenderCommand<P> for (C0, C1, C2, C3, C4, C5)
where P: PhaseItem, C0: RenderCommand<P>, C1: RenderCommand<P>, C2: RenderCommand<P>, C3: RenderCommand<P>, C4: RenderCommand<P>, C5: RenderCommand<P>,

§

type Param = (<C0 as RenderCommand<P>>::Param, <C1 as RenderCommand<P>>::Param, <C2 as RenderCommand<P>>::Param, <C3 as RenderCommand<P>>::Param, <C4 as RenderCommand<P>>::Param, <C5 as RenderCommand<P>>::Param)

§

type ViewQuery = (<C0 as RenderCommand<P>>::ViewQuery, <C1 as RenderCommand<P>>::ViewQuery, <C2 as RenderCommand<P>>::ViewQuery, <C3 as RenderCommand<P>>::ViewQuery, <C4 as RenderCommand<P>>::ViewQuery, <C5 as RenderCommand<P>>::ViewQuery)

§

type ItemQuery = (<C0 as RenderCommand<P>>::ItemQuery, <C1 as RenderCommand<P>>::ItemQuery, <C2 as RenderCommand<P>>::ItemQuery, <C3 as RenderCommand<P>>::ItemQuery, <C4 as RenderCommand<P>>::ItemQuery, <C5 as RenderCommand<P>>::ItemQuery)

source§

fn render<'w>( _item: &P, _: <<<(C0, C1, C2, C3, C4, C5) as RenderCommand<P>>::ViewQuery as QueryData>::ReadOnly as WorldQuery>::Item<'w>, maybe_entities: Option<<<<(C0, C1, C2, C3, C4, C5) as RenderCommand<P>>::ItemQuery as QueryData>::ReadOnly as WorldQuery>::Item<'w>>, _: <<(C0, C1, C2, C3, C4, C5) as RenderCommand<P>>::Param as SystemParam>::Item<'w, '_>, _pass: &mut TrackedRenderPass<'w> ) -> RenderCommandResult

source§

impl<P, C0, C1, C2, C3, C4, C5, C6> RenderCommand<P> for (C0, C1, C2, C3, C4, C5, C6)
where P: PhaseItem, C0: RenderCommand<P>, C1: RenderCommand<P>, C2: RenderCommand<P>, C3: RenderCommand<P>, C4: RenderCommand<P>, C5: RenderCommand<P>, C6: RenderCommand<P>,

§

type Param = (<C0 as RenderCommand<P>>::Param, <C1 as RenderCommand<P>>::Param, <C2 as RenderCommand<P>>::Param, <C3 as RenderCommand<P>>::Param, <C4 as RenderCommand<P>>::Param, <C5 as RenderCommand<P>>::Param, <C6 as RenderCommand<P>>::Param)

§

type ViewQuery = (<C0 as RenderCommand<P>>::ViewQuery, <C1 as RenderCommand<P>>::ViewQuery, <C2 as RenderCommand<P>>::ViewQuery, <C3 as RenderCommand<P>>::ViewQuery, <C4 as RenderCommand<P>>::ViewQuery, <C5 as RenderCommand<P>>::ViewQuery, <C6 as RenderCommand<P>>::ViewQuery)

§

type ItemQuery = (<C0 as RenderCommand<P>>::ItemQuery, <C1 as RenderCommand<P>>::ItemQuery, <C2 as RenderCommand<P>>::ItemQuery, <C3 as RenderCommand<P>>::ItemQuery, <C4 as RenderCommand<P>>::ItemQuery, <C5 as RenderCommand<P>>::ItemQuery, <C6 as RenderCommand<P>>::ItemQuery)

source§

fn render<'w>( _item: &P, _: <<<(C0, C1, C2, C3, C4, C5, C6) as RenderCommand<P>>::ViewQuery as QueryData>::ReadOnly as WorldQuery>::Item<'w>, maybe_entities: Option<<<<(C0, C1, C2, C3, C4, C5, C6) as RenderCommand<P>>::ItemQuery as QueryData>::ReadOnly as WorldQuery>::Item<'w>>, _: <<(C0, C1, C2, C3, C4, C5, C6) as RenderCommand<P>>::Param as SystemParam>::Item<'w, '_>, _pass: &mut TrackedRenderPass<'w> ) -> RenderCommandResult

source§

impl<P, C0, C1, C2, C3, C4, C5, C6, C7> RenderCommand<P> for (C0, C1, C2, C3, C4, C5, C6, C7)
where P: PhaseItem, C0: RenderCommand<P>, C1: RenderCommand<P>, C2: RenderCommand<P>, C3: RenderCommand<P>, C4: RenderCommand<P>, C5: RenderCommand<P>, C6: RenderCommand<P>, C7: RenderCommand<P>,

source§

impl<P, C0, C1, C2, C3, C4, C5, C6, C7, C8> RenderCommand<P> for (C0, C1, C2, C3, C4, C5, C6, C7, C8)
where P: PhaseItem, C0: RenderCommand<P>, C1: RenderCommand<P>, C2: RenderCommand<P>, C3: RenderCommand<P>, C4: RenderCommand<P>, C5: RenderCommand<P>, C6: RenderCommand<P>, C7: RenderCommand<P>, C8: RenderCommand<P>,

source§

impl<P, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9> RenderCommand<P> for (C0, C1, C2, C3, C4, C5, C6, C7, C8, C9)
where P: PhaseItem, C0: RenderCommand<P>, C1: RenderCommand<P>, C2: RenderCommand<P>, C3: RenderCommand<P>, C4: RenderCommand<P>, C5: RenderCommand<P>, C6: RenderCommand<P>, C7: RenderCommand<P>, C8: RenderCommand<P>, C9: RenderCommand<P>,

§

type Param = (<C0 as RenderCommand<P>>::Param, <C1 as RenderCommand<P>>::Param, <C2 as RenderCommand<P>>::Param, <C3 as RenderCommand<P>>::Param, <C4 as RenderCommand<P>>::Param, <C5 as RenderCommand<P>>::Param, <C6 as RenderCommand<P>>::Param, <C7 as RenderCommand<P>>::Param, <C8 as RenderCommand<P>>::Param, <C9 as RenderCommand<P>>::Param)

§

type ViewQuery = (<C0 as RenderCommand<P>>::ViewQuery, <C1 as RenderCommand<P>>::ViewQuery, <C2 as RenderCommand<P>>::ViewQuery, <C3 as RenderCommand<P>>::ViewQuery, <C4 as RenderCommand<P>>::ViewQuery, <C5 as RenderCommand<P>>::ViewQuery, <C6 as RenderCommand<P>>::ViewQuery, <C7 as RenderCommand<P>>::ViewQuery, <C8 as RenderCommand<P>>::ViewQuery, <C9 as RenderCommand<P>>::ViewQuery)

§

type ItemQuery = (<C0 as RenderCommand<P>>::ItemQuery, <C1 as RenderCommand<P>>::ItemQuery, <C2 as RenderCommand<P>>::ItemQuery, <C3 as RenderCommand<P>>::ItemQuery, <C4 as RenderCommand<P>>::ItemQuery, <C5 as RenderCommand<P>>::ItemQuery, <C6 as RenderCommand<P>>::ItemQuery, <C7 as RenderCommand<P>>::ItemQuery, <C8 as RenderCommand<P>>::ItemQuery, <C9 as RenderCommand<P>>::ItemQuery)

source§

fn render<'w>( _item: &P, _: <<<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9) as RenderCommand<P>>::ViewQuery as QueryData>::ReadOnly as WorldQuery>::Item<'w>, maybe_entities: Option<<<<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9) as RenderCommand<P>>::ItemQuery as QueryData>::ReadOnly as WorldQuery>::Item<'w>>, _: <<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9) as RenderCommand<P>>::Param as SystemParam>::Item<'w, '_>, _pass: &mut TrackedRenderPass<'w> ) -> RenderCommandResult

source§

impl<P, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10> RenderCommand<P> for (C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10)
where P: PhaseItem, C0: RenderCommand<P>, C1: RenderCommand<P>, C2: RenderCommand<P>, C3: RenderCommand<P>, C4: RenderCommand<P>, C5: RenderCommand<P>, C6: RenderCommand<P>, C7: RenderCommand<P>, C8: RenderCommand<P>, C9: RenderCommand<P>, C10: RenderCommand<P>,

§

type Param = (<C0 as RenderCommand<P>>::Param, <C1 as RenderCommand<P>>::Param, <C2 as RenderCommand<P>>::Param, <C3 as RenderCommand<P>>::Param, <C4 as RenderCommand<P>>::Param, <C5 as RenderCommand<P>>::Param, <C6 as RenderCommand<P>>::Param, <C7 as RenderCommand<P>>::Param, <C8 as RenderCommand<P>>::Param, <C9 as RenderCommand<P>>::Param, <C10 as RenderCommand<P>>::Param)

§

type ViewQuery = (<C0 as RenderCommand<P>>::ViewQuery, <C1 as RenderCommand<P>>::ViewQuery, <C2 as RenderCommand<P>>::ViewQuery, <C3 as RenderCommand<P>>::ViewQuery, <C4 as RenderCommand<P>>::ViewQuery, <C5 as RenderCommand<P>>::ViewQuery, <C6 as RenderCommand<P>>::ViewQuery, <C7 as RenderCommand<P>>::ViewQuery, <C8 as RenderCommand<P>>::ViewQuery, <C9 as RenderCommand<P>>::ViewQuery, <C10 as RenderCommand<P>>::ViewQuery)

§

type ItemQuery = (<C0 as RenderCommand<P>>::ItemQuery, <C1 as RenderCommand<P>>::ItemQuery, <C2 as RenderCommand<P>>::ItemQuery, <C3 as RenderCommand<P>>::ItemQuery, <C4 as RenderCommand<P>>::ItemQuery, <C5 as RenderCommand<P>>::ItemQuery, <C6 as RenderCommand<P>>::ItemQuery, <C7 as RenderCommand<P>>::ItemQuery, <C8 as RenderCommand<P>>::ItemQuery, <C9 as RenderCommand<P>>::ItemQuery, <C10 as RenderCommand<P>>::ItemQuery)

source§

fn render<'w>( _item: &P, _: <<<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) as RenderCommand<P>>::ViewQuery as QueryData>::ReadOnly as WorldQuery>::Item<'w>, maybe_entities: Option<<<<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) as RenderCommand<P>>::ItemQuery as QueryData>::ReadOnly as WorldQuery>::Item<'w>>, _: <<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) as RenderCommand<P>>::Param as SystemParam>::Item<'w, '_>, _pass: &mut TrackedRenderPass<'w> ) -> RenderCommandResult

source§

impl<P, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11> RenderCommand<P> for (C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11)
where P: PhaseItem, C0: RenderCommand<P>, C1: RenderCommand<P>, C2: RenderCommand<P>, C3: RenderCommand<P>, C4: RenderCommand<P>, C5: RenderCommand<P>, C6: RenderCommand<P>, C7: RenderCommand<P>, C8: RenderCommand<P>, C9: RenderCommand<P>, C10: RenderCommand<P>, C11: RenderCommand<P>,

§

type Param = (<C0 as RenderCommand<P>>::Param, <C1 as RenderCommand<P>>::Param, <C2 as RenderCommand<P>>::Param, <C3 as RenderCommand<P>>::Param, <C4 as RenderCommand<P>>::Param, <C5 as RenderCommand<P>>::Param, <C6 as RenderCommand<P>>::Param, <C7 as RenderCommand<P>>::Param, <C8 as RenderCommand<P>>::Param, <C9 as RenderCommand<P>>::Param, <C10 as RenderCommand<P>>::Param, <C11 as RenderCommand<P>>::Param)

§

type ViewQuery = (<C0 as RenderCommand<P>>::ViewQuery, <C1 as RenderCommand<P>>::ViewQuery, <C2 as RenderCommand<P>>::ViewQuery, <C3 as RenderCommand<P>>::ViewQuery, <C4 as RenderCommand<P>>::ViewQuery, <C5 as RenderCommand<P>>::ViewQuery, <C6 as RenderCommand<P>>::ViewQuery, <C7 as RenderCommand<P>>::ViewQuery, <C8 as RenderCommand<P>>::ViewQuery, <C9 as RenderCommand<P>>::ViewQuery, <C10 as RenderCommand<P>>::ViewQuery, <C11 as RenderCommand<P>>::ViewQuery)

§

type ItemQuery = (<C0 as RenderCommand<P>>::ItemQuery, <C1 as RenderCommand<P>>::ItemQuery, <C2 as RenderCommand<P>>::ItemQuery, <C3 as RenderCommand<P>>::ItemQuery, <C4 as RenderCommand<P>>::ItemQuery, <C5 as RenderCommand<P>>::ItemQuery, <C6 as RenderCommand<P>>::ItemQuery, <C7 as RenderCommand<P>>::ItemQuery, <C8 as RenderCommand<P>>::ItemQuery, <C9 as RenderCommand<P>>::ItemQuery, <C10 as RenderCommand<P>>::ItemQuery, <C11 as RenderCommand<P>>::ItemQuery)

source§

fn render<'w>( _item: &P, _: <<<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11) as RenderCommand<P>>::ViewQuery as QueryData>::ReadOnly as WorldQuery>::Item<'w>, maybe_entities: Option<<<<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11) as RenderCommand<P>>::ItemQuery as QueryData>::ReadOnly as WorldQuery>::Item<'w>>, _: <<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11) as RenderCommand<P>>::Param as SystemParam>::Item<'w, '_>, _pass: &mut TrackedRenderPass<'w> ) -> RenderCommandResult

source§

impl<P, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12> RenderCommand<P> for (C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12)
where P: PhaseItem, C0: RenderCommand<P>, C1: RenderCommand<P>, C2: RenderCommand<P>, C3: RenderCommand<P>, C4: RenderCommand<P>, C5: RenderCommand<P>, C6: RenderCommand<P>, C7: RenderCommand<P>, C8: RenderCommand<P>, C9: RenderCommand<P>, C10: RenderCommand<P>, C11: RenderCommand<P>, C12: RenderCommand<P>,

§

type Param = (<C0 as RenderCommand<P>>::Param, <C1 as RenderCommand<P>>::Param, <C2 as RenderCommand<P>>::Param, <C3 as RenderCommand<P>>::Param, <C4 as RenderCommand<P>>::Param, <C5 as RenderCommand<P>>::Param, <C6 as RenderCommand<P>>::Param, <C7 as RenderCommand<P>>::Param, <C8 as RenderCommand<P>>::Param, <C9 as RenderCommand<P>>::Param, <C10 as RenderCommand<P>>::Param, <C11 as RenderCommand<P>>::Param, <C12 as RenderCommand<P>>::Param)

§

type ViewQuery = (<C0 as RenderCommand<P>>::ViewQuery, <C1 as RenderCommand<P>>::ViewQuery, <C2 as RenderCommand<P>>::ViewQuery, <C3 as RenderCommand<P>>::ViewQuery, <C4 as RenderCommand<P>>::ViewQuery, <C5 as RenderCommand<P>>::ViewQuery, <C6 as RenderCommand<P>>::ViewQuery, <C7 as RenderCommand<P>>::ViewQuery, <C8 as RenderCommand<P>>::ViewQuery, <C9 as RenderCommand<P>>::ViewQuery, <C10 as RenderCommand<P>>::ViewQuery, <C11 as RenderCommand<P>>::ViewQuery, <C12 as RenderCommand<P>>::ViewQuery)

§

type ItemQuery = (<C0 as RenderCommand<P>>::ItemQuery, <C1 as RenderCommand<P>>::ItemQuery, <C2 as RenderCommand<P>>::ItemQuery, <C3 as RenderCommand<P>>::ItemQuery, <C4 as RenderCommand<P>>::ItemQuery, <C5 as RenderCommand<P>>::ItemQuery, <C6 as RenderCommand<P>>::ItemQuery, <C7 as RenderCommand<P>>::ItemQuery, <C8 as RenderCommand<P>>::ItemQuery, <C9 as RenderCommand<P>>::ItemQuery, <C10 as RenderCommand<P>>::ItemQuery, <C11 as RenderCommand<P>>::ItemQuery, <C12 as RenderCommand<P>>::ItemQuery)

source§

fn render<'w>( _item: &P, _: <<<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12) as RenderCommand<P>>::ViewQuery as QueryData>::ReadOnly as WorldQuery>::Item<'w>, maybe_entities: Option<<<<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12) as RenderCommand<P>>::ItemQuery as QueryData>::ReadOnly as WorldQuery>::Item<'w>>, _: <<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12) as RenderCommand<P>>::Param as SystemParam>::Item<'w, '_>, _pass: &mut TrackedRenderPass<'w> ) -> RenderCommandResult

source§

impl<P, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13> RenderCommand<P> for (C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13)
where P: PhaseItem, C0: RenderCommand<P>, C1: RenderCommand<P>, C2: RenderCommand<P>, C3: RenderCommand<P>, C4: RenderCommand<P>, C5: RenderCommand<P>, C6: RenderCommand<P>, C7: RenderCommand<P>, C8: RenderCommand<P>, C9: RenderCommand<P>, C10: RenderCommand<P>, C11: RenderCommand<P>, C12: RenderCommand<P>, C13: RenderCommand<P>,

§

type Param = (<C0 as RenderCommand<P>>::Param, <C1 as RenderCommand<P>>::Param, <C2 as RenderCommand<P>>::Param, <C3 as RenderCommand<P>>::Param, <C4 as RenderCommand<P>>::Param, <C5 as RenderCommand<P>>::Param, <C6 as RenderCommand<P>>::Param, <C7 as RenderCommand<P>>::Param, <C8 as RenderCommand<P>>::Param, <C9 as RenderCommand<P>>::Param, <C10 as RenderCommand<P>>::Param, <C11 as RenderCommand<P>>::Param, <C12 as RenderCommand<P>>::Param, <C13 as RenderCommand<P>>::Param)

§

type ViewQuery = (<C0 as RenderCommand<P>>::ViewQuery, <C1 as RenderCommand<P>>::ViewQuery, <C2 as RenderCommand<P>>::ViewQuery, <C3 as RenderCommand<P>>::ViewQuery, <C4 as RenderCommand<P>>::ViewQuery, <C5 as RenderCommand<P>>::ViewQuery, <C6 as RenderCommand<P>>::ViewQuery, <C7 as RenderCommand<P>>::ViewQuery, <C8 as RenderCommand<P>>::ViewQuery, <C9 as RenderCommand<P>>::ViewQuery, <C10 as RenderCommand<P>>::ViewQuery, <C11 as RenderCommand<P>>::ViewQuery, <C12 as RenderCommand<P>>::ViewQuery, <C13 as RenderCommand<P>>::ViewQuery)

§

type ItemQuery = (<C0 as RenderCommand<P>>::ItemQuery, <C1 as RenderCommand<P>>::ItemQuery, <C2 as RenderCommand<P>>::ItemQuery, <C3 as RenderCommand<P>>::ItemQuery, <C4 as RenderCommand<P>>::ItemQuery, <C5 as RenderCommand<P>>::ItemQuery, <C6 as RenderCommand<P>>::ItemQuery, <C7 as RenderCommand<P>>::ItemQuery, <C8 as RenderCommand<P>>::ItemQuery, <C9 as RenderCommand<P>>::ItemQuery, <C10 as RenderCommand<P>>::ItemQuery, <C11 as RenderCommand<P>>::ItemQuery, <C12 as RenderCommand<P>>::ItemQuery, <C13 as RenderCommand<P>>::ItemQuery)

source§

fn render<'w>( _item: &P, _: <<<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13) as RenderCommand<P>>::ViewQuery as QueryData>::ReadOnly as WorldQuery>::Item<'w>, maybe_entities: Option<<<<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13) as RenderCommand<P>>::ItemQuery as QueryData>::ReadOnly as WorldQuery>::Item<'w>>, _: <<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13) as RenderCommand<P>>::Param as SystemParam>::Item<'w, '_>, _pass: &mut TrackedRenderPass<'w> ) -> RenderCommandResult

source§

impl<P, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13, C14> RenderCommand<P> for (C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13, C14)
where P: PhaseItem, C0: RenderCommand<P>, C1: RenderCommand<P>, C2: RenderCommand<P>, C3: RenderCommand<P>, C4: RenderCommand<P>, C5: RenderCommand<P>, C6: RenderCommand<P>, C7: RenderCommand<P>, C8: RenderCommand<P>, C9: RenderCommand<P>, C10: RenderCommand<P>, C11: RenderCommand<P>, C12: RenderCommand<P>, C13: RenderCommand<P>, C14: RenderCommand<P>,

§

type Param = (<C0 as RenderCommand<P>>::Param, <C1 as RenderCommand<P>>::Param, <C2 as RenderCommand<P>>::Param, <C3 as RenderCommand<P>>::Param, <C4 as RenderCommand<P>>::Param, <C5 as RenderCommand<P>>::Param, <C6 as RenderCommand<P>>::Param, <C7 as RenderCommand<P>>::Param, <C8 as RenderCommand<P>>::Param, <C9 as RenderCommand<P>>::Param, <C10 as RenderCommand<P>>::Param, <C11 as RenderCommand<P>>::Param, <C12 as RenderCommand<P>>::Param, <C13 as RenderCommand<P>>::Param, <C14 as RenderCommand<P>>::Param)

§

type ViewQuery = (<C0 as RenderCommand<P>>::ViewQuery, <C1 as RenderCommand<P>>::ViewQuery, <C2 as RenderCommand<P>>::ViewQuery, <C3 as RenderCommand<P>>::ViewQuery, <C4 as RenderCommand<P>>::ViewQuery, <C5 as RenderCommand<P>>::ViewQuery, <C6 as RenderCommand<P>>::ViewQuery, <C7 as RenderCommand<P>>::ViewQuery, <C8 as RenderCommand<P>>::ViewQuery, <C9 as RenderCommand<P>>::ViewQuery, <C10 as RenderCommand<P>>::ViewQuery, <C11 as RenderCommand<P>>::ViewQuery, <C12 as RenderCommand<P>>::ViewQuery, <C13 as RenderCommand<P>>::ViewQuery, <C14 as RenderCommand<P>>::ViewQuery)

§

type ItemQuery = (<C0 as RenderCommand<P>>::ItemQuery, <C1 as RenderCommand<P>>::ItemQuery, <C2 as RenderCommand<P>>::ItemQuery, <C3 as RenderCommand<P>>::ItemQuery, <C4 as RenderCommand<P>>::ItemQuery, <C5 as RenderCommand<P>>::ItemQuery, <C6 as RenderCommand<P>>::ItemQuery, <C7 as RenderCommand<P>>::ItemQuery, <C8 as RenderCommand<P>>::ItemQuery, <C9 as RenderCommand<P>>::ItemQuery, <C10 as RenderCommand<P>>::ItemQuery, <C11 as RenderCommand<P>>::ItemQuery, <C12 as RenderCommand<P>>::ItemQuery, <C13 as RenderCommand<P>>::ItemQuery, <C14 as RenderCommand<P>>::ItemQuery)

source§

fn render<'w>( _item: &P, _: <<<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13, C14) as RenderCommand<P>>::ViewQuery as QueryData>::ReadOnly as WorldQuery>::Item<'w>, maybe_entities: Option<<<<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13, C14) as RenderCommand<P>>::ItemQuery as QueryData>::ReadOnly as WorldQuery>::Item<'w>>, _: <<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13, C14) as RenderCommand<P>>::Param as SystemParam>::Item<'w, '_>, _pass: &mut TrackedRenderPass<'w> ) -> RenderCommandResult

Implementors§

source§

impl<P> RenderCommand<P> for DrawMesh
where P: PhaseItem,

§

type Param = (Res<'static, RenderAssets<Mesh>>, Res<'static, RenderMeshInstances>)

§

type ViewQuery = ()

§

type ItemQuery = ()

source§

impl<P> RenderCommand<P> for DrawMesh2d
where P: PhaseItem,

§

type Param = (Res<'static, RenderAssets<Mesh>>, Res<'static, RenderMesh2dInstances>)

§

type ViewQuery = ()

§

type ItemQuery = ()

source§

impl<P> RenderCommand<P> for DrawSpriteBatch
where P: PhaseItem,

§

type Param = Res<'static, SpriteMeta>

§

type ViewQuery = ()

§

type ItemQuery = &'static SpriteBatch

source§

impl<P> RenderCommand<P> for DrawUiNode
where P: PhaseItem,

§

type Param = Res<'static, UiMeta>

§

type ViewQuery = ()

§

type ItemQuery = &'static UiBatch

source§

impl<P> RenderCommand<P> for SetItemPipeline

§

type Param = Res<'static, PipelineCache>

§

type ViewQuery = ()

§

type ItemQuery = ()

source§

impl<P, M> RenderCommand<P> for DrawUiMaterialNode<M>
where P: PhaseItem, M: UiMaterial,

§

type Param = Res<'static, UiMaterialMeta<M>>

§

type ViewQuery = ()

§

type ItemQuery = &'static UiMaterialBatch<M>

source§

impl<P, M, const I: usize> RenderCommand<P> for SetMaterialBindGroup<M, I>
where P: PhaseItem, M: Material,

§

type Param = (Res<'static, RenderMaterials<M>>, Res<'static, ExtractedInstances<AssetId<M>>>)

§

type ViewQuery = ()

§

type ItemQuery = ()

source§

impl<P, M, const I: usize> RenderCommand<P> for SetMaterial2dBindGroup<M, I>
where P: PhaseItem, M: Material2d,

§

type Param = (Res<'static, RenderMaterials2d<M>>, Res<'static, RenderMaterial2dInstances<M>>)

§

type ViewQuery = ()

§

type ItemQuery = ()

source§

impl<P, M, const I: usize> RenderCommand<P> for SetMatUiViewBindGroup<M, I>
where P: PhaseItem, M: UiMaterial,

§

type Param = Res<'static, UiMaterialMeta<M>>

§

type ViewQuery = &'static ViewUniformOffset

§

type ItemQuery = ()

source§

impl<P, M, const I: usize> RenderCommand<P> for SetUiMaterialBindGroup<M, I>
where P: PhaseItem, M: UiMaterial,

§

type Param = Res<'static, RenderUiMaterials<M>>

§

type ViewQuery = ()

§

type ItemQuery = &'static UiMaterialBatch<M>

source§

impl<P, const I: usize> RenderCommand<P> for SetMeshBindGroup<I>
where P: PhaseItem,

§

type Param = (Res<'static, MeshBindGroups>, Res<'static, RenderMeshInstances>, Res<'static, SkinIndices>, Res<'static, MorphIndices>, Res<'static, RenderLightmaps>)

§

type ViewQuery = ()

§

type ItemQuery = ()

source§

impl<P, const I: usize> RenderCommand<P> for SetMeshViewBindGroup<I>
where P: PhaseItem,

source§

impl<P, const I: usize> RenderCommand<P> for SetPrepassViewBindGroup<I>
where P: PhaseItem,

source§

impl<P, const I: usize> RenderCommand<P> for SetMesh2dBindGroup<I>
where P: PhaseItem,

§

type Param = Res<'static, Mesh2dBindGroup>

§

type ViewQuery = ()

§

type ItemQuery = ()

source§

impl<P, const I: usize> RenderCommand<P> for SetMesh2dViewBindGroup<I>
where P: PhaseItem,

§

type Param = ()

§

type ViewQuery = (&'static ViewUniformOffset, &'static Mesh2dViewBindGroup)

§

type ItemQuery = ()

source§

impl<P, const I: usize> RenderCommand<P> for SetSpriteTextureBindGroup<I>
where P: PhaseItem,

§

type Param = Res<'static, ImageBindGroups>

§

type ViewQuery = ()

§

type ItemQuery = &'static SpriteBatch

source§

impl<P, const I: usize> RenderCommand<P> for SetSpriteViewBindGroup<I>
where P: PhaseItem,

§

type Param = Res<'static, SpriteMeta>

§

type ViewQuery = &'static ViewUniformOffset

§

type ItemQuery = ()

source§

impl<P, const I: usize> RenderCommand<P> for SetUiTextureBindGroup<I>
where P: PhaseItem,

§

type Param = Res<'static, UiImageBindGroups>

§

type ViewQuery = ()

§

type ItemQuery = &'static UiBatch

source§

impl<P, const I: usize> RenderCommand<P> for SetUiViewBindGroup<I>
where P: PhaseItem,

§

type Param = Res<'static, UiMeta>

§

type ViewQuery = &'static ViewUniformOffset

§

type ItemQuery = ()