Posts: 6
Joined: Fri Feb 14, 2014 3:17 pm

GPU Computing

Thu Aug 18, 2016 2:20 pm

We've been doing quite advanced GPU calculations using rgb textures since pi 1. We've done this through some hacks; 16 bit data is transfered to the gpu (divided into 5-6-5 bits), after which the original data is calculated from the rgb data through a shader and the result is written to another texture, etc. It really feels like a clumsy solution to do this with OpenGL ES 2.0 (although it's working just fine). But is this still the way to go? Does someone have any thoughts on whether this is something that might be more handy to do with some other method on the pi, now or in the future?

Posts: 7854
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: GPU Computing

Fri Aug 19, 2016 9:56 am

Here is something in not-quite-C++ :

QPU assembler is another option :

• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

Return to “Graphics programming”