OpenGL Interoperability [DEPRECATED]
- Provided by: nvidia-cuda-dev (Version: 10.1.243-3)
- Source: nvidia-cuda-toolkit
- Report a bug
__CUDA_DEPRECATED CUresult cuGLCtxCreate
(CUcontext *pCtx, unsigned int Flags, CUdevice device)
Create a CUDA context for interoperability with OpenGL.
__CUDA_DEPRECATED CUresult cuGLInit (void)
Initializes OpenGL interoperability. __CUDA_DEPRECATED CUresult
cuGLMapBufferObject (CUdeviceptr *dptr, size_t *size, GLuint
buffer)
Maps an OpenGL buffer object. __CUDA_DEPRECATED CUresult
cuGLMapBufferObjectAsync (CUdeviceptr *dptr, size_t *size,
GLuint buffer, CUstream hStream)
Maps an OpenGL buffer object. __CUDA_DEPRECATED CUresult
cuGLRegisterBufferObject (GLuint buffer)
Registers an OpenGL buffer object. __CUDA_DEPRECATED CUresult
cuGLSetBufferObjectMapFlags (GLuint buffer, unsigned int Flags)
Set the map flags for an OpenGL buffer object. __CUDA_DEPRECATED
CUresult cuGLUnmapBufferObject (GLuint buffer)
Unmaps an OpenGL buffer object. __CUDA_DEPRECATED CUresult
cuGLUnmapBufferObjectAsync (GLuint buffer, CUstream hStream)
Unmaps an OpenGL buffer object. __CUDA_DEPRECATED CUresult
cuGLUnregisterBufferObject (GLuint buffer)
Unregister an OpenGL buffer object.
\brief deprecated OpenGL interoperability functions of the low-level CUDA driver API (cudaGL.h)
This section describes deprecated OpenGL interoperability functionality.
Flags to map or unmap a resource
Deprecated
This function is deprecated and should no longer be used. It is no longer necessary to associate a CUDA context with an OpenGL context in order to achieve maximum interoperability performance.
Parameters:
Returns:
Note:
See also:
Deprecated
Initializes OpenGL interoperability. This function is deprecated and calling it is no longer required. It may fail if the needed OpenGL driver facilities are not available.
Returns:
Note:
See also:
Deprecated
Maps the buffer object specified by buffer into the address space of the current CUDA context and returns in *dptr and *size the base pointer and size of the resulting mapping.
There must be a valid OpenGL context bound to the current thread when this function is called. This must be the same context, or a member of the same shareGroup, as the context that was bound when the buffer was registered.
All streams in the current CUDA context are synchronized with the current GL context.
Parameters:
Returns:
Note:
See also:
Deprecated
Maps the buffer object specified by buffer into the address space of the current CUDA context and returns in *dptr and *size the base pointer and size of the resulting mapping.
There must be a valid OpenGL context bound to the current thread when this function is called. This must be the same context, or a member of the same shareGroup, as the context that was bound when the buffer was registered.
Stream hStream in the current CUDA context is synchronized with the current GL context.
Parameters:
Returns:
Note:
See also:
Deprecated
Registers the buffer object specified by buffer for access by CUDA. This function must be called before CUDA can map the buffer object. There must be a valid OpenGL context bound to the current thread when this function is called, and the buffer name is resolved by that context.
Parameters:
Returns:
Note:
See also:
Deprecated
Sets the map flags for the buffer object specified by buffer.
Changes to Flags will take effect the next time buffer is mapped. The Flags argument may be any of the following:
If buffer has not been registered for use with CUDA, then CUDA_ERROR_INVALID_HANDLE is returned. If buffer is presently mapped for access by CUDA, then CUDA_ERROR_ALREADY_MAPPED is returned.
There must be a valid OpenGL context bound to the current thread when this function is called. This must be the same context, or a member of the same shareGroup, as the context that was bound when the buffer was registered.
Parameters:
Returns:
Note:
See also:
Deprecated
Unmaps the buffer object specified by buffer for access by CUDA.
There must be a valid OpenGL context bound to the current thread when this function is called. This must be the same context, or a member of the same shareGroup, as the context that was bound when the buffer was registered.
All streams in the current CUDA context are synchronized with the current GL context.
Parameters:
Returns:
Note:
See also:
Deprecated
Unmaps the buffer object specified by buffer for access by CUDA.
There must be a valid OpenGL context bound to the current thread when this function is called. This must be the same context, or a member of the same shareGroup, as the context that was bound when the buffer was registered.
Stream hStream in the current CUDA context is synchronized with the current GL context.
Parameters:
Returns:
Note:
See also:
Deprecated
Unregisters the buffer object specified by buffer. This releases any resources associated with the registered buffer. After this call, the buffer may no longer be mapped for access by CUDA.
There must be a valid OpenGL context bound to the current thread when this function is called. This must be the same context, or a member of the same shareGroup, as the context that was bound when the buffer was registered.
Parameters:
Returns:
Note:
See also:
Generated automatically by Doxygen from the source code.