This method of the Direct3dExecuteBuffer Class sets the number of STATERENDER instructions in the execute buffer.
public int stateRender(int cnt, int bufferindex);
Returns the number of 32-bit values added.
cnt | The number of instructions. |
bufferindex | The position in the execute buffer to place the instruction. |
The execute buffer is treated as an array of 32-bit values, which is a collection of floats and ints that describe vertices and instructions. It is up to the user to manage the position of each item added to the buffer.