pub trait DeviceBuffer:
'static
+ Send
+ Sync
+ Debug
+ DynEq
+ DynHash {
// Required methods
fn len(&self) -> usize;
fn to_host(self: Arc<Self>) -> VortexResult<ByteBuffer>;
// Provided method
fn is_empty(&self) -> bool { ... }
}Expand description
A buffer that is stored on a device (e.g. GPU).
Required Methods§
Sourcefn to_host(self: Arc<Self>) -> VortexResult<ByteBuffer>
fn to_host(self: Arc<Self>) -> VortexResult<ByteBuffer>
Attempts to copy the device buffer to a host ByteBuffer.