Skip to main content

ErasedKernelArgs

Trait ErasedKernelArgs 

Source
pub unsafe trait ErasedKernelArgs {
    // Required method
    fn erased_param_ptrs(&self) -> Vec<*mut c_void>;
}
Expand description

Object-safe trait for kernel arguments, enabling heterogeneous argument lists in multi_launch_async.

§Safety

Implementors must ensure the returned pointers are valid for the duration of the kernel launch call.

Required Methods§

Source

fn erased_param_ptrs(&self) -> Vec<*mut c_void>

Convert arguments to void pointers.

Implementors§

Source§

impl<T: KernelArgs> ErasedKernelArgs for T

Blanket implementation: every KernelArgs is also ErasedKernelArgs.

§Safety

Delegates to the underlying KernelArgs::as_param_ptrs.