nngxAddVramDmaCommand Function
NNGX_APICALL void NNGX_APIENTRY nngxAddVramDmaCommand(
const GLvoid * srcaddr,
GLvoid * dstaddr,
GLsizei size
);
| Name | Description | |
|---|---|---|
| in | srcaddr | Transfer source address (main memory). |
| in | dstaddr | Transfer destination address (VRAM). |
| in | size | Transfer data size. |
Issues a DMA transfer command request to the current command list.
DMA transfer command requests accumulate in the current command list. They are used when transferring data from main memory to VRAM without using the GL functions. This operation transfers size bytes of data from the address specified in srcaddr to the address specified in dstaddr.
When using this function to perform a DMA transfer, cache coherecy is handled internally prior to the transfer and does not require support from the calling side. When a cache flush is unnecessary, it can be omitted by using the nngxAddVramDmaCommandNoCacheFlush function.
The following errors occur with this function.
GL_ERROR_8062_DMP | A valid command list is not currently bound. |
|---|---|
GL_ERROR_8064_DMP | The size argument is negative. |
nngxAddVramDmaCommandNoCacheFlush function.srcaddr and dstaddr.CONFIDENTIAL