pub struct WgpuCompiler;Expand description
WebGPU kernel compiler
Implementations§
Source§impl WgpuCompiler
impl WgpuCompiler
Trait Implementations§
Source§impl Debug for WgpuCompiler
impl Debug for WgpuCompiler
Source§impl Default for WgpuCompiler
impl Default for WgpuCompiler
Source§impl KernelCompiler for WgpuCompiler
impl KernelCompiler for WgpuCompiler
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 WgpuCompiler
impl RefUnwindSafe for WgpuCompiler
impl Send for WgpuCompiler
impl Sync for WgpuCompiler
impl Unpin for WgpuCompiler
impl UnwindSafe for WgpuCompiler
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