Package org.lwjgl.opencl
Class APPLEGLSharing
java.lang.Object
org.lwjgl.opencl.APPLEGLSharing
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Returns a cl_device_id for the CL device associated with the virtual screen for the given CGL context.static final int
Returns an array of cl_device_ids for the CL device(s) corresponding to the virtual screen(s) for the given CGL context.static final int
This enumerated value can be specified as part of the <properties> argument passed to clCreateContext to allow OpenCL compliant devices in an existing CGL share group to be used as the devices in the newly created CL context.static final int
Error code returned by clGetGLContextInfoAPPLE if an invalid platform_gl_ctx is provided -
Method Summary
Modifier and TypeMethodDescriptionstatic int
clGetGLContextInfoAPPLE
(CLContext context, PointerBuffer platform_gl_ctx, int param_name, ByteBuffer param_value, PointerBuffer param_value_size_ret)
-
Field Details
-
CL_CONTEXT_PROPERTY_USE_CGL_SHAREGROUP_APPLE
public static final int CL_CONTEXT_PROPERTY_USE_CGL_SHAREGROUP_APPLEThis enumerated value can be specified as part of the <properties> argument passed to clCreateContext to allow OpenCL compliant devices in an existing CGL share group to be used as the devices in the newly created CL context. GL objects that were allocated in the given CGL share group can now be shared between CL and GL.- See Also:
-
CL_CGL_DEVICE_FOR_CURRENT_VIRTUAL_SCREEN_APPLE
public static final int CL_CGL_DEVICE_FOR_CURRENT_VIRTUAL_SCREEN_APPLEReturns a cl_device_id for the CL device associated with the virtual screen for the given CGL context. Return type: cl_device_id- See Also:
-
CL_CGL_DEVICES_FOR_SUPPORTED_VIRTUAL_SCREENS_APPLE
public static final int CL_CGL_DEVICES_FOR_SUPPORTED_VIRTUAL_SCREENS_APPLEReturns an array of cl_device_ids for the CL device(s) corresponding to the virtual screen(s) for the given CGL context. Return type: cl_device_id[]- See Also:
-
CL_INVALID_GL_CONTEXT_APPLE
public static final int CL_INVALID_GL_CONTEXT_APPLEError code returned by clGetGLContextInfoAPPLE if an invalid platform_gl_ctx is provided- See Also:
-
-
Method Details
-
clGetGLContextInfoAPPLE
public static int clGetGLContextInfoAPPLE(CLContext context, PointerBuffer platform_gl_ctx, int param_name, ByteBuffer param_value, PointerBuffer param_value_size_ret)
-