#[repr(u8)]pub enum ShaderCompileState {
Pending = 0,
Compiling = 1,
CompiledHardware = 2,
LoadedFromBinaryArchive = 3,
ValidatedFallback = 4,
Failed = 5,
}Expand description
Lifecycle compilation status of a precompiled GPU shader pipeline program.
Variants§
Pending = 0
Shader program has not yet been precompiled.
Compiling = 1
Shader program is currently being compiled on a background worker thread.
CompiledHardware = 2
Compiled natively into a resident hardware GPU pipeline state object (MTLRenderPipelineState / etc.).
LoadedFromBinaryArchive = 3
Loaded directly from a persistent disk-backed binary shader archive (MTLBinaryArchive), skipping source compilation.
ValidatedFallback = 4
Validated source integrity, FNV-1a cache key, and CPU optical LUT warm-up on headless or non-Apple fallback hosts.
Failed = 5
Hardware shader compilation failed and triggered safe runtime fallback.
Implementations§
Trait Implementations§
Source§impl Clone for ShaderCompileState
impl Clone for ShaderCompileState
impl Copy for ShaderCompileState
Source§impl Debug for ShaderCompileState
impl Debug for ShaderCompileState
Source§impl Default for ShaderCompileState
impl Default for ShaderCompileState
impl Eq for ShaderCompileState
Source§impl Hash for ShaderCompileState
impl Hash for ShaderCompileState
Source§impl Ord for ShaderCompileState
impl Ord for ShaderCompileState
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ShaderCompileState
impl PartialEq for ShaderCompileState
Source§impl PartialOrd for ShaderCompileState
impl PartialOrd for ShaderCompileState
impl StructuralPartialEq for ShaderCompileState
Auto Trait Implementations§
impl Forget for ShaderCompileState
impl Freeze for ShaderCompileState
impl Move for ShaderCompileState
impl RefUnwindSafe for ShaderCompileState
impl Send for ShaderCompileState
impl Sync for ShaderCompileState
impl Unpin for ShaderCompileState
impl UnsafeUnpin for ShaderCompileState
impl UnwindSafe for ShaderCompileState
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