pub trait CubeTask<C: Compiler>:
    KernelMetadata
    + Send
    + Sync {
    // Required method
    fn compile(
        &self,
        compiler: &mut C,
        compilation_options: &C::CompilationOptions,
        mode: ExecutionMode,
    ) -> CompiledKernel<C>;
}Expand description
Kernel trait with the ComputeShader that will be compiled and cached based on the provided id.