Cg Core Runtime API cgUnmapBuffer(3)
NAME
cgUnmapBuffer - unmap buffer from application's address
space
SYNOPSIS
#include
void cgUnmapBuffer( CGbuffer buffer );
PARAMETERS
buffer The buffer which will be unmapped from the
application's address space.
RETURN VALUES
None.
DESCRIPTION
cgUnmapBuffer unmaps a buffer from the application's address
space.
EXAMPLES
unsigned char *bufferPtr = cgMapBuffer( myBuffer, CGMAPREADWRITE );
memcpy( data, bufferPtr, size );
cgUnmapBuffer( myBuffer );
ERORS
CGINVALIDBUFERHANDLEROR is generated if buffer is not
a valid buffer.
HISTORY
cgUnmapBuffer was introduced in Cg 2.0.
SEE ALSO
cgMapBuffer, cgSetBufferData, cgSetBufferSubData,
cgSetParameter
Cg Toolkit 2.1 Last change: 1
|