nngxSetCmdlistParameteri Function
NNGX_APICALL void NNGX_APIENTRY nngxSetCmdlistParameteri(
GLenum pname,
GLint param
);
| Name | Description | |
|---|---|---|
| in | pname | Parameter name |
| in | param | Parameter value |
Sets a parameter for the current command list.
Set pname to one of the following values.
| NN_GX_CMDLIST_RUN_MODE | Sets the command list to execution mode. You can only set param to NN_GX_CMDLIST_SERIAL_RUN. |
|---|---|
NN_GX_CMDLIST_GAS_UPDATE | Sets whether to update the additive blend results for gas density information rendering when 3D execution command execution is ending. You can set to pname to either GL_TRUE or GL_FALSE. (The default is GL_FALSE.) |
The following is a detailed description of the NN_GX_CMDLIST_GAS_UPDATE setting.
When the nngxSplitDrawCmdlist or nngxFlush3DCommand function is called with param set to GL_TRUE, the additive blend results for gas density information rendering are updated when the accumulated 3D execution commands have ended their execution. When param is set to GL_FALSE, operations return to normal and commands to update the gas density information are accummulated only when necessary.
This setting is made for each command list object. This setting is functional when it is GL_TRUE and when commands have accumulated (when the nngxSplitDrawCmdlist or nngxFlush3DCommand function has been called). When the command is executed, the fact that GL_TRUE is set has no affect on command execution.
There is no impact on 3D execution commands accumulated for functions other than those for the nngxSplitDrawCmdlist and nngxFlush3DCommand functions.
To read more about updating additive blend results for gas density information rendering, see the nngxSetGasAutoAccumulationUpdate function.
This function generates the following errors.
| GL_ERROR_8015_DMP | The current command list is running. |
|---|---|
| GL_ERROR_8016_DMP | The pname or param argument was set to an invalid value. |
NN_GX_CMDLIST_GAS_UPDATE to pname.CONFIDENTIAL