I’m writting a opengl C program, and I know that most graphical jobs are done by the GPU. My question is, can I use the GPU to compute stuff that is not graphic-related? For example, compute 1 + 2 + 3 + ... + 100 = ?
I’m writting a opengl C program, and I know that most graphical jobs are
Share
You can by using OpenCL or Computeshaders (thats the DX name, but I think theres something similar in openGl). But in general it only makes sense for algorithms that are easy to parallelize and way bigger than your example.