pub trait DynamicKernelSource: Send + Sync {
    // Required methods
    fn source(&self) -> SourceTemplate;
    fn id(&self) -> String;
}
Expand description

Dynamic wgpu kernel to create a source template.

Required Methods§

source

fn source(&self) -> SourceTemplate

Source template for the kernel.

source

fn id(&self) -> String

Identifier for the kernel, used for caching kernel compilation.

Implementors§

source§

impl<K: StaticKernelSource, E: WgpuElement, I: WgpuElement> DynamicKernelSource for DynamicKernelSettings<K, E, I>