I’m looking to implement a class that uses cuda to do video processing.
I will need multiple instances with different parameters. The problem is that the code uses textures, which means thug I need a different texture instance for each class instance.
The problem is that textures have to be defined at the file scope. How can I get a different texture instance for each class in such a case?