In this chapter from CUDA for Engineers: An Introduction to High-Performance Parallel Computing, you'll learn about the essentials of defining and launching kernels on 2D computational grids. The authors explain sample code, the flashlight app that takes advantage of CUDA/OpenGL interop to implement real-time graphical display and interaction with the results from 2D computational grids. Finally, they show how to use flashlight as a template and perform modifications to make it applicable to a real engineering problem, numerical exploration of dynamic stability.
With new APIs, rendering effects, and other features changing the world of graphics, should you still care about OpenGL? Graham Sellers, lead author of OpenGL SuperBible, Seventh Edition, discusses why OpenGL is not only relevant, but offers updated features that rival some of the vaunted capabilities of newer technologies.
This chapter from OpenGL Superbible: Comprehensive Tutorial and Reference, 7th Edition, provides an overview of the OpenGL pipeline from start to finish, providing insight into each of the stages, which include fixed-function blocks and programmable shader blocks.
In this chapter, you write your first shaders. You will be introduced to HLSL syntax, the FX file format, data structures, and more. By the end of this chapter, you’ll have a base from which to launch the rest of your exploration into graphics programming.