pub struct PipelineCacheKey {
pub shader_key: ShaderKey,
pub workgroup_size: [u32; 3],
pub push_constant_bytes: u32,
pub layout_hash: u64,
}Expand description
Composite key for a GPU pipeline cache entry.
Uniquely identifies a compiled pipeline based on the shader variant and pipeline parameters.
Fields§
§shader_key: ShaderKeyShader variant key.
workgroup_size: [u32; 3]Workgroup size.
push_constant_bytes: u32Push constant size in bytes.
layout_hash: u64Bind group layout signature (e.g. a hash of the layout).
Implementations§
Trait Implementations§
Source§impl Clone for PipelineCacheKey
impl Clone for PipelineCacheKey
Source§fn clone(&self) -> PipelineCacheKey
fn clone(&self) -> PipelineCacheKey
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 moreSource§impl Debug for PipelineCacheKey
impl Debug for PipelineCacheKey
Source§impl Hash for PipelineCacheKey
impl Hash for PipelineCacheKey
Source§impl PartialEq for PipelineCacheKey
impl PartialEq for PipelineCacheKey
Source§fn eq(&self, other: &PipelineCacheKey) -> bool
fn eq(&self, other: &PipelineCacheKey) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PipelineCacheKey
impl StructuralPartialEq for PipelineCacheKey
Auto Trait Implementations§
impl Freeze for PipelineCacheKey
impl RefUnwindSafe for PipelineCacheKey
impl Send for PipelineCacheKey
impl Sync for PipelineCacheKey
impl Unpin for PipelineCacheKey
impl UnsafeUnpin for PipelineCacheKey
impl UnwindSafe for PipelineCacheKey
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more