nngxGetCmdlistParameteri Function
NNGX_APICALL void NNGX_APIENTRY nngxGetCmdlistParameteri(
GLenum pname,
GLint * param
);
| Name | Description | |
|---|---|---|
| in | pname | Parameter name. |
| out | param | Region where the parameter values are stored. |
Gets a parameter value (param) configured for the current command list.
Set pname to one of the following values.
| NN_GX_CMDLIST_RUN_MODE | Gets the command list's execution mode. |
|---|---|
| NN_GX_CMDLIST_IS_RUNNING | Gets the execution status of the command list. If GL_TRUE is obtained, the command list is running. If GL_FALSE is obtained, the command list is not running. |
| NN_GX_CMDLIST_USED_BUFSIZE | Gets the size (in bytes) of the commands accumulated in the 3D command buffer. |
| NN_GX_CMDLIST_USED_REQCOUNT | Gets the number of command requests that are currently accumulated. |
| NN_GX_CMDLIST_MAX_BUFSIZE | Gets the maximum number of bytes that can be accumulated in the 3D command buffer. |
| NN_GX_CMDLIST_MAX_REQCOUNT | Gets the maximum number of command requests that can be accumulated. |
| NN_GX_CMDLIST_TOP_BUFADDR | Gets the starting address of the 3D command buffer. |
| NN_GX_CMDLIST_BINDING | Gets the ID of the command list object bound to the current object. |
| NN_GX_CMDLIST_CURRENT_BUFADDR | Gets the current export target address in the 3D command buffer. |
| NN_GX_CMDLIST_RUN_BUFSIZE | Gets the size in bytes of the 3D command buffer that has been executed. |
| NN_GX_CMDLIST_RUN_REQCOUNT | Gets the number of command requests that have been executed. |
| NN_GX_CMDLIST_TOP_REQADDR | Gets the starting address of the data memory region for the command request's request queue. |
| NN_GX_CMDLIST_NEXT_REQTYPE | When command execution is stopped, gets the type of command for the next command request to be executed. When a command is being executed, gets the type of command for the command request currently being executed. If all command requests have been executed, gets nothing. Command types are indicated by the following macros.
|
| NN_GX_CMDLIST_NEXT_REQINFO | When command execution is stopped, gets parameter information for the next command request to be executed. When a command is being executed, gets parameter information for the command request currently being executed. If all command requests have been executed, gets nothing. Only works when the command request to be executed or currently executed is for a 3D command. Gets nothing for any other command type. The first element of the param argument gets the command buffer address, and the second element gets the command buffer size in bytes. |
| NN_GX_CMDLIST_HW_STATE | Gets 32 bits of data indicating the hardware state. The meaning of each bit is as follows.
|
The following errors occur in this function.
| GL_ERROR_8017_DMP | The pname argument was set to an invalid value. |
|---|---|
| GL_ERROR_8018_DMP | The bound command list is 0, and something other than NN_GX_CMDLIST_BINDING was specified for pname. |
NN_GX_CMDLIST_CURRENT_BUFADDRCONFIDENTIAL