CodePudding user response:
For each send to OpenGL vertices, vertex shaders will run once and outputs a data set, in the next few stages and vertex shaders have some similarities, is known as the primitive processing stage, first of all, the surface shader graphics processing block segment (patches), then the geometry shader process the entire figure yuan (point, line, plane), it will run once for each figure yuan,OpenGL Primitive Processing (Primitive Processing) concern lies mainly in the following two points:
1. How to use surface subdivision in the scene to add geometric details
2. How to use the geometry shader immediately deal with the primitives and create a new geometry
Details, see [OpenGL primitive processing] (https://www.jianshu.com/p/3d974e69f842)