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
Source§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.
Source§type Options = <GLSL as FromCompilation<SpirvCompilation, T>>::Options
type Options = <GLSL as FromCompilation<SpirvCompilation, T>>::Options
Options provided to the compiler.
Source§type Context = <GLSL as FromCompilation<SpirvCompilation, T>>::Context
type Context = <GLSL as FromCompilation<SpirvCompilation, T>>::Context
Additional context returned by the compiler after compilation.
Source§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
Source§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.
Source§type Options = <HLSL as FromCompilation<SpirvCompilation, T>>::Options
type Options = <HLSL as FromCompilation<SpirvCompilation, T>>::Options
Options provided to the compiler.
Source§type Context = <HLSL as FromCompilation<SpirvCompilation, T>>::Context
type Context = <HLSL as FromCompilation<SpirvCompilation, T>>::Context
Additional context returned by the compiler after compilation.
Source§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
Source§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.
Source§type Options = <SPIRV as FromCompilation<SpirvCompilation, T>>::Options
type Options = <SPIRV as FromCompilation<SpirvCompilation, T>>::Options
Options provided to the compiler.
Source§type Context = <SPIRV as FromCompilation<SpirvCompilation, T>>::Context
type Context = <SPIRV as FromCompilation<SpirvCompilation, T>>::Context
Additional context returned by the compiler after compilation.
Source§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>
Source§type Compiler = <T as ShaderReflectObject>::Compiler
type Compiler = <T as ShaderReflectObject>::Compiler
The compiler that produces this reflect object.
Auto Trait Implementations§
impl<T> Freeze for CachedCompilation<T>where
T: Freeze,
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
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