public interface CLContextBinding
Modifier and Type | Field and Description |
---|---|
static int |
CL_CONTEXT_DEVICES
CType: int
|
static int |
CL_CONTEXT_NUM_DEVICES
CType: int
|
static int |
CL_CONTEXT_PLATFORM
CType: int
|
static int |
CL_CONTEXT_PROPERTIES
CType: int
|
static int |
CL_CONTEXT_REFERENCE_COUNT
CType: int
|
Modifier and Type | Method and Description |
---|---|
long |
clCreateContext(PointerBuffer properties,
PointerBuffer devices,
CLErrorHandler pfn_notify,
IntBuffer errcode_ret)
Interface to C language function:
cl_context (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 (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 (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 (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 (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 (cl_context context) |
int |
clRetainContext(long context)
Interface to C language function:
cl_int (cl_context context) |
static final int CL_CONTEXT_DEVICES
static final int CL_CONTEXT_PLATFORM
static final int CL_CONTEXT_REFERENCE_COUNT
static final int CL_CONTEXT_NUM_DEVICES
static final int CL_CONTEXT_PROPERTIES
int clRetainContext(long context)
cl_int (cl_context context)
int clReleaseContext(long context)
cl_int (cl_context context)
int clGetContextInfo(long context, int param_name, long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret)
cl_int (cl_context context, cl_context_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret)
param_value
- a direct only Buffer
param_value_size_ret
- a direct only PointerBuffer
int clGetSupportedImageFormats(long context, long flags, int image_type, int num_entries, CLImageFormatImpl image_formats, IntBuffer num_image_formats)
cl_int (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)
num_image_formats
- a direct or array-backed IntBuffer
int clGetSupportedImageFormats(long context, long flags, int image_type, int num_entries, CLImageFormatImpl image_formats, int[] num_image_formats, int num_image_formats_offset)
cl_int (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)
long clCreateContext(PointerBuffer properties, PointerBuffer devices, CLErrorHandler pfn_notify, IntBuffer errcode_ret)
cl_context (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)
cl_context (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) ;