
36 I Geometry Manipulation
compute the actual index of each vertex. We believe that such parameters
are not necessarily useful for all scenarios. The registers used for those
parameters should become user-defined variables to store the DrawID, for
example.
• The series of if statements required to select the right vertex format inside
the vertex fetching function is not very elegant as it introduces a level of
indirection. By backing subroutines in buffers, we could select a subroutine
per draw and effectively hide this indirection.
• The strategy behind the Programmable Vertex Pulling Rendering Pipeline
is to replace CPU resource switching by GPU-based ...