Skip to main content

Module kernels

Module kernels 

Source
Expand description

Typed kernel descriptors, one module per compute operation.

Each submodule defines:

  • A zero-sized marker struct (e.g. CompareScore)
  • Typed Input and Output structs
  • impl Kernel for <Marker> binding them together

The actual dispatch logic (upload / launch / download) lives in the per-backend launch/ modules; these files only carry types.

Re-exports§

pub use em_reduce::EmReduce;
pub use hello_backend::HelloBackend;

Modules§

em_reduce
hello_backend
HelloBackend kernel, trivial diagnostic that proves a GPU kernel/shader was actually invoked on the device.