Mathematical calculations using OGSL


I would like to make 3D cards perform some mathematical computations instead of displaying of graphics.

I suppose I can write a shader in OGSL and provide all source data as arrays of floats to it. But the question is: can I get the result back, if that result is not a picture. Ideally, I would like to get a number of 2D arrays of floats as a result.

Is it possible to do that? And how?

Thank you beforehand.

What you are trying to do is called “General Purpose Programming on the GPU”. There is a website devoted to this, and you will be able to find a lot of information there.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.