Struct bevy_rust_gpu::RustGpuPlugin
source · pub struct RustGpuPlugin<F> {
pub export_writer: F,
}
Expand description
Main Rust-GPU plugin.
Adds support for RustGpuBuilderOutput
assets,
and configures entry point export if the hot-reload
feature is enabled.
Fields§
§export_writer: F
Trait Implementations§
source§impl<F: Clone> Clone for RustGpuPlugin<F>
impl<F: Clone> Clone for RustGpuPlugin<F>
source§fn clone(&self) -> RustGpuPlugin<F>
fn clone(&self) -> RustGpuPlugin<F>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<F: Debug> Debug for RustGpuPlugin<F>
impl<F: Debug> Debug for RustGpuPlugin<F>
source§impl Default for RustGpuPlugin<fn(_: PathBuf, _: EntryPoints)>
impl Default for RustGpuPlugin<fn(_: PathBuf, _: EntryPoints)>
source§impl<F: Hash> Hash for RustGpuPlugin<F>
impl<F: Hash> Hash for RustGpuPlugin<F>
source§impl<F: Ord> Ord for RustGpuPlugin<F>
impl<F: Ord> Ord for RustGpuPlugin<F>
source§fn cmp(&self, other: &RustGpuPlugin<F>) -> Ordering
fn cmp(&self, other: &RustGpuPlugin<F>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<F: PartialEq> PartialEq<RustGpuPlugin<F>> for RustGpuPlugin<F>
impl<F: PartialEq> PartialEq<RustGpuPlugin<F>> for RustGpuPlugin<F>
source§fn eq(&self, other: &RustGpuPlugin<F>) -> bool
fn eq(&self, other: &RustGpuPlugin<F>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<F: PartialOrd> PartialOrd<RustGpuPlugin<F>> for RustGpuPlugin<F>
impl<F: PartialOrd> PartialOrd<RustGpuPlugin<F>> for RustGpuPlugin<F>
source§fn partial_cmp(&self, other: &RustGpuPlugin<F>) -> Option<Ordering>
fn partial_cmp(&self, other: &RustGpuPlugin<F>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<F> Plugin for RustGpuPlugin<F>where
F: Fn(PathBuf, EntryPoints) + Clone + Send + Sync + 'static,
impl<F> Plugin for RustGpuPlugin<F>where F: Fn(PathBuf, EntryPoints) + Clone + Send + Sync + 'static,
§fn setup(&self, _app: &mut App)
fn setup(&self, _app: &mut App)
Runs after all plugins are built, but before the app runner is called.
This can be useful if you have some resource that other plugins need during their build step,
but after build you want to remove it and send it to another thread.
impl<F: Copy> Copy for RustGpuPlugin<F>
impl<F: Eq> Eq for RustGpuPlugin<F>
impl<F> StructuralEq for RustGpuPlugin<F>
impl<F> StructuralPartialEq for RustGpuPlugin<F>
Auto Trait Implementations§
impl<F> RefUnwindSafe for RustGpuPlugin<F>where F: RefUnwindSafe,
impl<F> Send for RustGpuPlugin<F>where F: Send,
impl<F> Sync for RustGpuPlugin<F>where F: Sync,
impl<F> Unpin for RustGpuPlugin<F>where F: Unpin,
impl<F> UnwindSafe for RustGpuPlugin<F>where F: 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.§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
.§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
.§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.§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.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere T: Default,
§fn from_world(_world: &mut World) -> T
fn from_world(_world: &mut World) -> T
Creates
Self
using data from the given [World]