Relative Content

Tag Archive for c++openglcudalibtorch

Weird behavior from CUDA (Libtorch) and OpenGL interop

I am trying to write functions to transform an OpenGL texture to a PyTorch tensor and back in a C++ app. To test that it works I added 128 to the tensor to basically brighten the image, and then rendered the resulting texture on a quad. It mostly works but I’m experiencing a weird behavior in which part of the texture is unaffected.