pub struct MetalCompiler;Expand description
Metal kernel compiler
Implementations§
Source§impl MetalCompiler
impl MetalCompiler
Trait Implementations§
Source§impl Debug for MetalCompiler
impl Debug for MetalCompiler
Source§impl Default for MetalCompiler
impl Default for MetalCompiler
Source§impl KernelCompiler for MetalCompiler
impl KernelCompiler for MetalCompiler
Source§fn compile_kernel(
&self,
source: &str,
_options: &CompilationOptions,
) -> Result<CompiledKernel, KernelError>
fn compile_kernel( &self, source: &str, _options: &CompilationOptions, ) -> Result<CompiledKernel, KernelError>
Compile kernel source code for the target backend
Source§fn backend_type(&self) -> GpuBackend
fn backend_type(&self) -> GpuBackend
Get backend type
Source§fn supports_feature(&self, feature: KernelFeature) -> bool
fn supports_feature(&self, feature: KernelFeature) -> bool
Check if a feature is supported
Source§fn get_capabilities(&self) -> CompilerCapabilities
fn get_capabilities(&self) -> CompilerCapabilities
Get compilation capabilities
Auto Trait Implementations§
impl Freeze for MetalCompiler
impl RefUnwindSafe for MetalCompiler
impl Send for MetalCompiler
impl Sync for MetalCompiler
impl Unpin for MetalCompiler
impl UnsafeUnpin for MetalCompiler
impl UnwindSafe for MetalCompiler
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