Struct librashader_reflect::reflect::naga::Naga
source · pub struct Naga;Expand description
Reflect under Naga semantics
The Naga reflector will lower combined image samplers to split, with the same bind point on descriptor group 1.
Trait Implementations§
source§impl FromCompilation<SpirvCompilation, Naga> for MSL
impl FromCompilation<SpirvCompilation, Naga> for MSL
§type Context = NagaMslContext
type Context = NagaMslContext
Additional context returned by the compiler after compilation.
§type Output = impl CompileShader<<MSL as FromCompilation<SpirvCompilation, Naga>>::Target, Options = <MSL as FromCompilation<SpirvCompilation, Naga>>::Options, Context = <MSL as FromCompilation<SpirvCompilation, Naga>>::Context> + ReflectShader
type Output = impl CompileShader<<MSL as FromCompilation<SpirvCompilation, Naga>>::Target, Options = <MSL as FromCompilation<SpirvCompilation, Naga>>::Options, Context = <MSL 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, 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, Naga> for WGSL
impl FromCompilation<SpirvCompilation, Naga> for WGSL
§type Options = NagaLoweringOptions
type Options = NagaLoweringOptions
Options provided to the compiler.
§type Context = NagaWgslContext
type Context = NagaWgslContext
Additional context returned by the compiler after compilation.
§type Output = impl CompileShader<<WGSL as FromCompilation<SpirvCompilation, Naga>>::Target, Options = <WGSL as FromCompilation<SpirvCompilation, Naga>>::Options, Context = <WGSL as FromCompilation<SpirvCompilation, Naga>>::Context> + ReflectShader
type Output = impl CompileShader<<WGSL as FromCompilation<SpirvCompilation, Naga>>::Target, Options = <WGSL as FromCompilation<SpirvCompilation, Naga>>::Options, Context = <WGSL 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.
Auto Trait Implementations§
impl RefUnwindSafe for Naga
impl Send for Naga
impl Sync for Naga
impl Unpin for Naga
impl UnwindSafe for Naga
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