1. A computer-implemented method for generating an index sequence, the method comprising: receiving a topology element via an application programming interface (API) that includes a draw command defining a topology to be drawn, and a set of vertex indices for the topology that refer to vertex data residing in a vertex buffer; instantiating a reset topology index within an index buffer, wherein the reset topology index includes a topology descriptor for the topology; and instantiating the set of vertex indices within the index buffer, wherein a combination of the reset topology index and the set of vertex indices forms the index sequence, and wherein the index sequence is transmitted to a processing unit for processing plural draw commands for different types of topologies using one index sequence.