Difference between revisions of "GPU/GL Arrays"

From 3dbrew
< GPU
Jump to navigation Jump to search
Line 11: Line 11:
 
| 0
 
| 0
 
| [[GPU/Internal_Registers#GPUREG_GEOSTAGE_CONFIG|GPUREG_GEOSTAGE_CONFIG]]
 
| [[GPU/Internal_Registers#GPUREG_GEOSTAGE_CONFIG|GPUREG_GEOSTAGE_CONFIG]]
| Set whether drawing triangle elements.
+
| Set whether drawing triangle elements
 
|-
 
|-
 
| 1-2
 
| 1-2
 
| [[GPU/Internal_Registers#GPUREG_GEOSTAGE_CONFIG2|GPUREG_GEOSTAGE_CONFIG2]]
 
| [[GPU/Internal_Registers#GPUREG_GEOSTAGE_CONFIG2|GPUREG_GEOSTAGE_CONFIG2]]
| Set whether drawing triangle elements.
+
| Set whether drawing triangle elements
 
|-
 
|-
 
| 3
 
| 3
 
| [[GPU/Internal_Registers#GPUREG_PRIMITIVE_CONFIG|GPUREG_PRIMITIVE_CONFIG]]
 
| [[GPU/Internal_Registers#GPUREG_PRIMITIVE_CONFIG|GPUREG_PRIMITIVE_CONFIG]]
| Set primitive mode.
+
| Set primitive mode
 
|-
 
|-
 
| 4
 
| 4

Revision as of 08:02, 5 December 2015

This page describes the GPU commands used for OpenGL arrays.

Command Sets

glDrawElements()

Command Index Register Description
0 GPUREG_GEOSTAGE_CONFIG Set whether drawing triangle elements
1-2 GPUREG_GEOSTAGE_CONFIG2 Set whether drawing triangle elements
3 GPUREG_PRIMITIVE_CONFIG Set primitive mode
4 GPUREG_PRIMITIVE_CONFIG Set number of output map registers
5 GPUREG_RESTART_PRIMITIVE Trigger reset
6 GPUREG_GEOSTAGE_CONFIG2 Set function indicator to 0
7 GPUREG_INDEXBUFFER_CONFIG Set offset and type
8 GPUREG_NUMVERTICES Set vertex count
9 GPUREG_START_DRAW_FUNC0 Set mode to drawing
10 GPUREG_DRAWELEMENTS Trigger draw
11 GPUREG_START_DRAW_FUNC0 Set mode to configuration
12 GPUREG_VTX_FUNC Trigger post-vertex cache clear
13 GPUREG_FRAMEBUFFER_FLUSH Flush framebuffer
14 GPUREG_GEOSTAGE_CONFIG Clear drawing triangle elements
15 GPUREG_GEOSTAGE_CONFIG2 Clear drawing triangle elements
16 GPUREG_PRIMITIVE_CONFIG Clear primitive mode
17 GPUREG_VSH_ENTRYPOINT Clear entry point