pub enum CacheEntryKind {
Pipeline,
Shader,
Payload,
Expansion,
Thumbnail,
}Expand description
Which producer an entry belongs to.
The discriminant is part of the segment bytes and
CACHE_SEGMENT_VERSION guards them, so a new producer takes the next
value rather than reshaping the index.
Variants§
Pipeline
A driver pipeline blob: a serialized VkPipelineCache or a D3D12
pipeline library, machine code for the one adapter its key names.
Shader
A compiled shader binary (backend IR: DXBC, SPIR-V, a metallib), keyed by a digest of everything the compile was a function of.
Payload
A compiled asset payload, keyed by a digest of the args and source files the compile read.
Expansion
The asset entries a scene import expands to, keyed by a digest of the source file and the import options.
Thumbnail
A baked asset preview: a PNG keyed by a digest of what it depicts, plus the one entry holding the asset-name-to-key map over the whole set.
Trait Implementations§
Source§impl Clone for CacheEntryKind
impl Clone for CacheEntryKind
Source§fn clone(&self) -> CacheEntryKind
fn clone(&self) -> CacheEntryKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for CacheEntryKind
Source§impl Debug for CacheEntryKind
impl Debug for CacheEntryKind
Source§impl<'de> Deserialize<'de> for CacheEntryKind
impl<'de> Deserialize<'de> for CacheEntryKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for CacheEntryKind
Source§impl Hash for CacheEntryKind
impl Hash for CacheEntryKind
Source§impl PartialEq for CacheEntryKind
impl PartialEq for CacheEntryKind
Source§impl Serialize for CacheEntryKind
impl Serialize for CacheEntryKind
impl StructuralPartialEq for CacheEntryKind
Auto Trait Implementations§
impl Freeze for CacheEntryKind
impl RefUnwindSafe for CacheEntryKind
impl Send for CacheEntryKind
impl Sync for CacheEntryKind
impl Unpin for CacheEntryKind
impl UnsafeUnpin for CacheEntryKind
impl UnwindSafe for CacheEntryKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.