pub struct KernelTask<C, K>where
C: Compiler,
K: CubeKernel,{ /* private fields */ }Expand description
Wraps a kernel to allow it be compiled.
Implementations§
Source§impl<C, K> KernelTask<C, K>where
C: Compiler,
K: CubeKernel,
impl<C, K> KernelTask<C, K>where
C: Compiler,
K: CubeKernel,
Sourcepub fn new(kernel_definition: K) -> KernelTask<C, K>
pub fn new(kernel_definition: K) -> KernelTask<C, K>
Create a new kernel task
Trait Implementations§
Source§impl<C, K> CubeTask<C> for KernelTask<C, K>where
C: Compiler,
K: CubeKernel,
impl<C, K> CubeTask<C> for KernelTask<C, K>where
C: Compiler,
K: CubeKernel,
Source§fn compile(
&self,
compiler: &mut C,
compilation_options: &<C as Compiler>::CompilationOptions,
mode: ExecutionMode,
) -> Result<CompiledKernel<C>, CompilationError>
fn compile( &self, compiler: &mut C, compilation_options: &<C as Compiler>::CompilationOptions, mode: ExecutionMode, ) -> Result<CompiledKernel<C>, CompilationError>
Compile a kernel and return the compiled form with an optional non-text representation
Source§impl<C, K> KernelMetadata for KernelTask<C, K>where
C: Compiler,
K: CubeKernel,
impl<C, K> KernelMetadata for KernelTask<C, K>where
C: Compiler,
K: CubeKernel,
Auto Trait Implementations§
impl<C, K> Freeze for KernelTask<C, K>where
K: Freeze,
impl<C, K> RefUnwindSafe for KernelTask<C, K>where
K: RefUnwindSafe,
C: RefUnwindSafe,
impl<C, K> Send for KernelTask<C, K>
impl<C, K> Sync for KernelTask<C, K>
impl<C, K> Unpin for KernelTask<C, K>
impl<C, K> UnwindSafe for KernelTask<C, K>where
K: UnwindSafe,
C: UnwindSafe,
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