Struct bevy::sprite::SetMaterial2dBindGroup
pub struct SetMaterial2dBindGroup<M, const I: usize>(_)
where
M: Material2d;
Trait Implementations§
§impl<M, const I: usize> EntityRenderCommand for SetMaterial2dBindGroup<M, I>where
M: Material2d,
impl<M, const I: usize> EntityRenderCommand for SetMaterial2dBindGroup<M, I>where
M: Material2d,
type Param = (Res<'static, RenderMaterials2d<M>>, Query<'static, 'static, &'static Handle<M>, ()>)
fn render<'w>(
_view: Entity,
item: Entity,
_: <<<SetMaterial2dBindGroup<M, I> as EntityRenderCommand>::Param as SystemParam>::Fetch as SystemParamFetch<'w, '_>>::Item,
pass: &mut TrackedRenderPass<'w>
) -> RenderCommandResult
Auto Trait Implementations§
impl<M, const I: usize> RefUnwindSafe for SetMaterial2dBindGroup<M, I>where
M: RefUnwindSafe,
impl<M, const I: usize> Send for SetMaterial2dBindGroup<M, I>
impl<M, const I: usize> Sync for SetMaterial2dBindGroup<M, I>
impl<M, const I: usize> Unpin for SetMaterial2dBindGroup<M, I>where
M: Unpin,
impl<M, const I: usize> UnwindSafe for SetMaterial2dBindGroup<M, I>where
M: UnwindSafe,
Blanket Implementations§
§impl<T, U> AsBindGroupShaderType<U> for Twhere
U: ShaderType,
&'a T: for<'a> Into<U>,
impl<T, U> AsBindGroupShaderType<U> for Twhere
U: ShaderType,
&'a T: for<'a> Into<U>,
§fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> U
fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> U
Return the
T
ShaderType
for self
. When used in AsBindGroup
derives, it is safe to assume that all images in self
exist. Read more§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read moresource§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
§impl<P, E> RenderCommand<P> for Ewhere
P: EntityPhaseItem,
E: EntityRenderCommand,
<E as EntityRenderCommand>::Param: 'static,
impl<P, E> RenderCommand<P> for Ewhere
P: EntityPhaseItem,
E: EntityRenderCommand,
<E as EntityRenderCommand>::Param: 'static,
§type Param = <E as EntityRenderCommand>::Param
type Param = <E as EntityRenderCommand>::Param
Specifies all ECS data required by
RenderCommand::render
.
All parameters have to be read only. Read more§fn render<'w>(
view: Entity,
item: &P,
param: <<<E as RenderCommand<P>>::Param as SystemParam>::Fetch as SystemParamFetch<'w, '_>>::Item,
pass: &mut TrackedRenderPass<'w>
) -> RenderCommandResult
fn render<'w>(
view: Entity,
item: &P,
param: <<<E as RenderCommand<P>>::Param as SystemParam>::Fetch as SystemParamFetch<'w, '_>>::Item,
pass: &mut TrackedRenderPass<'w>
) -> RenderCommandResult
Renders the
PhaseItem
by issuing draw calls via the TrackedRenderPass
.