nngxAddVramDmaCommand Function

Syntax

NNGX_APICALL void NNGX_APIENTRY nngxAddVramDmaCommand(
     const GLvoid * srcaddr,
     GLvoid * dstaddr,
     GLsizei size
);

Arguments

Name Description
in srcaddr Transfer source address (main memory).
in dstaddr Transfer destination address (VRAM).
in size Transfer data size.

Return Values

There is no return value.

Description

Issues a DMA transfer command to the current command list.

DMA transfer commands accumulate in the current command list. This operation transfers size bytes of data from the address specified in srcaddr to the address specified in dstaddr. The srcaddr and dstaddr addresses must be 8-byte aligned.

The following errors occur with this function.

GL_ERROR_8062_DMPA valid command list is not currently bound.
GL_ERROR_8063_DMPsrcaddr or dstaddr is not 8-byte aligned.
GL_ERROR_8064_DMPThe size argument is negative.

Revision History

2010/06/09
Initial version.

CONFIDENTIAL