pub fn to_device_or_nullptr_on<T>( h2d: &[T], device_ctx: &GpuDeviceCtx, ) -> Result<DeviceBuffer<T>, MemCopyError>