pub struct LocalBuffer<T> { /* private fields */ }
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.
Implementations§
Trait Implementations§
Source§impl<T: Debug> Debug for LocalBuffer<T>
impl<T: Debug> Debug for LocalBuffer<T>
Source§impl<T> KernelArgument for LocalBuffer<T>
impl<T> KernelArgument for LocalBuffer<T>
Source§impl<T> KernelArgument for LocalBuffer<T>
impl<T> KernelArgument for LocalBuffer<T>
Auto Trait Implementations§
impl<T> Freeze for LocalBuffer<T>
impl<T> RefUnwindSafe for LocalBuffer<T>where
T: RefUnwindSafe,
impl<T> Send for LocalBuffer<T>where
T: Send,
impl<T> Sync for LocalBuffer<T>where
T: Sync,
impl<T> Unpin for LocalBuffer<T>where
T: Unpin,
impl<T> UnwindSafe for LocalBuffer<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more