(Aside) What’s Going on Behind the Scenes

Anatomy of gl.drawArrays()

for (int i = 0; i < count; ++i) {
    gl_VertexID = i;
    vertexShader();
}