pub trait GpuSendable {
type GpuRepr;
// Provided methods
fn upload(self, _ctx: &GpuContextHandle) -> Result<Self::GpuRepr, GpuError>
where Self: Sized { ... }
fn download(
_gpu: &Self::GpuRepr,
_ctx: &GpuContextHandle,
) -> Result<Self, GpuError>
where Self: Sized { ... }
}Expand description
Opt-in bridge to allow CPU types to participate in GPU segments. Users implement this for their own types to describe how to upload/download.