MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Cg Core Runtime API                         cgSetBufferSubData(3)



NAME
     cgSetBufferSubData - partially update a Cg buffer object

SYNOPSIS
       #include 

       void cgSetBufferSubData( CGbuffer buffer,
                                int offset,
                                int size,
                                const void * data );


PARAMETERS
     buffer  Buffer being updated.

     offset  Buffer offset in bytes of the beginning of the
             partial update.

     size    Number of buffer bytes to be updated.  Zero means no
             update.

     data    Pointer to the start of the data being copied into
             the buffer.

RETURN VALUES
     None.

DESCRIPTION
     cgSetBufferSubData resizes and partially updates an existing
     buffer object.

     A buffer which has been mapped into an applications address
     space with cgMapBuffer must be unmapped using cgUnmapBuffer
     before it can be updated with cgSetBufferSubData.

EXAMPLES
     cgSetBufferSubData( myBuffer, 16, sizeof( myData ), myData
     );

ERORS
     CGINVALIDBUFERHANDLEROR is generated if buffer is not
     a valid buffer.

     CGBUFERUPDATENOTALOWEDEROR is generated if buffer is
     currently mapped.

     CGBUFERINDEXOUTOFRANGEROR is generated if offset or
     size is out of range.

HISTORY
     cgSetBufferSubData was introduced in Cg 2.0.




Cg Toolkit 2.1            Last change:                          1






Cg Core Runtime API                         cgSetBufferSubData(3)



SEE ALSO
     cgCreateBuffer, cgGLCreateBuffer, cgSetBufferData,
     cgMapBuffer, cgUnmapBuffer




















































Cg Toolkit 2.1            Last change:                          2



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™