You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Please check for the "cl_APPLE_gl_sharing" extension using clGetDeviceInfo(CL_DEVICE_EXTENSIONS)
4
+
* before using these extensions.
5
+
6
+
* Apple extension for creating a CL context from a CGL share group
7
+
*
8
+
* This enumerated value can be specified as part of the <properties> argument passed to clCreateContext
9
+
* to allow OpenCL compliant devices in an existing CGL share group to be used as the devices in
10
+
* the newly created CL context. GL objects that were allocated in the given CGL share group can
11
+
* now be shared between CL and GL.
12
+
*
13
+
* If the <num_devices> and <devices> argument values to clCreateContext are 0 and NULL respectively,
14
+
* all CL compliant devices in the CGL share group will be used to create the context.
15
+
* Additional CL devices can also be specified using the <num_devices> and <devices> arguments.
16
+
* These, however, cannot be GPU devices. On Mac OS X, you can add the CPU to the list of CL devices
17
+
* (in addition to the CL compliant devices in the CGL share group) used to create the CL context.
18
+
* Note that if a CPU device is specified, the CGL share group must also include the GL float renderer;
19
+
* Otherwise CL_INVALID_DEVICE will be returned.
20
+
*
21
+
* NOTE: Make sure that appropriate cl_gl.h header file is included separately
22
+
*/
23
+
#defineCL_CONTEXT_PROPERTY_USE_CGL_SHAREGROUP_APPLE 0x10000000 /* Introduced in Mac OS /* Error code returned by clGetGLContextInfoAPPLE if an invalid platform_gl_ctx is provided */
24
+
#defineCL_INVALID_GL_CONTEXT_APPLE -1000 /*Introduced in Mac OS
0 commit comments