Struct librashader_cache::CachedCompilation

source ·
pub struct CachedCompilation<T> { /* private fields */ }

Trait Implementations§

source§

impl<T> FromCompilation<CachedCompilation<SpirvCompilation>, T> for GLSL

source§

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

Options provided to the compiler.
source§

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

The output type after conversion.
source§

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

source§

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

Options provided to the compiler.
source§

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

The output type after conversion.
source§

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

source§

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

Options provided to the compiler.
source§

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

The output type after conversion.
source§

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 Glslang

source§

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>

source§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V