pub struct MSL;
Expand description
Shader compiler target for MSL.
Trait Implementations§
Source§impl FromCompilation<SpirvCompilation, Naga> for MSL
Available on non-crate feature stable
only.
impl FromCompilation<SpirvCompilation, Naga> for MSL
Available on non-crate feature
stable
only.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, SpirvCross> for MSL
Available on non-crate feature stable
only.
impl FromCompilation<SpirvCompilation, SpirvCross> for MSL
Available on non-crate feature
stable
only.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.
Auto Trait Implementations§
impl Freeze for MSL
impl RefUnwindSafe for MSL
impl Send for MSL
impl Sync for MSL
impl Unpin for MSL
impl UnwindSafe for MSL
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<'a, I, R, E>(
passes: impl IntoIterator<Item = PassResource>,
textures: impl Iterator<Item = &'a TextureMeta>,
) -> 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<'a, I, R, E>(
passes: impl IntoIterator<Item = PassResource>,
textures: impl Iterator<Item = &'a TextureMeta>,
) -> 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.
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