Struct librashader_reflect::reflect::cross::SpirvCross
source · 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
§type Context = CrossGlslContext
type Context = CrossGlslContext
Additional context returned by the compiler after compilation.
§type Output = impl CompileShader<<GLSL as FromCompilation<SpirvCompilation, SpirvCross>>::Target, Options = Version, Context = <GLSL as FromCompilation<SpirvCompilation, SpirvCross>>::Context> + ReflectShader
type Output = impl CompileShader<<GLSL as FromCompilation<SpirvCompilation, SpirvCross>>::Target, Options = Version, Context = <GLSL as FromCompilation<SpirvCompilation, SpirvCross>>::Context> + ReflectShader
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
§type Options = Option<ShaderModel>
type Options = Option<ShaderModel>
Options provided to the compiler.
§type Context = CrossHlslContext
type Context = CrossHlslContext
Additional context returned by the compiler after compilation.
§type Output = impl CompileShader<<HLSL as FromCompilation<SpirvCompilation, SpirvCross>>::Target, Options = <HLSL as FromCompilation<SpirvCompilation, SpirvCross>>::Options, Context = <HLSL as FromCompilation<SpirvCompilation, SpirvCross>>::Context> + ReflectShader
type Output = impl CompileShader<<HLSL as FromCompilation<SpirvCompilation, SpirvCross>>::Target, Options = <HLSL as FromCompilation<SpirvCompilation, SpirvCross>>::Options, Context = <HLSL as FromCompilation<SpirvCompilation, SpirvCross>>::Context> + ReflectShader
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
§type Context = CrossMslContext
type Context = CrossMslContext
Additional context returned by the compiler after compilation.
§type Output = impl CompileShader<<MSL as FromCompilation<SpirvCompilation, SpirvCross>>::Target, Options = <MSL as FromCompilation<SpirvCompilation, SpirvCross>>::Options, Context = <MSL as FromCompilation<SpirvCompilation, SpirvCross>>::Context> + ReflectShader
type Output = impl CompileShader<<MSL as FromCompilation<SpirvCompilation, SpirvCross>>::Target, Options = <MSL as FromCompilation<SpirvCompilation, SpirvCross>>::Options, Context = <MSL as FromCompilation<SpirvCompilation, SpirvCross>>::Context> + ReflectShader
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
§type Output = impl CompileShader<<SPIRV as FromCompilation<SpirvCompilation, SpirvCross>>::Target, Options = <SPIRV as FromCompilation<SpirvCompilation, SpirvCross>>::Options, Context = <SPIRV as FromCompilation<SpirvCompilation, SpirvCross>>::Context> + ReflectShader
type Output = impl CompileShader<<SPIRV as FromCompilation<SpirvCompilation, SpirvCross>>::Target, Options = <SPIRV as FromCompilation<SpirvCompilation, SpirvCross>>::Options, Context = <SPIRV as FromCompilation<SpirvCompilation, SpirvCross>>::Context> + ReflectShader
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