OpenGL Interoperability
[CUDA Runtime API]


Modules

 OpenGL Interoperability [DEPRECATED]

Enumerations

enum  cudaGLDeviceList {
  cudaGLDeviceListAll = 1,
  cudaGLDeviceListCurrentFrame = 2,
  cudaGLDeviceListNextFrame = 3
}

Functions

cudaError_t cudaGLGetDevices (unsigned int *pCudaDeviceCount, int *pCudaDevices, unsigned int cudaDeviceCount, enum cudaGLDeviceList deviceList)
 Gets the CUDA devices associated with the current OpenGL context.
cudaError_t cudaGLSetGLDevice (int device)
 Sets a CUDA device to use OpenGL interoperability.
cudaError_t cudaGraphicsGLRegisterBuffer (struct cudaGraphicsResource **resource, GLuint buffer, unsigned int flags)
 Registers an OpenGL buffer object.
cudaError_t cudaGraphicsGLRegisterImage (struct cudaGraphicsResource **resource, GLuint image, GLenum target, unsigned int flags)
 Register an OpenGL texture or renderbuffer object.
cudaError_t cudaWGLGetDevice (int *device, HGPUNV hGpu)
 Gets the CUDA device associated with hGpu.

Detailed Description

This section describes the OpenGL interoperability functions of the CUDA runtime application programming interface. Note that mapping of OpenGL resources is performed with the graphics API agnostic, resource mapping interface described in Graphics Interopability.

Generated by Doxygen for NVIDIA CUDA Library  NVIDIA