# Uses of Class
org.lwjgl.opencl.CLContext

Packages that use CLContext
Package
Description
org.lwjgl.opencl
org.lwjgl.opengl

## Uses of CLContext in org.lwjgl.opencl

Methods in org.lwjgl.opencl that return CLContext
Modifier and Type
Method
Description
`static CLContext`
CL10.`clCreateContext(PointerBuffer properties, CLDevice device, CLContextCallback pfn_notify, IntBuffer errcode_ret)`
Overloads clCreateContext.
`static CLContext`
CL10.`clCreateContext(PointerBuffer properties, PointerBuffer devices, CLContextCallback pfn_notify, IntBuffer errcode_ret)`
LWJGL requires CL_CONTEXT_PLATFORM to be present in the cl_context_properties buffer.
`static CLContext`
CL10.`clCreateContextFromType(PointerBuffer properties, long device_type, CLContextCallback pfn_notify, IntBuffer errcode_ret)`
LWJGL requires CL_CONTEXT_PLATFORM to be present in the cl_context_properties buffer.
`static CLContext`
CLContext.`create(CLPlatform platform, List<CLDevice> devices, IntBuffer errcode_ret)`
Creates a new CLContext.
`static CLContext`
CLContext.`create(CLPlatform platform, List<CLDevice> devices, CLContextCallback pfn_notify, IntBuffer errcode_ret)`
Creates a new CLContext.
`static CLContext`
CLContext.`create(CLPlatform platform, List<CLDevice> devices, CLContextCallback pfn_notify, Drawable share_drawable, IntBuffer errcode_ret)`
Creates a new CLContext.
`static CLContext`
CLContext.`createFromType(CLPlatform platform, long device_type, IntBuffer errcode_ret)`
Creates a new CLContext.
`static CLContext`
CLContext.`createFromType(CLPlatform platform, long device_type, CLContextCallback pfn_notify, IntBuffer errcode_ret)`
Creates a new CLContext.
`static CLContext`
CLContext.`createFromType(CLPlatform platform, long device_type, CLContextCallback pfn_notify, Drawable share_drawable, IntBuffer errcode_ret)`
Creates a new CLContext.
Methods in org.lwjgl.opencl with parameters of type CLContext
Modifier and Type
Method
Description
`static CLMem`
CL10.`clCreateBuffer(CLContext context, long flags, long host_ptr_size, IntBuffer errcode_ret)`
`static CLMem`
CL10.`clCreateBuffer(CLContext context, long flags, ByteBuffer host_ptr, IntBuffer errcode_ret)`
`static CLMem`
CL10.`clCreateBuffer(CLContext context, long flags, DoubleBuffer host_ptr, IntBuffer errcode_ret)`
`static CLMem`
CL10.`clCreateBuffer(CLContext context, long flags, FloatBuffer host_ptr, IntBuffer errcode_ret)`
`static CLMem`
CL10.`clCreateBuffer(CLContext context, long flags, IntBuffer host_ptr, IntBuffer errcode_ret)`
`static CLMem`
CL10.`clCreateBuffer(CLContext context, long flags, LongBuffer host_ptr, IntBuffer errcode_ret)`
`static CLMem`
CL10.`clCreateBuffer(CLContext context, long flags, ShortBuffer host_ptr, IntBuffer errcode_ret)`
`static CLCommandQueue`
CL10.`clCreateCommandQueue(CLContext context, CLDevice device, long properties, IntBuffer errcode_ret)`
`static CLEvent`
KHRGLEvent.`clCreateEventFromGLsyncKHR(CLContext context, GLSync sync, IntBuffer errcode_ret)`
`static CLMem`
CL10GL.`clCreateFromGLBuffer(CLContext context, long flags, int bufobj, IntBuffer errcode_ret)`
`static CLMem`
CL10GL.`clCreateFromGLRenderbuffer(CLContext context, long flags, int renderbuffer, IntBuffer errcode_ret)`
`static CLMem`
CL12GL.`clCreateFromGLTexture(CLContext context, long flags, int target, int miplevel, int texture, IntBuffer errcode_ret)`
`static CLMem`
CL10GL.`clCreateFromGLTexture2D(CLContext context, long flags, int target, int miplevel, int texture, IntBuffer errcode_ret)`
`static CLMem`
CL10GL.`clCreateFromGLTexture3D(CLContext context, long flags, int target, int miplevel, int texture, IntBuffer errcode_ret)`
`static CLMem`
CL12.`clCreateImage(CLContext context, long flags, ByteBuffer image_format, ByteBuffer image_desc, ByteBuffer host_ptr, IntBuffer errcode_ret)`
`static CLMem`
CL12.`clCreateImage(CLContext context, long flags, ByteBuffer image_format, ByteBuffer image_desc, FloatBuffer host_ptr, IntBuffer errcode_ret)`
`static CLMem`
CL12.`clCreateImage(CLContext context, long flags, ByteBuffer image_format, ByteBuffer image_desc, IntBuffer host_ptr, IntBuffer errcode_ret)`
`static CLMem`
CL12.`clCreateImage(CLContext context, long flags, ByteBuffer image_format, ByteBuffer image_desc, ShortBuffer host_ptr, IntBuffer errcode_ret)`
`static CLMem`
CL10.`clCreateImage2D(CLContext context, long flags, ByteBuffer image_format, long image_width, long image_height, long image_row_pitch, ByteBuffer host_ptr, IntBuffer errcode_ret)`
`static CLMem`
CL10.`clCreateImage2D(CLContext context, long flags, ByteBuffer image_format, long image_width, long image_height, long image_row_pitch, FloatBuffer host_ptr, IntBuffer errcode_ret)`
`static CLMem`
CL10.`clCreateImage2D(CLContext context, long flags, ByteBuffer image_format, long image_width, long image_height, long image_row_pitch, IntBuffer host_ptr, IntBuffer errcode_ret)`
`static CLMem`
CL10.`clCreateImage2D(CLContext context, long flags, ByteBuffer image_format, long image_width, long image_height, long image_row_pitch, ShortBuffer host_ptr, IntBuffer errcode_ret)`
`static CLMem`
CL10.`clCreateImage3D(CLContext context, long flags, ByteBuffer image_format, long image_width, long image_height, long image_depth, long image_row_pitch, long image_slice_pitch, ByteBuffer host_ptr, IntBuffer errcode_ret)`
`static CLMem`
CL10.`clCreateImage3D(CLContext context, long flags, ByteBuffer image_format, long image_width, long image_height, long image_depth, long image_row_pitch, long image_slice_pitch, FloatBuffer host_ptr, IntBuffer errcode_ret)`
`static CLMem`
CL10.`clCreateImage3D(CLContext context, long flags, ByteBuffer image_format, long image_width, long image_height, long image_depth, long image_row_pitch, long image_slice_pitch, IntBuffer host_ptr, IntBuffer errcode_ret)`
`static CLMem`
CL10.`clCreateImage3D(CLContext context, long flags, ByteBuffer image_format, long image_width, long image_height, long image_depth, long image_row_pitch, long image_slice_pitch, ShortBuffer host_ptr, IntBuffer errcode_ret)`
`static CLProgram`
CL10.`clCreateProgramWithBinary(CLContext context, CLDevice device, ByteBuffer binary, IntBuffer binary_status, IntBuffer errcode_ret)`
`static CLProgram`
CL10.`clCreateProgramWithBinary(CLContext context, PointerBuffer device_list, ByteBuffer[] binaries, IntBuffer binary_status, IntBuffer errcode_ret)`
Overloads clCreateProgramWithBinary.
`static CLProgram`
CL10.`clCreateProgramWithBinary(CLContext context, PointerBuffer device_list, PointerBuffer lengths, ByteBuffer binaries, IntBuffer binary_status, IntBuffer errcode_ret)`
Overloads clCreateProgramWithBinary.
`static CLProgram`
CL12.`clCreateProgramWithBuiltInKernels(CLContext context, PointerBuffer device_list, CharSequence kernel_names, IntBuffer errcode_ret)`
Overloads clCreateProgramWithBuiltInKernels.
`static CLProgram`
CL12.`clCreateProgramWithBuiltInKernels(CLContext context, PointerBuffer device_list, ByteBuffer kernel_names, IntBuffer errcode_ret)`
`static CLProgram`
CL10.`clCreateProgramWithSource(CLContext context, CharSequence[] strings, IntBuffer errcode_ret)`
Overloads clCreateProgramWithSource.
`static CLProgram`
CL10.`clCreateProgramWithSource(CLContext context, CharSequence string, IntBuffer errcode_ret)`
Overloads clCreateProgramWithSource.
`static CLProgram`
CL10.`clCreateProgramWithSource(CLContext context, ByteBuffer[] strings, IntBuffer errcode_ret)`
Overloads clCreateProgramWithSource.
`static CLProgram`
CL10.`clCreateProgramWithSource(CLContext context, ByteBuffer string, IntBuffer errcode_ret)`
`static CLProgram`
CL10.`clCreateProgramWithSource(CLContext context, ByteBuffer strings, PointerBuffer lengths, IntBuffer errcode_ret)`
Overloads clCreateProgramWithSource.
`static CLSampler`
CL10.`clCreateSampler(CLContext context, int normalized_coords, int addressing_mode, int filter_mode, IntBuffer errcode_ret)`
`static CLEvent`
CL11.`clCreateUserEvent(CLContext context, IntBuffer errcode_ret)`
`static int`
CL10.`clGetContextInfo(CLContext context, int param_name, ByteBuffer param_value, PointerBuffer param_value_size_ret)`
`static int`
APPLEGLSharing.`clGetGLContextInfoAPPLE(CLContext context, PointerBuffer platform_gl_ctx, int param_name, ByteBuffer param_value, PointerBuffer param_value_size_ret)`
`static int`
CL10.`clGetSupportedImageFormats(CLContext context, long flags, int image_type, ByteBuffer image_formats, IntBuffer num_image_formats)`
`static CLProgram`
CL12.`clLinkProgram(CLContext context, PointerBuffer device_list, CharSequence options, PointerBuffer input_programs, CLLinkProgramCallback pfn_notify, IntBuffer errcode_ret)`
Overloads clLinkProgram.
`static CLProgram`
CL12.`clLinkProgram(CLContext context, PointerBuffer device_list, ByteBuffer options, PointerBuffer input_programs, CLLinkProgramCallback pfn_notify, IntBuffer errcode_ret)`
`static int`
CL10.`clReleaseContext(CLContext context)`
`static int`
CL10.`clRetainContext(CLContext context)`
`static int`
CL12.`clSetPrintfCallback(CLContext context, CLPrintfCallback pfn_notify)`
`static int`
KHRTerminateContext.`clTerminateContextKHR(CLContext context)`
`static CLMem`
CLMem.`createImage2D(CLContext context, long flags, CLImageFormat image_format, long image_width, long image_height, long image_row_pitch, Buffer host_ptr, IntBuffer errcode_ret)`
Creates a new 2D image object.
`static CLMem`
CLMem.`createImage3D(CLContext context, long flags, CLImageFormat image_format, long image_width, long image_height, long image_depth, long image_row_pitch, long image_slice_pitch, Buffer host_ptr, IntBuffer errcode_ret)`
Creates a new 3D image object.

## Uses of CLContext in org.lwjgl.opengl

Methods in org.lwjgl.opengl with parameters of type CLContext
Modifier and Type
Method
Description
`static GLSync`
ARBCLEvent.`glCreateSyncFromCLeventARB(CLContext context, CLEvent event, int flags)`