A graphics processing unit (GPU) is specialized hardware for graphics. Hardware acceleration uses specialized hardware to perform a task more efficiently; OpenGL provides a standard interface to graphics hardware through device drivers. section 7.1 section 7.1
In rasterization, geometry becomes an image through these stages:
- A draw call submits geometry, typically vertices represented by floating-point numbers. section 7.1.2
- A vertex shader processes vertices, from simple movement to 3D projection. section 7.1.2
- The rasterizer turns shapes into fragments; a fragment shader assigns each visible pixel a color. section 7.1.2
- The fragments are reassembled into an image. Shaders are programmable pipeline components, not just lighting tools. section 7.1.2
Figure 7.1 The rasterization pipeline
Use the pipeline diagram to follow geometry from draw call to finished image. section 7.1.2
Graphics programming also involves operating-system components, resource lifetimes, systems libraries, and memory—and comes with graphics-API-specific footguns. section 7.0


















