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§
Sourcefn erased_param_ptrs(&self) -> Vec<*mut c_void>
fn erased_param_ptrs(&self) -> Vec<*mut c_void>
Convert arguments to void pointers.
Implementors§
impl<T: KernelArgs> ErasedKernelArgs for T
Blanket implementation: every KernelArgs is also ErasedKernelArgs.
§Safety
Delegates to the underlying KernelArgs::as_param_ptrs.