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

clCreateEventFromGLsyncKHR - Creates an event object linked to an OpenGL sync object.

Authors

TheKhronosGroup

Description

       An event object may be created by linking to an OpenGL sync object. Completion of such an event object is
       equivalent to waiting for completion of the fence command associated with the linked GL sync object.

Errors

       Returns a valid OpenCL event object and errcode_ret is set to CL_SUCCESS if the event object is created
       successfully. Otherwise, it returns a NULL value with one of the following error values returned in
       errcode_ret:

       •   CL_INVALID_CONTEXT if context is not a valid context or was not created from a GL context.

       •   CL_INVALID_GL_OBJECT if sync is not the name of a sync object in the GL share group associated with
           context.

Name

       clCreateEventFromGLsyncKHR - Creates an event object linked to an OpenGL sync object.

       cl_eventclCreateEventFromGLsyncKHR(cl_contextcontext,GLsyncsync,cl_int*errcode_ret);

Notes

        1. OpenCL Specification
           page 62, section 9.8.4 - Additions to Chapter 5

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

Parameters

context
           A valid OpenCL context created from an OpenGL context or share group, using the
           cl_khr_gl_sharing(3clc) extension.

        sync
           The name of a sync object in the GL share group associated with context.

See Also

cl_khr_gl_event(3clc), clEnqueueAcquireGLObjects(3clc), clRetainEvent(3clc)

Specification

OpenCLSpecification[1]

See Also