X Tutup
Skip to content

Commit e091781

Browse files
committed
JNAerator: fixed function arg callback naming regression
1 parent 10cef00 commit e091781

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/* Context GL sharing
2+
*
3+
* 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+
#define CL_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+
#define CL_INVALID_GL_CONTEXT_APPLE -1000 /* Introduced in Mac OS

0 commit comments

Comments
 (0)
X Tutup