com.jogamp.opencl.llb
Interface CLContextBinding

All Known Subinterfaces:
CL, CLGL
All Known Implementing Classes:
CLAbstractImpl, CLImpl

public interface CLContextBinding

Java bindings to OpenCL contexts.

Author:
Michael Bien, GlueGen, et al.

Field Summary
static int CL_CONTEXT_DEVICES
           
static int CL_CONTEXT_NUM_DEVICES
           
static int CL_CONTEXT_PLATFORM
           
static int CL_CONTEXT_PROPERTIES
           
static int CL_CONTEXT_REFERENCE_COUNT
           
 
Method Summary
 long clCreateContext(PointerBuffer properties, PointerBuffer devices, CLErrorHandler pfn_notify, IntBuffer errcode_ret)
          Interface to C language function:
cl_context clCreateContext(intptr_t * , uint32_t, cl_device_id * , void (*pfn_notify)(const char *, const void *, size_t, void *), void *, int32_t * );
 long clCreateContextFromType(PointerBuffer properties, long device_type, CLErrorHandler pfn_notify, IntBuffer errcode_ret)
          Interface to C language function:
cl_context clCreateContextFromType(cl_context_properties *properties, cl_device_type device_type, void (*pfn_notify)(const char *errinfo, const void *private_info, size_t cb, void *user_data), void *user_data, cl_int *errcode_ret) ;
 int clGetContextInfo(long context, int param_name, long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret)
          Interface to C language function:
cl_int clGetContextInfo(cl_context context, cl_context_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret);
 int clGetSupportedImageFormats(long context, long flags, int image_type, int num_entries, CLImageFormatImpl image_formats, int[] num_image_formats, int num_image_formats_offset)
          Interface to C language function:
cl_int clGetSupportedImageFormats(cl_context context, cl_mem_flags flags, cl_mem_object_type image_type, cl_uint num_entries, cl_image_format * image_formats, cl_uint * num_image_formats);
 int clGetSupportedImageFormats(long context, long flags, int image_type, int num_entries, CLImageFormatImpl image_formats, IntBuffer num_image_formats)
          Interface to C language function:
cl_int clGetSupportedImageFormats(cl_context context, cl_mem_flags flags, cl_mem_object_type image_type, cl_uint num_entries, cl_image_format * image_formats, cl_uint * num_image_formats);
 int clReleaseContext(long context)
          Interface to C language function:
cl_int clReleaseContext(cl_context context);
 int clRetainContext(long context)
          Interface to C language function:
cl_int clRetainContext(cl_context context);
 

Field Detail

CL_CONTEXT_REFERENCE_COUNT

static final int CL_CONTEXT_REFERENCE_COUNT
See Also:
Constant Field Values

CL_CONTEXT_DEVICES

static final int CL_CONTEXT_DEVICES
See Also:
Constant Field Values

CL_CONTEXT_PROPERTIES

static final int CL_CONTEXT_PROPERTIES
See Also:
Constant Field Values

CL_CONTEXT_NUM_DEVICES

static final int CL_CONTEXT_NUM_DEVICES
See Also:
Constant Field Values

CL_CONTEXT_PLATFORM

static final int CL_CONTEXT_PLATFORM
See Also:
Constant Field Values
Method Detail

clGetContextInfo

int clGetContextInfo(long context,
                     int param_name,
                     long param_value_size,
                     Buffer param_value,
                     PointerBuffer param_value_size_ret)
Interface to C language function:
cl_int clGetContextInfo(cl_context context, cl_context_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret);

Parameters:
param_value - a direct Buffer
param_value_size_ret - a direct PointerBuffer

clGetSupportedImageFormats

int clGetSupportedImageFormats(long context,
                               long flags,
                               int image_type,
                               int num_entries,
                               CLImageFormatImpl image_formats,
                               IntBuffer num_image_formats)
Interface to C language function:
cl_int clGetSupportedImageFormats(cl_context context, cl_mem_flags flags, cl_mem_object_type image_type, cl_uint num_entries, cl_image_format * image_formats, cl_uint * num_image_formats);


clGetSupportedImageFormats

int clGetSupportedImageFormats(long context,
                               long flags,
                               int image_type,
                               int num_entries,
                               CLImageFormatImpl image_formats,
                               int[] num_image_formats,
                               int num_image_formats_offset)
Interface to C language function:
cl_int clGetSupportedImageFormats(cl_context context, cl_mem_flags flags, cl_mem_object_type image_type, cl_uint num_entries, cl_image_format * image_formats, cl_uint * num_image_formats);


clReleaseContext

int clReleaseContext(long context)
Interface to C language function:
cl_int clReleaseContext(cl_context context);


clRetainContext

int clRetainContext(long context)
Interface to C language function:
cl_int clRetainContext(cl_context context);


clCreateContext

long clCreateContext(PointerBuffer properties,
                     PointerBuffer devices,
                     CLErrorHandler pfn_notify,
                     IntBuffer errcode_ret)
Interface to C language function:
cl_context clCreateContext(intptr_t * , uint32_t, cl_device_id * , void (*pfn_notify)(const char *, const void *, size_t, void *), void *, int32_t * );


clCreateContextFromType

long clCreateContextFromType(PointerBuffer properties,
                             long device_type,
                             CLErrorHandler pfn_notify,
                             IntBuffer errcode_ret)
Interface to C language function:
cl_context clCreateContextFromType(cl_context_properties *properties, cl_device_type device_type, void (*pfn_notify)(const char *errinfo, const void *private_info, size_t cb, void *user_data), void *user_data, cl_int *errcode_ret) ;