pub trait CubeTask<C>:
KernelMetadata
+ Send
+ Syncwhere
C: Compiler,{
// Required method
fn compile(
&self,
compiler: &mut C,
compilation_options: &<C as Compiler>::CompilationOptions,
mode: ExecutionMode,
) -> Result<CompiledKernel<C>, CompilationError>;
}Expand description
Kernel trait with the ComputeShader that will be compiled and cached based on the provided id.
Required Methods§
Sourcefn 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