Struct librashader_cache::CachedCompilation 
source · pub struct CachedCompilation<T> { /* private fields */ }Trait Implementations§
source§impl<T> FromCompilation<CachedCompilation<SpirvCompilation>, T> for GLSL
 
impl<T> FromCompilation<CachedCompilation<SpirvCompilation>, T> for GLSL
§type Target = <GLSL as FromCompilation<SpirvCompilation, T>>::Target
 
type Target = <GLSL as FromCompilation<SpirvCompilation, T>>::Target
The target that the transformed object is expected to compile for.
§type Options = <GLSL as FromCompilation<SpirvCompilation, T>>::Options
 
type Options = <GLSL as FromCompilation<SpirvCompilation, T>>::Options
Options provided to the compiler.
§type Context = <GLSL as FromCompilation<SpirvCompilation, T>>::Context
 
type Context = <GLSL as FromCompilation<SpirvCompilation, T>>::Context
Additional context returned by the compiler after compilation.
§type Output = <GLSL as FromCompilation<SpirvCompilation, T>>::Output
 
type Output = <GLSL as FromCompilation<SpirvCompilation, T>>::Output
The output type after conversion.
source§fn from_compilation(
    compile: CachedCompilation<SpirvCompilation>
) -> Result<CompilerBackend<Self::Output>, ShaderReflectError>
 
fn from_compilation( compile: CachedCompilation<SpirvCompilation> ) -> Result<CompilerBackend<Self::Output>, ShaderReflectError>
Tries to convert the input object into an object ready for compilation.
source§impl<T> FromCompilation<CachedCompilation<SpirvCompilation>, T> for HLSL
 
impl<T> FromCompilation<CachedCompilation<SpirvCompilation>, T> for HLSL
§type Target = <HLSL as FromCompilation<SpirvCompilation, T>>::Target
 
type Target = <HLSL as FromCompilation<SpirvCompilation, T>>::Target
The target that the transformed object is expected to compile for.
§type Options = <HLSL as FromCompilation<SpirvCompilation, T>>::Options
 
type Options = <HLSL as FromCompilation<SpirvCompilation, T>>::Options
Options provided to the compiler.
§type Context = <HLSL as FromCompilation<SpirvCompilation, T>>::Context
 
type Context = <HLSL as FromCompilation<SpirvCompilation, T>>::Context
Additional context returned by the compiler after compilation.
§type Output = <HLSL as FromCompilation<SpirvCompilation, T>>::Output
 
type Output = <HLSL as FromCompilation<SpirvCompilation, T>>::Output
The output type after conversion.
source§fn from_compilation(
    compile: CachedCompilation<SpirvCompilation>
) -> Result<CompilerBackend<Self::Output>, ShaderReflectError>
 
fn from_compilation( compile: CachedCompilation<SpirvCompilation> ) -> Result<CompilerBackend<Self::Output>, ShaderReflectError>
Tries to convert the input object into an object ready for compilation.
source§impl<T> FromCompilation<CachedCompilation<SpirvCompilation>, T> for SPIRV
 
impl<T> FromCompilation<CachedCompilation<SpirvCompilation>, T> for SPIRV
§type Target = <SPIRV as FromCompilation<SpirvCompilation, T>>::Target
 
type Target = <SPIRV as FromCompilation<SpirvCompilation, T>>::Target
The target that the transformed object is expected to compile for.
§type Options = <SPIRV as FromCompilation<SpirvCompilation, T>>::Options
 
type Options = <SPIRV as FromCompilation<SpirvCompilation, T>>::Options
Options provided to the compiler.
§type Context = <SPIRV as FromCompilation<SpirvCompilation, T>>::Context
 
type Context = <SPIRV as FromCompilation<SpirvCompilation, T>>::Context
Additional context returned by the compiler after compilation.
§type Output = <SPIRV as FromCompilation<SpirvCompilation, T>>::Output
 
type Output = <SPIRV as FromCompilation<SpirvCompilation, T>>::Output
The output type after conversion.
source§fn from_compilation(
    compile: CachedCompilation<SpirvCompilation>
) -> Result<CompilerBackend<Self::Output>, ShaderReflectError>
 
fn from_compilation( compile: CachedCompilation<SpirvCompilation> ) -> Result<CompilerBackend<Self::Output>, ShaderReflectError>
Tries to convert the input object into an object ready for compilation.
source§impl<T: ShaderReflectObject + for<'de> Deserialize<'de> + Serialize + Clone> ShaderInputCompiler<CachedCompilation<T>> for Glslangwhere
    Glslang: ShaderInputCompiler<T>,
 
impl<T: ShaderReflectObject + for<'de> Deserialize<'de> + Serialize + Clone> ShaderInputCompiler<CachedCompilation<T>> for Glslangwhere
    Glslang: ShaderInputCompiler<T>,
source§fn compile(
    source: &ShaderSource
) -> Result<CachedCompilation<T>, ShaderCompileError>
 
fn compile( source: &ShaderSource ) -> Result<CachedCompilation<T>, ShaderCompileError>
Compile the input shader source file into a compilation unit.
source§impl<T: ShaderReflectObject> ShaderReflectObject for CachedCompilation<T>
 
impl<T: ShaderReflectObject> ShaderReflectObject for CachedCompilation<T>
§type Compiler = <T as ShaderReflectObject>::Compiler
 
type Compiler = <T as ShaderReflectObject>::Compiler
The compiler that produces this reflect object.
Auto Trait Implementations§
impl<T> RefUnwindSafe for CachedCompilation<T>where
    T: RefUnwindSafe,
impl<T> Send for CachedCompilation<T>where
    T: Send,
impl<T> Sync for CachedCompilation<T>where
    T: Sync,
impl<T> Unpin for CachedCompilation<T>where
    T: Unpin,
impl<T> UnwindSafe for CachedCompilation<T>where
    T: UnwindSafe,
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