pub struct PipelineKey {
pub format: TextureFormat,
pub blend: BlendMode,
pub kind: PipelineKind,
}Expand description
PipelineKey identifies one compiled render pipeline variant.
The cache keys on surface format, blend mode, and PipelineKind. Blend
is normalized for kinds that do not blend, so those entries are shared.
Fields§
§format: TextureFormat§blend: BlendMode§kind: PipelineKindImplementations§
Source§impl PipelineKey
impl PipelineKey
Sourcepub fn new(format: TextureFormat, blend: BlendMode, kind: PipelineKind) -> Self
pub fn new(format: TextureFormat, blend: BlendMode, kind: PipelineKind) -> Self
new builds a cache key, normalizing blend for kinds that replace the destination.
Trait Implementations§
Source§impl Clone for PipelineKey
impl Clone for PipelineKey
Source§fn clone(&self) -> PipelineKey
fn clone(&self) -> PipelineKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PipelineKey
Source§impl Debug for PipelineKey
impl Debug for PipelineKey
impl Eq for PipelineKey
Source§impl Hash for PipelineKey
impl Hash for PipelineKey
Source§impl PartialEq for PipelineKey
impl PartialEq for PipelineKey
impl StructuralPartialEq for PipelineKey
Auto Trait Implementations§
impl Freeze for PipelineKey
impl RefUnwindSafe for PipelineKey
impl Send for PipelineKey
impl Sync for PipelineKey
impl Unpin for PipelineKey
impl UnsafeUnpin for PipelineKey
impl UnwindSafe for PipelineKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.