Top Description Fields Methods
com.jogamp.opencl.llb

public Interface CLContextBinding

Known Direct Subinterfaces
com.jogamp.opencl.llb.CL
Imports
com.jogamp.opencl.llb.impl.CLImageFormatImpl, com.jogamp.opencl.CLErrorHandler, com.jogamp.gluegen.runtime.*, com.jogamp.common.os.*, com.jogamp.common.nio.*, java.nio.*

Java bindings to OpenCL contexts.
Author
Michael Bien, GlueGen, et al.

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final int
public static final int
public static final int

Method Summary

Modifier and TypeMethod and Description
public long
clCreateContext(PointerBuffer properties, PointerBuffer devices, CLErrorHandler pfn_notify, IntBuffer errcode_ret)

Interface to C language function: cl_context {@native clCreateContext}(intptr_t * , uint32_t, cl_device_id * , void (*pfn_notify)(const char *, const void *, size_t, void *), void *, int32_t * );

public long
clCreateContextFromType(PointerBuffer properties, long device_type, CLErrorHandler pfn_notify, IntBuffer errcode_ret)

Interface to C language function: cl_context {@native 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) ;

public int
clGetContextInfo(long context, int param_name, long param_value_size, Buffer
a direct only java.nio.Buffer
param_value
,
PointerBuffer param_value_size_ret)

Interface to C language function: cl_int {@native clGetContextInfo}(cl_context context, cl_context_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret)

public int
clGetSupportedImageFormats(long context, long flags, int image_type, int num_entries, CLImageFormatImpl image_formats, IntBuffer
a direct or array-backed java.nio.IntBuffer
num_image_formats
)

Interface to C language function: cl_int {@native 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)

public 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 {@native 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)

public int
clReleaseContext(long context)

Interface to C language function: cl_int {@native clReleaseContext}(cl_context context)

public int
clRetainContext(long context)

Interface to C language function: cl_int {@native clRetainContext}(cl_context context)

Field Detail

CL_CONTEXT_DEVICESback to summary
public static final int CL_CONTEXT_DEVICES

CType: int

CL_CONTEXT_NUM_DEVICESback to summary
public static final int CL_CONTEXT_NUM_DEVICES

CType: int

CL_CONTEXT_PLATFORMback to summary
public static final int CL_CONTEXT_PLATFORM

CType: int

CL_CONTEXT_PROPERTIESback to summary
public static final int CL_CONTEXT_PROPERTIES

CType: int

CL_CONTEXT_REFERENCE_COUNTback to summary
public static final int CL_CONTEXT_REFERENCE_COUNT

CType: int

Method Detail

clCreateContextback to summary
public long clCreateContext(PointerBuffer properties, PointerBuffer devices, CLErrorHandler pfn_notify, IntBuffer errcode_ret)

Interface to C language function:
cl_context {@native clCreateContext}(intptr_t * , uint32_t, cl_device_id * , void (*pfn_notify)(const char *, const void *, size_t, void *), void *, int32_t * );

clCreateContextFromTypeback to summary
public long clCreateContextFromType(PointerBuffer properties, long device_type, CLErrorHandler pfn_notify, IntBuffer errcode_ret)

Interface to C language function:
cl_context {@native 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) ;

clGetContextInfoback to summary
public 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 {@native 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:Buffer

a direct only java.nio.Buffer

param_value_size_ret:PointerBuffer

a direct only com.jogamp.common.nio.PointerBuffer

clGetSupportedImageFormatsback to summary
public 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 {@native 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)

Parameters
num_image_formats:IntBuffer

a direct or array-backed java.nio.IntBuffer

clGetSupportedImageFormatsback to summary
public 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 {@native 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)

clReleaseContextback to summary
public int clReleaseContext(long context)

Interface to C language function:
cl_int {@native clReleaseContext}(cl_context context)

clRetainContextback to summary
public int clRetainContext(long context)

Interface to C language function:
cl_int {@native clRetainContext}(cl_context context)