11.01.2014 Views

NVIDIA CUDA

NVIDIA CUDA

NVIDIA CUDA

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

196 Module Documentation<br />

4.33 OpenGL Interoperability [DEPRECATED]<br />

Functions<br />

• CUresult cuGLInit (void)<br />

Initializes OpenGL interoperability.<br />

• CUresult cuGLMapBufferObject (CUdeviceptr ∗dptr, unsigned int ∗size, GLuint buffer)<br />

Maps an OpenGL buffer object.<br />

• CUresult cuGLMapBufferObjectAsync (CUdeviceptr ∗dptr, unsigned int ∗size, GLuint buffer, CUstream<br />

hStream)<br />

Maps an OpenGL buffer object.<br />

• CUresult cuGLRegisterBufferObject (GLuint buffer)<br />

Registers an OpenGL buffer object.<br />

• CUresult cuGLSetBufferObjectMapFlags (GLuint buffer, unsigned int Flags)<br />

Set the map flags for an OpenGL buffer object.<br />

• CUresult cuGLUnmapBufferObject (GLuint buffer)<br />

Unmaps an OpenGL buffer object.<br />

• CUresult cuGLUnmapBufferObjectAsync (GLuint buffer, CUstream hStream)<br />

Unmaps an OpenGL buffer object.<br />

• CUresult cuGLUnregisterBufferObject (GLuint buffer)<br />

Unregister an OpenGL buffer object.<br />

4.33.1 Detailed Description<br />

This section describes deprecated OpenGL interoperability functionality.<br />

4.33.2 Function Documentation<br />

4.33.2.1 cuGLInit (void)<br />

Deprecated<br />

This function is deprecated as of Cuda 3.0.<br />

Initializes OpenGL interoperability. This function is deprecated and calling it is no longer required. It may fail if the<br />

needed OpenGL driver facilities are not available.<br />

Returns:<br />

<strong>CUDA</strong>_SUCCESS, <strong>CUDA</strong>_ERROR_DEINITIALIZED, <strong>CUDA</strong>_ERROR_NOT_INITIALIZED, <strong>CUDA</strong>_-<br />

ERROR_INVALID_CONTEXT, <strong>CUDA</strong>_ERROR_UNKNOWN<br />

Generated for <strong>NVIDIA</strong> <strong>CUDA</strong> Library by Doxygen

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!