Libtorch's Interoperability with OpenGL/Cuda

I have difficulties to copy the data from at::Tensor(to::kCuda) to an OpenGL Texture directly on the
GPU. Is there a way to avoid going to the Cpu to fill OpenGL texture directly from the GPU with a at::Tensor(to::kCuda) ?
Thanks.

1 Like