OpenGL SuperBible: Comprehensive Tutorial and Reference, Seventh Edition
by Graham Sellers, Richard S. Wright Jr., Nicholas Haemel
Chapter 10. Compute Shaders
What You’ll Learn in This Chapter
• How to create, compile, and dispatch compute shaders.
• How to pass data between compute shader invocations.
• How to synchronize compute shaders and keep their work in order.
Compute shaders are a way to take advantage of the enormous computational power of graphics processors that implement OpenGL. Just like all shaders in OpenGL, they are written in GLSL and run in large parallel groups that simultaneously work on huge amounts of data. In addition to the facilities available to other shaders such as texturing, storage buffers, and atomic memory operations, compute shaders are able to synchronize with one another and share data among themselves to make general computation easier. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access