Struct librashader_reflect::back::targets::SPIRV
source · pub struct SPIRV;Expand description
Shader compiler target for SPIR-V.
Trait Implementations§
source§impl FromCompilation<SpirvCompilation, Naga> for SPIRV
impl FromCompilation<SpirvCompilation, Naga> for SPIRV
§type Options = NagaSpirvOptions
type Options = NagaSpirvOptions
Options provided to the compiler.
§type Context = NagaSpirvContext
type Context = NagaSpirvContext
Additional context returned by the compiler after compilation.
§type Output = impl CompileShader<<SPIRV as FromCompilation<SpirvCompilation, Naga>>::Target, Options = <SPIRV as FromCompilation<SpirvCompilation, Naga>>::Options, Context = <SPIRV as FromCompilation<SpirvCompilation, Naga>>::Context> + ReflectShader
type Output = impl CompileShader<<SPIRV as FromCompilation<SpirvCompilation, Naga>>::Target, Options = <SPIRV as FromCompilation<SpirvCompilation, Naga>>::Options, Context = <SPIRV as FromCompilation<SpirvCompilation, Naga>>::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 RefUnwindSafe for SPIRV
impl Send for SPIRV
impl Sync for SPIRV
impl Unpin for SPIRV
impl UnwindSafe for SPIRV
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> CompilePresetTarget for Twhere
T: OutputTarget,
impl<T> CompilePresetTarget for Twhere
T: OutputTarget,
source§fn compile_preset_passes<I, R, E>(
passes: Vec<ShaderPassConfig>,
textures: &[TextureConfig]
) -> Result<(Vec<ShaderPassArtifact<<Self as FromCompilation<I, R>>::Output>>, ShaderSemantics), E>where
I: ShaderReflectObject,
Self: Sized + FromCompilation<I, R>,
I::Compiler: ShaderInputCompiler<I>,
E: From<PreprocessError> + From<ShaderReflectError> + From<ShaderCompileError>,
fn compile_preset_passes<I, R, E>(
passes: Vec<ShaderPassConfig>,
textures: &[TextureConfig]
) -> Result<(Vec<ShaderPassArtifact<<Self as FromCompilation<I, R>>::Output>>, ShaderSemantics), E>where
I: ShaderReflectObject,
Self: Sized + FromCompilation<I, R>,
I::Compiler: ShaderInputCompiler<I>,
E: From<PreprocessError> + From<ShaderReflectError> + From<ShaderCompileError>,
Compile passes of a shader preset given the applicable
shader output target, compilation type, and resulting error.