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.
Naga supports WGSL, SPIR-V, and MSL targets.
Trait Implementations§
Source§impl FromCompilation<SpirvCompilation, Naga> for MSL
impl FromCompilation<SpirvCompilation, Naga> for MSL
Source§type Options = Option<MslVersion>
type Options = Option<MslVersion>
Options provided to the compiler.
Source§type Context = NagaMslContext
type Context = NagaMslContext
Additional context returned by the compiler after compilation.
Source§type Output = impl CompileReflectShader<<MSL as FromCompilation<SpirvCompilation, Naga>>::Target, SpirvCompilation, Naga>
type Output = impl CompileReflectShader<<MSL as FromCompilation<SpirvCompilation, Naga>>::Target, SpirvCompilation, Naga>
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
Source§type Options = NagaSpirvOptions
type Options = NagaSpirvOptions
Options provided to the compiler.
Source§type Context = NagaSpirvContext
type Context = NagaSpirvContext
Additional context returned by the compiler after compilation.
Source§type Output = impl CompileReflectShader<<SPIRV as FromCompilation<SpirvCompilation, Naga>>::Target, SpirvCompilation, Naga>
type Output = impl CompileReflectShader<<SPIRV as FromCompilation<SpirvCompilation, Naga>>::Target, SpirvCompilation, Naga>
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
Source§type Options = NagaLoweringOptions
type Options = NagaLoweringOptions
Options provided to the compiler.
Source§type Context = NagaWgslContext
type Context = NagaWgslContext
Additional context returned by the compiler after compilation.
Source§type Output = impl CompileReflectShader<<WGSL as FromCompilation<SpirvCompilation, Naga>>::Target, SpirvCompilation, Naga>
type Output = impl CompileReflectShader<<WGSL as FromCompilation<SpirvCompilation, Naga>>::Target, SpirvCompilation, Naga>
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 Naga
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
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