Expand description
OpenCL
OpenGL
Interoperability API.
Constants§
Functions§
- Create an
OpenCL
buffer object for a context from an OpenGL buffer.
Calls clCreateFromGLBuffer to create anOpenCL
buffer object. - Create an
OpenCL
2D image object from an OpenGL renderbuffer object.
Calls clCreateFromGLRenderbuffer to create anOpenCL
buffer object. - Create an
OpenCL
image object, image array object, or image buffer object for a context from an OpenGL texture object, texture array object, texture buffer object, or a single face of an OpenGL cubemap texture object.
Calls clCreateFromGLTexture to create anOpenCL
memory object. - create_from_gl_texture_2d⚠DeprecatedCreate an
OpenCL
2D image object from anOpenGL
2D texture object, or a single face of an OpenGL cubemap texture object.
Calls clCreateFromGLTexture2D to create anOpenCL
memory object.
Deprecated inCL_VERSION_1_2
, usecreate_from_gl_texture
. - create_from_gl_texture_3d⚠DeprecatedCreate an
OpenCL
3D image object from an OpenGL 3D texture object.
CallsclCreateFromGLTexture3D
to create anOpenCL
memory object.
Deprecated inCL_VERSION_1_2
, usecreate_from_gl_texture
. - Acquire
OpenCL
memory objects that have been created fromOpenGL
objects.
CallsclEnqueueAcquireGLObjects
. - Release
OpenCL
memory objects that have been created fromOpenGL
objects.
CallsclEnqueueReleaseGLObjects
. - Query an OpenGL object used to create an
OpenCL
memory object.
Calls clGetGLObjectInfo to get the object type and name. - Get data about an OpenGL texture object. Calls clGetGLTextureInfo to get the desired data about the texture object.
- Get information about the GL texture object associated with a memory object. Calls clGetGLTextureInfo to get the desired information.