Trait rust_gpu_tools::cuda::KernelArgument
source · pub trait KernelArgument {
// Required method
fn as_c_void(&self) -> *mut c_void;
// Provided method
fn shared_mem(&self) -> u32 { ... }
}
Expand description
Abstraction for kernel arguments.
Kernel arguments implement this trait, so that they can be converted it into the correct pointers needed by the actual kernel call.
Required Methods§
Provided Methods§
Returns the shared memory size. This is usally 0, except for LocalBuffer
s. This
informations is used to allocate the memory correctly.