Re:Learning Modern 3D Graphics Programming with OpenGL 3
by T_S_ on Monday May 09, 2011 @01:55PM
(#2529551)
Anybody aware of anything remotely similar for OpenCL?
[ Parent
| on HN ]
Re:Learning Modern 3D Graphics Programming with OpenGL 3
by marshray on Monday May 09, 2011 @05:22PM
(#2530264)
OpenCL looks like a generalization of the OpenGL shader language GLSL. The logistics of passing buffers and controlling execution should be very similar as well.
I think if you learn OpenGL 3.3 (as in this tutorial), you'll get enough of the common stuff down that you can fill in the missing spots from OpenCL reference material directly.
Re:Learning Modern 3D Graphics Programming with OpenGL 3
by pmjordan on Monday May 09, 2011 @06:10PM
(#2530407)
I'm only just getting into OpenCL (I already know OpenGL very well) and I'd say OpenCL's programming language is closer to C than to GLSL. In any case, I'd say the hard part is parallelising your algorithms, understanding the memory model (private vs local vs constant vs global pointers) and using it and the the task dispatch mechanism effectively.
Being experienced with OpenGL (or Direct3D, or game console) shaders will probably help for performance tweaking as the mindset is similar (memory access is evil, irregular memory access more so), but other than that I doubt it will help.