Trait CubeTask

Source
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.

Required Methods§

Source

fn compile( &self, compiler: &mut C, compilation_options: &C::CompilationOptions, mode: ExecutionMode, ) -> CompiledKernel<C>

Trait Implementations§

Source§

impl<C: Compiler> KernelMetadata for Box<dyn CubeTask<C>>

Source§

fn id(&self) -> KernelId

Identifier for the kernel, used for caching kernel compilation.
Source§

fn name(&self) -> &'static str

Name of the kernel for debugging.

Implementors§