DevicePtr<cuda::Transformation3D> Transformation3D::CopyToGpu(DevicePtr<cuda::Transformation3D> const gpu_ptr) const { gpu_ptr.Construct(fTranslation[0], fTranslation[1], fTranslation[2], fRotation[0], fRotation[1], fRotation[2], fRotation[3], fRotation[4], fRotation[5], fRotation[6], fRotation[7], fRotation[8]); CudaAssertError(); return gpu_ptr; }
DevicePtr<cuda::LogicalVolume> LogicalVolume::CopyToGpu( DevicePtr<cuda::VUnplacedVolume> const unplaced_vol, DevicePtr<cuda::Vector<CudaDaughter_t>> daughters, DevicePtr<cuda::LogicalVolume> const gpu_ptr) const { gpu_ptr.Construct( unplaced_vol, daughters ); CudaAssertError(); return gpu_ptr; }