Struct rust_gpu_tools::LocalBuffer [−][src]
pub struct LocalBuffer<T> { /* fields omitted */ }
Expand description
A buffer on the GPU.
The concept of a local buffer is from OpenCL. In CUDA you don’t allocate a buffer directly via API call. Instead you pass in the amount of shared memory that should be used.
There can be at most a single local buffer per kernel. On CUDA a null pointer will be passed in, instead of an actual value. The memory that should get allocated is then passed into the kernel call automatically.