Now we need to take these vertices and indices and get them into arrays that the GPU can understand. This is done through the use of buffers, which refer to blocks of memory that the GPU can use for a variety of different tasks.
Direct3D provides a couple of different types of buffers, each with their own purpose in the pipeline. The most commonly used buffers include the following:
As you may have gathered, we use vertex and index buffers to store the data we need for rendering.
To create these buffers, we need to build up an array of the data, being careful to control the layout of each vertex. Later on we'll tell the GPU how to read the data, so we can make ...