logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

cl_khr_gl_event - Create an OpenCL event object from a GL sync object.

Authors

TheKhronosGroup

Description

       This extension enables the function clCreateEventFromGLsyncKHR(3clc).

       This extension allows creating OpenCL event objects linked to OpenGL fence sync objects, potentially
       improving efficiency of sharing images and buffers between the two APIs. The companion GL_ARB_cl_event
       OpenGL extension provides the complementary functionality of creating an OpenGL sync object from an
       OpenCL event object.

       In addition, this extension modifies the behavior of clEnqueueAcquireGLObjects(3clc) and
       clEnqueueReleaseGLObjects(3clc) to implicitly guarantee synchronization with an OpenGL context bound in
       the same thread as the OpenCL context.

       If this extension is supported by an implementation, the string cl_khr_gl_event will be present in the
       CL_PLATFORM_EXTENSIONS or CL_DEVICE_EXTENSIONS string described in the table of param_name values for
       clGetDeviceInfo(3clc).

Name

       cl_khr_gl_event - Create an OpenCL event object from a GL sync object.

       cl_khr_gl_event

Notes

        1. OpenCL Specification
           page 61, section 9.8 - Creating CL event objets

The Khronos Group                                  11/18/2024                              CL_KHR_GL_EVENT(3clc)

See Also

EXTENSION(3clc), clCreateEventFromGLsyncKHR(3clc)

Specification

OpenCLSpecification[1]

See Also