I am quite new with OpenGL and OpenGL ES and have played a bit around with the rasberry pi looking to use it for GPGPU.
Is it possible to transfer two floating point values (or an array of these) to the GPU multiply them and get the result back on the CPU? And how would you do it?
Floating point multiplication
- Posts: 1
- Joined: Fri Nov 02, 2012 2:33 pm
While you would not want to do that just for a few scalars (the latency cost of the op would be enormous), the normal way to do GPGPU would be through FP32 (single precision) or FP16 (half precision) textures containing the arguments, potentially on a fast client-update path if the arg data is highly dynamic, returning the result into a FP32 or FP16 target, again preferably on a quick read-back path for fast consumption. That said, the current RPi ES stack does not support float textures, and the fast texture update/target readback paths are still being figured out. There have been early attempts on these boards to discover such potential paths but no positive results so far, AFAIK. I plan to revisit to the problem when I have spare time.
- Posts: 55
- Joined: Tue Jul 17, 2012 9:57 pm
What is the best means of keeping abreast of changes to the ES stack? Float textures are quite important to me.
- Posts: 43
- Joined: Fri Dec 07, 2012 6:37 pm