Skip to main content

Module gl

Module gl 

Source
Expand description

OpenGL interop.

Functions§

get_devices
List CUDA device ordinals associated with the current GL context. device_list selects which slice of the rendering pipeline (cudaGLDeviceList_all, _current_frame, _next_frame).
register_buffer
Register a GL buffer object (VBO / SSBO / …) for CUDA access.
register_image
Register a GL texture / renderbuffer. target is the GL binding target (GL_TEXTURE_2D, GL_RENDERBUFFER, …).