pub trait GpuBuffer<T: DeviceCopy>: Sealed {
// Required methods
fn as_device_ptr(&self) -> DevicePointer<T>;
fn len(&self) -> usize;
}Expand description
A trait describing a generic buffer that can be accessed from the GPU. This could be either a UnifiedBuffer
or a regular DeviceBuffer.