|
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of cl_context in org.jocl |
---|
Methods in org.jocl that return cl_context | |
---|---|
static cl_context |
CL.clCreateContext(cl_context_properties properties,
int num_devices,
cl_device_id[] devices,
CreateContextFunction pfn_notify,
java.lang.Object user_data,
int[] errcode_ret)
Creates an OpenCL context. |
static cl_context |
CL.clCreateContextFromType(cl_context_properties properties,
long device_type,
CreateContextFunction pfn_notify,
java.lang.Object user_data,
int[] errcode_ret)
Create an OpenCL context from a device type that identifies the specific device(s) to use. |
Methods in org.jocl with parameters of type cl_context | |
---|---|
static cl_mem |
CL.clCreateBuffer(cl_context context,
long flags,
long size,
Pointer host_ptr,
int[] errcode_ret)
Creates a buffer object. |
static cl_command_queue |
CL.clCreateCommandQueue(cl_context context,
cl_device_id device,
long properties,
int[] errcode_ret)
Create a command-queue on a specific device. |
static cl_mem |
CL.clCreateFromGLBuffer(cl_context context,
long flags,
int bufobj,
int[] errcode_ret)
Creates an OpenCL buffer object from an OpenGL buffer object. |
static cl_mem |
CL.clCreateFromGLRenderbuffer(cl_context context,
long flags,
int renderbuffer,
int[] errcode_ret)
Creates an OpenCL 2D image object from an OpenGL renderbuffer object. |
static cl_mem |
CL.clCreateFromGLTexture2D(cl_context context,
long flags,
int target,
int miplevel,
int texture,
int[] errcode_ret)
Creates an OpenCL 2D image object from an OpenGL 2D texture object, or a single face of an OpenGL cubemap texture object. |
static cl_mem |
CL.clCreateFromGLTexture3D(cl_context context,
long flags,
int target,
int miplevel,
int texture,
int[] errcode_ret)
Creates an OpenCL 3D image object from an OpenGL 3D texture object. |
static cl_mem |
CL.clCreateImage2D(cl_context context,
long flags,
cl_image_format[] image_format,
long image_width,
long image_height,
long image_row_pitch,
Pointer host_ptr,
int[] errcode_ret)
Creates a 2D image object. |
static cl_mem |
CL.clCreateImage3D(cl_context context,
long flags,
cl_image_format[] image_format,
long image_width,
long image_height,
long image_depth,
long image_row_pitch,
long image_slice_pitch,
Pointer host_ptr,
int[] errcode_ret)
Creates a 3D image object. |
static cl_program |
CL.clCreateProgramWithBinary(cl_context context,
int num_devices,
cl_device_id[] device_list,
long[] lengths,
byte[][] binaries,
int[] binary_status,
int[] errcode_ret)
Creates a program object for a context, and loads the binary bits specified by binary into the program object. |
static cl_program |
CL.clCreateProgramWithSource(cl_context context,
int count,
java.lang.String[] strings,
long[] lengths,
int[] errcode_ret)
Creates a program object for a context, and loads the source code specified by the text strings in the strings array into the program object. |
static cl_sampler |
CL.clCreateSampler(cl_context context,
boolean normalized_coords,
int addressing_mode,
int filter_mode,
int[] errcode_ret)
Creates a sampler object. |
static cl_event |
CL.clCreateUserEvent(cl_context context,
int[] errcode_ret)
Creates a user event object. |
static int |
CL.clGetContextInfo(cl_context context,
int param_name,
long param_value_size,
Pointer param_value,
long[] param_value_size_ret)
Query information about a context. |
static int |
CL.clGetSupportedImageFormats(cl_context context,
long flags,
int image_type,
int num_entries,
cl_image_format[] image_formats,
int[] num_image_formats)
Get the list of image formats supported by an OpenCL implementation. |
static int |
CL.clReleaseContext(cl_context context)
Decrement the context reference count. |
static int |
CL.clRetainContext(cl_context context)
Increment the context reference count. |
|
|||||||||
PREV NEXT | FRAMES NO FRAMES |