pub struct SpirvCross;Expand description
Reflect shaders under SPIRV-Cross semantics.
SPIRV-Cross supports GLSL, HLSL, SPIR-V, and MSL targets.
Trait Implementations§
source§impl Debug for SpirvCross
impl Debug for SpirvCross
source§impl FromCompilation<SpirvCompilation, SpirvCross> for GLSL
impl FromCompilation<SpirvCompilation, SpirvCross> for GLSL
source§type Options = GlslVersion
type Options = GlslVersion
Options provided to the compiler.
source§type Context = CrossGlslContext
type Context = CrossGlslContext
Additional context returned by the compiler after compilation.
source§type Output = impl CompileReflectShader<<GLSL as FromCompilation<SpirvCompilation, SpirvCross>>::Target, SpirvCompilation, SpirvCross>
type Output = impl CompileReflectShader<<GLSL as FromCompilation<SpirvCompilation, SpirvCross>>::Target, SpirvCompilation, SpirvCross>
The output type after conversion.
source§fn from_compilation(
compile: SpirvCompilation,
) -> Result<CompilerBackend<Self::Output>, ShaderReflectError>
fn from_compilation( compile: SpirvCompilation, ) -> Result<CompilerBackend<Self::Output>, ShaderReflectError>
Tries to convert the input object into an object ready for compilation.
source§impl FromCompilation<SpirvCompilation, SpirvCross> for HLSL
impl FromCompilation<SpirvCompilation, SpirvCross> for HLSL
source§type Options = Option<HlslShaderModel>
type Options = Option<HlslShaderModel>
Options provided to the compiler.
source§type Context = CrossHlslContext
type Context = CrossHlslContext
Additional context returned by the compiler after compilation.
source§type Output = impl CompileReflectShader<<HLSL as FromCompilation<SpirvCompilation, SpirvCross>>::Target, SpirvCompilation, SpirvCross>
type Output = impl CompileReflectShader<<HLSL as FromCompilation<SpirvCompilation, SpirvCross>>::Target, SpirvCompilation, SpirvCross>
The output type after conversion.
source§fn from_compilation(
compile: SpirvCompilation,
) -> Result<CompilerBackend<Self::Output>, ShaderReflectError>
fn from_compilation( compile: SpirvCompilation, ) -> Result<CompilerBackend<Self::Output>, ShaderReflectError>
Tries to convert the input object into an object ready for compilation.
source§impl FromCompilation<SpirvCompilation, SpirvCross> for MSL
impl FromCompilation<SpirvCompilation, SpirvCross> for MSL
source§type Options = Option<MslVersion>
type Options = Option<MslVersion>
Options provided to the compiler.
source§type Context = CrossMslContext
type Context = CrossMslContext
Additional context returned by the compiler after compilation.
source§type Output = impl CompileReflectShader<<MSL as FromCompilation<SpirvCompilation, SpirvCross>>::Target, SpirvCompilation, SpirvCross>
type Output = impl CompileReflectShader<<MSL as FromCompilation<SpirvCompilation, SpirvCross>>::Target, SpirvCompilation, SpirvCross>
The output type after conversion.
source§fn from_compilation(
compile: SpirvCompilation,
) -> Result<CompilerBackend<Self::Output>, ShaderReflectError>
fn from_compilation( compile: SpirvCompilation, ) -> Result<CompilerBackend<Self::Output>, ShaderReflectError>
Tries to convert the input object into an object ready for compilation.
source§impl FromCompilation<SpirvCompilation, SpirvCross> for SPIRV
impl FromCompilation<SpirvCompilation, SpirvCross> for SPIRV
source§type Output = impl CompileReflectShader<<SPIRV as FromCompilation<SpirvCompilation, SpirvCross>>::Target, SpirvCompilation, SpirvCross>
type Output = impl CompileReflectShader<<SPIRV as FromCompilation<SpirvCompilation, SpirvCross>>::Target, SpirvCompilation, SpirvCross>
The output type after conversion.
source§fn from_compilation(
compile: SpirvCompilation,
) -> Result<CompilerBackend<Self::Output>, ShaderReflectError>
fn from_compilation( compile: SpirvCompilation, ) -> Result<CompilerBackend<Self::Output>, ShaderReflectError>
Tries to convert the input object into an object ready for compilation.
Auto Trait Implementations§
impl Freeze for SpirvCross
impl RefUnwindSafe for SpirvCross
impl Send for SpirvCross
impl Sync for SpirvCross
impl Unpin for SpirvCross
impl UnwindSafe for SpirvCross
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