Struct bevy_rust_gpu::prelude::RustGpuKey
source · pub struct RustGpuKey<M>where
M: AsBindGroup,{
pub base: M::Data,
pub vertex_shader: Option<Handle<RustGpuBuilderOutput>>,
pub fragment_shader: Option<Handle<RustGpuBuilderOutput>>,
pub iteration: usize,
}Expand description
RustGpu pipeline key.
Fields§
§base: M::Data§vertex_shader: Option<Handle<RustGpuBuilderOutput>>§fragment_shader: Option<Handle<RustGpuBuilderOutput>>§iteration: usizeTrait Implementations§
source§impl<M> Clone for RustGpuKey<M>where
M: AsBindGroup,
M::Data: Clone,
impl<M> Clone for RustGpuKey<M>where M: AsBindGroup, M::Data: Clone,
source§impl<M> Hash for RustGpuKey<M>where
M: AsBindGroup,
M::Data: Hash,
impl<M> Hash for RustGpuKey<M>where M: AsBindGroup, M::Data: Hash,
source§impl<M> PartialEq<RustGpuKey<M>> for RustGpuKey<M>where
M: AsBindGroup,
M::Data: PartialEq,
impl<M> PartialEq<RustGpuKey<M>> for RustGpuKey<M>where M: AsBindGroup, M::Data: PartialEq,
impl<M> Eq for RustGpuKey<M>where M: AsBindGroup, M::Data: Eq,
Auto Trait Implementations§
impl<M> RefUnwindSafe for RustGpuKey<M>where <M as AsBindGroup>::Data: RefUnwindSafe,
impl<M> Send for RustGpuKey<M>
impl<M> Sync for RustGpuKey<M>
impl<M> Unpin for RustGpuKey<M>where <M as AsBindGroup>::Data: Unpin,
impl<M> UnwindSafe for RustGpuKey<M>where <M as AsBindGroup>::Data: 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.