4package com.jogamp.opencl.llb.impl;
6import com.jogamp.opencl.llb.impl.CLImageFormatImpl;
7import com.jogamp.opencl.llb.CL11;
8import java.security.AccessController;
9import java.security.PrivilegedAction;
10import com.jogamp.common.nio.PointerBuffer;
11import com.jogamp.common.util.LongLongHashMap;
12import com.jogamp.opencl.CLErrorHandler;
13import com.jogamp.opencl.CLException;
14import java.nio.ByteBuffer;
15import java.nio.IntBuffer;
16import com.jogamp.common.nio.Buffers;
17import com.jogamp.gluegen.runtime.*;
18import com.jogamp.common.os.*;
19import com.jogamp.common.nio.*;
21import com.jogamp.common.util.*;
24import java.util.HashMap;
25import java.nio.charset.Charset;
26import java.nio.charset.StandardCharsets;
36 public int clGetPlatformIDs(
int num_entries, PointerBuffer platforms, IntBuffer num_platforms) {
38 if (!Buffers.isDirect(platforms))
39 throw new IllegalArgumentException(
"Argument \"platforms\" is not a direct buffer");
40 if (!Buffers.isDirect(num_platforms))
41 throw new IllegalArgumentException(
"Argument \"num_platforms\" is not a direct buffer");
42 final long __addr_ =
addressTable._addressof_clGetPlatformIDs;
44 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clGetPlatformIDs"));
46 return dispatch_clGetPlatformIDs0(num_entries, platforms !=
null ? platforms.getBuffer() :
null, Buffers.getDirectBufferByteOffset(platforms), num_platforms, Buffers.getDirectBufferByteOffset(num_platforms), __addr_);
52 private native
int dispatch_clGetPlatformIDs0(
int num_entries, Object platforms,
int platforms_byte_offset, Object num_platforms,
int num_platforms_byte_offset,
long procAddress);
57 public int clGetPlatformInfo(
long platform,
int param_name,
long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret) {
59 if (!Buffers.isDirect(param_value))
60 throw new IllegalArgumentException(
"Argument \"param_value\" is not a direct buffer");
61 if (!Buffers.isDirect(param_value_size_ret))
62 throw new IllegalArgumentException(
"Argument \"param_value_size_ret\" is not a direct buffer");
63 final long __addr_ =
addressTable._addressof_clGetPlatformInfo;
65 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clGetPlatformInfo"));
67 return dispatch_clGetPlatformInfo0(platform, param_name, param_value_size, param_value, Buffers.getDirectBufferByteOffset(param_value), param_value_size_ret !=
null ? param_value_size_ret.getBuffer() :
null, Buffers.getDirectBufferByteOffset(param_value_size_ret), __addr_);
73 private native
int dispatch_clGetPlatformInfo0(
long platform,
int param_name,
long param_value_size, Object param_value,
int param_value_byte_offset, Object param_value_size_ret,
int param_value_size_ret_byte_offset,
long procAddress);
78 public int clGetDeviceIDs(
long platform,
long device_type,
int num_entries, PointerBuffer devices, IntBuffer num_devices) {
80 if (!Buffers.isDirect(devices))
81 throw new IllegalArgumentException(
"Argument \"devices\" is not a direct buffer");
82 if (!Buffers.isDirect(num_devices))
83 throw new IllegalArgumentException(
"Argument \"num_devices\" is not a direct buffer");
84 final long __addr_ =
addressTable._addressof_clGetDeviceIDs;
86 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clGetDeviceIDs"));
88 return dispatch_clGetDeviceIDs0(platform, device_type, num_entries, devices !=
null ? devices.getBuffer() :
null, Buffers.getDirectBufferByteOffset(devices), num_devices, Buffers.getDirectBufferByteOffset(num_devices), __addr_);
94 private native
int dispatch_clGetDeviceIDs0(
long platform,
long device_type,
int num_entries, Object devices,
int devices_byte_offset, Object num_devices,
int num_devices_byte_offset,
long procAddress);
99 public int clGetDeviceInfo(
long device,
int param_name,
long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret) {
101 if (!Buffers.isDirect(param_value))
102 throw new IllegalArgumentException(
"Argument \"param_value\" is not a direct buffer");
103 if (!Buffers.isDirect(param_value_size_ret))
104 throw new IllegalArgumentException(
"Argument \"param_value_size_ret\" is not a direct buffer");
105 final long __addr_ =
addressTable._addressof_clGetDeviceInfo;
107 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clGetDeviceInfo"));
109 return dispatch_clGetDeviceInfo0(device, param_name, param_value_size, param_value, Buffers.getDirectBufferByteOffset(param_value), param_value_size_ret !=
null ? param_value_size_ret.getBuffer() :
null, Buffers.getDirectBufferByteOffset(param_value_size_ret), __addr_);
115 private native
int dispatch_clGetDeviceInfo0(
long device,
int param_name,
long param_value_size, Object param_value,
int param_value_byte_offset, Object param_value_size_ret,
int param_value_size_ret_byte_offset,
long procAddress);
120 final long __addr_ =
addressTable._addressof_clRetainContext;
122 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clRetainContext"));
124 return dispatch_clRetainContext1(context, __addr_);
128 private native
int dispatch_clRetainContext1(
long context,
long procAddress);
133 public int clGetContextInfo(
long context,
int param_name,
long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret) {
135 if (!Buffers.isDirect(param_value))
136 throw new IllegalArgumentException(
"Argument \"param_value\" is not a direct buffer");
137 if (!Buffers.isDirect(param_value_size_ret))
138 throw new IllegalArgumentException(
"Argument \"param_value_size_ret\" is not a direct buffer");
139 final long __addr_ =
addressTable._addressof_clGetContextInfo;
141 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clGetContextInfo"));
143 return dispatch_clGetContextInfo0(context, param_name, param_value_size, param_value, Buffers.getDirectBufferByteOffset(param_value), param_value_size_ret !=
null ? param_value_size_ret.getBuffer() :
null, Buffers.getDirectBufferByteOffset(param_value_size_ret), __addr_);
149 private native
int dispatch_clGetContextInfo0(
long context,
int param_name,
long param_value_size, Object param_value,
int param_value_byte_offset, Object param_value_size_ret,
int param_value_size_ret_byte_offset,
long procAddress);
155 final boolean errcode_ret_is_direct = Buffers.isDirect(errcode_ret);
156 final long __addr_ =
addressTable._addressof_clCreateCommandQueue;
158 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clCreateCommandQueue"));
160 return dispatch_clCreateCommandQueue1(context, device, properties, errcode_ret_is_direct ? errcode_ret : Buffers.getArray(errcode_ret), errcode_ret_is_direct ? Buffers.getDirectBufferByteOffset(errcode_ret) : Buffers.getIndirectBufferByteOffset(errcode_ret), errcode_ret_is_direct, __addr_);
165 private native
long dispatch_clCreateCommandQueue1(
long context,
long device,
long properties, Object errcode_ret,
int errcode_ret_byte_offset,
boolean errcode_ret_is_direct,
long procAddress);
168 public long clCreateCommandQueue(
long context,
long device,
long properties,
int[] errcode_ret,
int errcode_ret_offset) {
170 if(errcode_ret !=
null && errcode_ret.length <= errcode_ret_offset)
171 throw new IllegalArgumentException(
"array offset argument \"errcode_ret_offset\" (" + errcode_ret_offset +
") equals or exceeds array length (" + errcode_ret.length +
")");
172 final long __addr_ =
addressTable._addressof_clCreateCommandQueue;
174 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clCreateCommandQueue"));
176 return dispatch_clCreateCommandQueue1(context, device, properties, errcode_ret, Buffers.SIZEOF_INT * errcode_ret_offset,
false, __addr_);
182 final long __addr_ =
addressTable._addressof_clRetainCommandQueue;
184 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clRetainCommandQueue"));
186 return dispatch_clRetainCommandQueue1(command_queue, __addr_);
190 private native
int dispatch_clRetainCommandQueue1(
long command_queue,
long procAddress);
195 final long __addr_ =
addressTable._addressof_clReleaseCommandQueue;
197 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clReleaseCommandQueue"));
199 return dispatch_clReleaseCommandQueue1(command_queue, __addr_);
203 private native
int dispatch_clReleaseCommandQueue1(
long command_queue,
long procAddress);
208 public int clGetCommandQueueInfo(
long command_queue,
int param_name,
long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret) {
210 if (!Buffers.isDirect(param_value))
211 throw new IllegalArgumentException(
"Argument \"param_value\" is not a direct buffer");
212 if (!Buffers.isDirect(param_value_size_ret))
213 throw new IllegalArgumentException(
"Argument \"param_value_size_ret\" is not a direct buffer");
214 final long __addr_ =
addressTable._addressof_clGetCommandQueueInfo;
216 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clGetCommandQueueInfo"));
218 return dispatch_clGetCommandQueueInfo0(command_queue, param_name, param_value_size, param_value, Buffers.getDirectBufferByteOffset(param_value), param_value_size_ret !=
null ? param_value_size_ret.getBuffer() :
null, Buffers.getDirectBufferByteOffset(param_value_size_ret), __addr_);
224 private native
int dispatch_clGetCommandQueueInfo0(
long command_queue,
int param_name,
long param_value_size, Object param_value,
int param_value_byte_offset, Object param_value_size_ret,
int param_value_size_ret_byte_offset,
long procAddress);
229 public long clCreateBuffer(
long context,
long flags,
long size, Buffer host_ptr, IntBuffer errcode_ret) {
231 final boolean host_ptr_is_direct = Buffers.isDirect(host_ptr);
232 final boolean errcode_ret_is_direct = Buffers.isDirect(errcode_ret);
233 final long __addr_ =
addressTable._addressof_clCreateBuffer;
235 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clCreateBuffer"));
237 return dispatch_clCreateBuffer1(context, flags, size, host_ptr_is_direct ? host_ptr : Buffers.getArray(host_ptr), host_ptr_is_direct ? Buffers.getDirectBufferByteOffset(host_ptr) : Buffers.getIndirectBufferByteOffset(host_ptr), host_ptr_is_direct, errcode_ret_is_direct ? errcode_ret : Buffers.getArray(errcode_ret), errcode_ret_is_direct ? Buffers.getDirectBufferByteOffset(errcode_ret) : Buffers.getIndirectBufferByteOffset(errcode_ret), errcode_ret_is_direct, __addr_);
243 private native
long dispatch_clCreateBuffer1(
long context,
long flags,
long size, Object host_ptr,
int host_ptr_byte_offset,
boolean host_ptr_is_direct, Object errcode_ret,
int errcode_ret_byte_offset,
boolean errcode_ret_is_direct,
long procAddress);
247 public long clCreateBuffer(
long context,
long flags,
long size, Buffer host_ptr,
int[] errcode_ret,
int errcode_ret_offset) {
249 final boolean host_ptr_is_direct = Buffers.isDirect(host_ptr);
250 if(errcode_ret !=
null && errcode_ret.length <= errcode_ret_offset)
251 throw new IllegalArgumentException(
"array offset argument \"errcode_ret_offset\" (" + errcode_ret_offset +
") equals or exceeds array length (" + errcode_ret.length +
")");
252 final long __addr_ =
addressTable._addressof_clCreateBuffer;
254 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clCreateBuffer"));
256 return dispatch_clCreateBuffer1(context, flags, size, host_ptr_is_direct ? host_ptr : Buffers.getArray(host_ptr), host_ptr_is_direct ? Buffers.getDirectBufferByteOffset(host_ptr) : Buffers.getIndirectBufferByteOffset(host_ptr), host_ptr_is_direct, errcode_ret, Buffers.SIZEOF_INT * errcode_ret_offset,
false, __addr_);
262 public long clCreateSubBuffer(
long buffer,
long flags,
int buffer_create_type, Buffer buffer_create_info, IntBuffer errcode_ret) {
264 final boolean buffer_create_info_is_direct = Buffers.isDirect(buffer_create_info);
265 final boolean errcode_ret_is_direct = Buffers.isDirect(errcode_ret);
266 final long __addr_ =
addressTable._addressof_clCreateSubBuffer;
268 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clCreateSubBuffer"));
270 return dispatch_clCreateSubBuffer1(buffer, flags, buffer_create_type, buffer_create_info_is_direct ? buffer_create_info : Buffers.getArray(buffer_create_info), buffer_create_info_is_direct ? Buffers.getDirectBufferByteOffset(buffer_create_info) : Buffers.getIndirectBufferByteOffset(buffer_create_info), buffer_create_info_is_direct, errcode_ret_is_direct ? errcode_ret : Buffers.getArray(errcode_ret), errcode_ret_is_direct ? Buffers.getDirectBufferByteOffset(errcode_ret) : Buffers.getIndirectBufferByteOffset(errcode_ret), errcode_ret_is_direct, __addr_);
276 private native
long dispatch_clCreateSubBuffer1(
long buffer,
long flags,
int buffer_create_type, Object buffer_create_info,
int buffer_create_info_byte_offset,
boolean buffer_create_info_is_direct, Object errcode_ret,
int errcode_ret_byte_offset,
boolean errcode_ret_is_direct,
long procAddress);
280 public long clCreateSubBuffer(
long buffer,
long flags,
int buffer_create_type, Buffer buffer_create_info,
int[] errcode_ret,
int errcode_ret_offset) {
282 final boolean buffer_create_info_is_direct = Buffers.isDirect(buffer_create_info);
283 if(errcode_ret !=
null && errcode_ret.length <= errcode_ret_offset)
284 throw new IllegalArgumentException(
"array offset argument \"errcode_ret_offset\" (" + errcode_ret_offset +
") equals or exceeds array length (" + errcode_ret.length +
")");
285 final long __addr_ =
addressTable._addressof_clCreateSubBuffer;
287 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clCreateSubBuffer"));
289 return dispatch_clCreateSubBuffer1(buffer, flags, buffer_create_type, buffer_create_info_is_direct ? buffer_create_info : Buffers.getArray(buffer_create_info), buffer_create_info_is_direct ? Buffers.getDirectBufferByteOffset(buffer_create_info) : Buffers.getIndirectBufferByteOffset(buffer_create_info), buffer_create_info_is_direct, errcode_ret, Buffers.SIZEOF_INT * errcode_ret_offset,
false, __addr_);
295 public long clCreateImage2D(
long context,
long flags,
CLImageFormatImpl image_format,
long image_width,
long image_height,
long image_row_pitch, Buffer host_ptr, IntBuffer errcode_ret) {
297 final boolean host_ptr_is_direct = Buffers.isDirect(host_ptr);
298 final boolean errcode_ret_is_direct = Buffers.isDirect(errcode_ret);
299 final long __addr_ =
addressTable._addressof_clCreateImage2D;
301 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clCreateImage2D"));
303 return dispatch_clCreateImage2D1(context, flags, ((image_format ==
null) ?
null : image_format.
getBuffer()), image_width, image_height, image_row_pitch, host_ptr_is_direct ? host_ptr : Buffers.getArray(host_ptr), host_ptr_is_direct ? Buffers.getDirectBufferByteOffset(host_ptr) : Buffers.getIndirectBufferByteOffset(host_ptr), host_ptr_is_direct, errcode_ret_is_direct ? errcode_ret : Buffers.getArray(errcode_ret), errcode_ret_is_direct ? Buffers.getDirectBufferByteOffset(errcode_ret) : Buffers.getIndirectBufferByteOffset(errcode_ret), errcode_ret_is_direct, __addr_);
309 private native
long dispatch_clCreateImage2D1(
long context,
long flags, ByteBuffer image_format,
long image_width,
long image_height,
long image_row_pitch, Object host_ptr,
int host_ptr_byte_offset,
boolean host_ptr_is_direct, Object errcode_ret,
int errcode_ret_byte_offset,
boolean errcode_ret_is_direct,
long procAddress);
313 public long clCreateImage2D(
long context,
long flags,
CLImageFormatImpl image_format,
long image_width,
long image_height,
long image_row_pitch, Buffer host_ptr,
int[] errcode_ret,
int errcode_ret_offset) {
315 final boolean host_ptr_is_direct = Buffers.isDirect(host_ptr);
316 if(errcode_ret !=
null && errcode_ret.length <= errcode_ret_offset)
317 throw new IllegalArgumentException(
"array offset argument \"errcode_ret_offset\" (" + errcode_ret_offset +
") equals or exceeds array length (" + errcode_ret.length +
")");
318 final long __addr_ =
addressTable._addressof_clCreateImage2D;
320 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clCreateImage2D"));
322 return dispatch_clCreateImage2D1(context, flags, ((image_format ==
null) ?
null : image_format.
getBuffer()), image_width, image_height, image_row_pitch, host_ptr_is_direct ? host_ptr : Buffers.getArray(host_ptr), host_ptr_is_direct ? Buffers.getDirectBufferByteOffset(host_ptr) : Buffers.getIndirectBufferByteOffset(host_ptr), host_ptr_is_direct, errcode_ret, Buffers.SIZEOF_INT * errcode_ret_offset,
false, __addr_);
328 public long clCreateImage3D(
long context,
long flags,
CLImageFormatImpl 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) {
330 final boolean host_ptr_is_direct = Buffers.isDirect(host_ptr);
331 final boolean errcode_ret_is_direct = Buffers.isDirect(errcode_ret);
332 final long __addr_ =
addressTable._addressof_clCreateImage3D;
334 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clCreateImage3D"));
336 return dispatch_clCreateImage3D1(context, flags, ((image_format ==
null) ?
null : image_format.
getBuffer()), image_width, image_height, image_depth, image_row_pitch, image_slice_pitch, host_ptr_is_direct ? host_ptr : Buffers.getArray(host_ptr), host_ptr_is_direct ? Buffers.getDirectBufferByteOffset(host_ptr) : Buffers.getIndirectBufferByteOffset(host_ptr), host_ptr_is_direct, errcode_ret_is_direct ? errcode_ret : Buffers.getArray(errcode_ret), errcode_ret_is_direct ? Buffers.getDirectBufferByteOffset(errcode_ret) : Buffers.getIndirectBufferByteOffset(errcode_ret), errcode_ret_is_direct, __addr_);
342 private native
long dispatch_clCreateImage3D1(
long context,
long flags, ByteBuffer image_format,
long image_width,
long image_height,
long image_depth,
long image_row_pitch,
long image_slice_pitch, Object host_ptr,
int host_ptr_byte_offset,
boolean host_ptr_is_direct, Object errcode_ret,
int errcode_ret_byte_offset,
boolean errcode_ret_is_direct,
long procAddress);
346 public long clCreateImage3D(
long context,
long flags,
CLImageFormatImpl image_format,
long image_width,
long image_height,
long image_depth,
long image_row_pitch,
long image_slice_pitch, Buffer host_ptr,
int[] errcode_ret,
int errcode_ret_offset) {
348 final boolean host_ptr_is_direct = Buffers.isDirect(host_ptr);
349 if(errcode_ret !=
null && errcode_ret.length <= errcode_ret_offset)
350 throw new IllegalArgumentException(
"array offset argument \"errcode_ret_offset\" (" + errcode_ret_offset +
") equals or exceeds array length (" + errcode_ret.length +
")");
351 final long __addr_ =
addressTable._addressof_clCreateImage3D;
353 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clCreateImage3D"));
355 return dispatch_clCreateImage3D1(context, flags, ((image_format ==
null) ?
null : image_format.
getBuffer()), image_width, image_height, image_depth, image_row_pitch, image_slice_pitch, host_ptr_is_direct ? host_ptr : Buffers.getArray(host_ptr), host_ptr_is_direct ? Buffers.getDirectBufferByteOffset(host_ptr) : Buffers.getIndirectBufferByteOffset(host_ptr), host_ptr_is_direct, errcode_ret, Buffers.SIZEOF_INT * errcode_ret_offset,
false, __addr_);
361 final long __addr_ =
addressTable._addressof_clRetainMemObject;
363 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clRetainMemObject"));
365 return dispatch_clRetainMemObject1(memobj, __addr_);
369 private native
int dispatch_clRetainMemObject1(
long memobj,
long procAddress);
374 final long __addr_ =
addressTable._addressof_clReleaseMemObject;
376 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clReleaseMemObject"));
378 return dispatch_clReleaseMemObject1(memobj, __addr_);
382 private native
int dispatch_clReleaseMemObject1(
long memobj,
long procAddress);
388 final boolean num_image_formats_is_direct = Buffers.isDirect(num_image_formats);
389 final long __addr_ =
addressTable._addressof_clGetSupportedImageFormats;
391 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clGetSupportedImageFormats"));
393 return dispatch_clGetSupportedImageFormats1(context, flags, image_type, num_entries, ((image_formats ==
null) ?
null : image_formats.
getBuffer()), num_image_formats_is_direct ? num_image_formats : Buffers.getArray(num_image_formats), num_image_formats_is_direct ? Buffers.getDirectBufferByteOffset(num_image_formats) : Buffers.getIndirectBufferByteOffset(num_image_formats), num_image_formats_is_direct, __addr_);
398 private native
int dispatch_clGetSupportedImageFormats1(
long context,
long flags,
int image_type,
int num_entries, ByteBuffer image_formats, Object num_image_formats,
int num_image_formats_byte_offset,
boolean num_image_formats_is_direct,
long procAddress);
403 if(num_image_formats !=
null && num_image_formats.length <= num_image_formats_offset)
404 throw new IllegalArgumentException(
"array offset argument \"num_image_formats_offset\" (" + num_image_formats_offset +
") equals or exceeds array length (" + num_image_formats.length +
")");
405 final long __addr_ =
addressTable._addressof_clGetSupportedImageFormats;
407 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clGetSupportedImageFormats"));
409 return dispatch_clGetSupportedImageFormats1(context, flags, image_type, num_entries, ((image_formats ==
null) ?
null : image_formats.
getBuffer()), num_image_formats, Buffers.SIZEOF_INT * num_image_formats_offset,
false, __addr_);
415 public int clGetMemObjectInfo(
long memobj,
int param_name,
long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret) {
417 if (!Buffers.isDirect(param_value))
418 throw new IllegalArgumentException(
"Argument \"param_value\" is not a direct buffer");
419 if (!Buffers.isDirect(param_value_size_ret))
420 throw new IllegalArgumentException(
"Argument \"param_value_size_ret\" is not a direct buffer");
421 final long __addr_ =
addressTable._addressof_clGetMemObjectInfo;
423 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clGetMemObjectInfo"));
425 return dispatch_clGetMemObjectInfo0(memobj, param_name, param_value_size, param_value, Buffers.getDirectBufferByteOffset(param_value), param_value_size_ret !=
null ? param_value_size_ret.getBuffer() :
null, Buffers.getDirectBufferByteOffset(param_value_size_ret), __addr_);
431 private native
int dispatch_clGetMemObjectInfo0(
long memobj,
int param_name,
long param_value_size, Object param_value,
int param_value_byte_offset, Object param_value_size_ret,
int param_value_size_ret_byte_offset,
long procAddress);
436 public int clGetImageInfo(
long image,
int param_name,
long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret) {
438 if (!Buffers.isDirect(param_value))
439 throw new IllegalArgumentException(
"Argument \"param_value\" is not a direct buffer");
440 if (!Buffers.isDirect(param_value_size_ret))
441 throw new IllegalArgumentException(
"Argument \"param_value_size_ret\" is not a direct buffer");
442 final long __addr_ =
addressTable._addressof_clGetImageInfo;
444 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clGetImageInfo"));
446 return dispatch_clGetImageInfo0(image, param_name, param_value_size, param_value, Buffers.getDirectBufferByteOffset(param_value), param_value_size_ret !=
null ? param_value_size_ret.getBuffer() :
null, Buffers.getDirectBufferByteOffset(param_value_size_ret), __addr_);
452 private native
int dispatch_clGetImageInfo0(
long image,
int param_name,
long param_value_size, Object param_value,
int param_value_byte_offset, Object param_value_size_ret,
int param_value_size_ret_byte_offset,
long procAddress);
456 public long clCreateSampler(
long context,
int normalized_coords,
int addressing_mode,
int filter_mode, IntBuffer errcode_ret) {
458 final boolean errcode_ret_is_direct = Buffers.isDirect(errcode_ret);
459 final long __addr_ =
addressTable._addressof_clCreateSampler;
461 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clCreateSampler"));
463 return dispatch_clCreateSampler1(context, normalized_coords, addressing_mode, filter_mode, errcode_ret_is_direct ? errcode_ret : Buffers.getArray(errcode_ret), errcode_ret_is_direct ? Buffers.getDirectBufferByteOffset(errcode_ret) : Buffers.getIndirectBufferByteOffset(errcode_ret), errcode_ret_is_direct, __addr_);
468 private native
long dispatch_clCreateSampler1(
long context,
int normalized_coords,
int addressing_mode,
int filter_mode, Object errcode_ret,
int errcode_ret_byte_offset,
boolean errcode_ret_is_direct,
long procAddress);
471 public long clCreateSampler(
long context,
int normalized_coords,
int addressing_mode,
int filter_mode,
int[] errcode_ret,
int errcode_ret_offset) {
473 if(errcode_ret !=
null && errcode_ret.length <= errcode_ret_offset)
474 throw new IllegalArgumentException(
"array offset argument \"errcode_ret_offset\" (" + errcode_ret_offset +
") equals or exceeds array length (" + errcode_ret.length +
")");
475 final long __addr_ =
addressTable._addressof_clCreateSampler;
477 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clCreateSampler"));
479 return dispatch_clCreateSampler1(context, normalized_coords, addressing_mode, filter_mode, errcode_ret, Buffers.SIZEOF_INT * errcode_ret_offset,
false, __addr_);
485 final long __addr_ =
addressTable._addressof_clRetainSampler;
487 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clRetainSampler"));
489 return dispatch_clRetainSampler1(sampler, __addr_);
493 private native
int dispatch_clRetainSampler1(
long sampler,
long procAddress);
498 final long __addr_ =
addressTable._addressof_clReleaseSampler;
500 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clReleaseSampler"));
502 return dispatch_clReleaseSampler1(sampler, __addr_);
506 private native
int dispatch_clReleaseSampler1(
long sampler,
long procAddress);
511 public int clGetSamplerInfo(
long sampler,
int param_name,
long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret) {
513 if (!Buffers.isDirect(param_value))
514 throw new IllegalArgumentException(
"Argument \"param_value\" is not a direct buffer");
515 if (!Buffers.isDirect(param_value_size_ret))
516 throw new IllegalArgumentException(
"Argument \"param_value_size_ret\" is not a direct buffer");
517 final long __addr_ =
addressTable._addressof_clGetSamplerInfo;
519 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clGetSamplerInfo"));
521 return dispatch_clGetSamplerInfo0(sampler, param_name, param_value_size, param_value, Buffers.getDirectBufferByteOffset(param_value), param_value_size_ret !=
null ? param_value_size_ret.getBuffer() :
null, Buffers.getDirectBufferByteOffset(param_value_size_ret), __addr_);
527 private native
int dispatch_clGetSamplerInfo0(
long sampler,
int param_name,
long param_value_size, Object param_value,
int param_value_byte_offset, Object param_value_size_ret,
int param_value_size_ret_byte_offset,
long procAddress);
534 if (!Buffers.isDirect(lengths))
535 throw new IllegalArgumentException(
"Argument \"lengths\" is not a direct buffer");
536 if (!Buffers.isDirect(errcode_ret))
537 throw new IllegalArgumentException(
"Argument \"errcode_ret\" is not a direct buffer");
538 final long __addr_ =
addressTable._addressof_clCreateProgramWithSource;
540 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clCreateProgramWithSource"));
542 return dispatch_clCreateProgramWithSource0(context, count, strings, lengths !=
null ? lengths.getBuffer() :
null, Buffers.getDirectBufferByteOffset(lengths), errcode_ret, Buffers.getDirectBufferByteOffset(errcode_ret), __addr_);
548 private native
long dispatch_clCreateProgramWithSource0(
long context,
int count, String[] strings, Object lengths,
int lengths_byte_offset, Object errcode_ret,
int errcode_ret_byte_offset,
long procAddress);
556 public long clCreateProgramWithBinary(
long context,
int num_devices, PointerBuffer device_list, PointerBuffer lengths, PointerBuffer binaries, IntBuffer binary_status, IntBuffer errcode_ret) {
558 if (!Buffers.isDirect(device_list))
559 throw new IllegalArgumentException(
"Argument \"device_list\" is not a direct buffer");
560 if (!Buffers.isDirect(lengths))
561 throw new IllegalArgumentException(
"Argument \"lengths\" is not a direct buffer");
562 if (!Buffers.isDirect(binaries))
563 throw new IllegalArgumentException(
"Argument \"binaries\" is not a direct buffer");
564 if (!Buffers.isDirect(binary_status))
565 throw new IllegalArgumentException(
"Argument \"binary_status\" is not a direct buffer");
566 if (!Buffers.isDirect(errcode_ret))
567 throw new IllegalArgumentException(
"Argument \"errcode_ret\" is not a direct buffer");
568 final long __addr_ =
addressTable._addressof_clCreateProgramWithBinary;
570 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clCreateProgramWithBinary"));
572 return dispatch_clCreateProgramWithBinary0(context, num_devices, device_list !=
null ? device_list.getBuffer() :
null, Buffers.getDirectBufferByteOffset(device_list), lengths !=
null ? lengths.getBuffer() :
null, Buffers.getDirectBufferByteOffset(lengths), binaries !=
null ? binaries.getBuffer() :
null, Buffers.getDirectBufferByteOffset(binaries), binary_status, Buffers.getDirectBufferByteOffset(binary_status), errcode_ret, Buffers.getDirectBufferByteOffset(errcode_ret), __addr_);
581 private native
long dispatch_clCreateProgramWithBinary0(
long context,
int num_devices, Object device_list,
int device_list_byte_offset, Object lengths,
int lengths_byte_offset, Object binaries,
int binaries_byte_offset, Object binary_status,
int binary_status_byte_offset, Object errcode_ret,
int errcode_ret_byte_offset,
long procAddress);
586 final long __addr_ =
addressTable._addressof_clRetainProgram;
588 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clRetainProgram"));
590 return dispatch_clRetainProgram1(program, __addr_);
594 private native
int dispatch_clRetainProgram1(
long program,
long procAddress);
599 final long __addr_ =
addressTable._addressof_clReleaseProgram;
601 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clReleaseProgram"));
603 return dispatch_clReleaseProgram1(program, __addr_);
607 private native
int dispatch_clReleaseProgram1(
long program,
long procAddress);
612 final long __addr_ =
addressTable._addressof_clUnloadCompiler;
614 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clUnloadCompiler"));
616 return dispatch_clUnloadCompiler1(__addr_);
620 private native
int dispatch_clUnloadCompiler1(
long procAddress);
625 public int clGetProgramInfo(
long program,
int param_name,
long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret) {
627 if (!Buffers.isDirect(param_value))
628 throw new IllegalArgumentException(
"Argument \"param_value\" is not a direct buffer");
629 if (!Buffers.isDirect(param_value_size_ret))
630 throw new IllegalArgumentException(
"Argument \"param_value_size_ret\" is not a direct buffer");
631 final long __addr_ =
addressTable._addressof_clGetProgramInfo;
633 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clGetProgramInfo"));
635 return dispatch_clGetProgramInfo0(program, param_name, param_value_size, param_value, Buffers.getDirectBufferByteOffset(param_value), param_value_size_ret !=
null ? param_value_size_ret.getBuffer() :
null, Buffers.getDirectBufferByteOffset(param_value_size_ret), __addr_);
641 private native
int dispatch_clGetProgramInfo0(
long program,
int param_name,
long param_value_size, Object param_value,
int param_value_byte_offset, Object param_value_size_ret,
int param_value_size_ret_byte_offset,
long procAddress);
646 public int clGetProgramBuildInfo(
long program,
long device,
int param_name,
long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret) {
648 if (!Buffers.isDirect(param_value))
649 throw new IllegalArgumentException(
"Argument \"param_value\" is not a direct buffer");
650 if (!Buffers.isDirect(param_value_size_ret))
651 throw new IllegalArgumentException(
"Argument \"param_value_size_ret\" is not a direct buffer");
652 final long __addr_ =
addressTable._addressof_clGetProgramBuildInfo;
654 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clGetProgramBuildInfo"));
656 return dispatch_clGetProgramBuildInfo0(program, device, param_name, param_value_size, param_value, Buffers.getDirectBufferByteOffset(param_value), param_value_size_ret !=
null ? param_value_size_ret.getBuffer() :
null, Buffers.getDirectBufferByteOffset(param_value_size_ret), __addr_);
662 private native
int dispatch_clGetProgramBuildInfo0(
long program,
long device,
int param_name,
long param_value_size, Object param_value,
int param_value_byte_offset, Object param_value_size_ret,
int param_value_size_ret_byte_offset,
long procAddress);
666 public long clCreateKernel(
long program, String kernel_name, IntBuffer errcode_ret) {
668 final boolean errcode_ret_is_direct = Buffers.isDirect(errcode_ret);
669 final long __addr_ =
addressTable._addressof_clCreateKernel;
671 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clCreateKernel"));
673 return dispatch_clCreateKernel1(program, kernel_name, errcode_ret_is_direct ? errcode_ret : Buffers.getArray(errcode_ret), errcode_ret_is_direct ? Buffers.getDirectBufferByteOffset(errcode_ret) : Buffers.getIndirectBufferByteOffset(errcode_ret), errcode_ret_is_direct, __addr_);
678 private native
long dispatch_clCreateKernel1(
long program, String kernel_name, Object errcode_ret,
int errcode_ret_byte_offset,
boolean errcode_ret_is_direct,
long procAddress);
681 public long clCreateKernel(
long program, String kernel_name,
int[] errcode_ret,
int errcode_ret_offset) {
683 if(errcode_ret !=
null && errcode_ret.length <= errcode_ret_offset)
684 throw new IllegalArgumentException(
"array offset argument \"errcode_ret_offset\" (" + errcode_ret_offset +
") equals or exceeds array length (" + errcode_ret.length +
")");
685 final long __addr_ =
addressTable._addressof_clCreateKernel;
687 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clCreateKernel"));
689 return dispatch_clCreateKernel1(program, kernel_name, errcode_ret, Buffers.SIZEOF_INT * errcode_ret_offset,
false, __addr_);
697 if (!Buffers.isDirect(kernels))
698 throw new IllegalArgumentException(
"Argument \"kernels\" is not a direct buffer");
699 if (!Buffers.isDirect(num_kernels_ret))
700 throw new IllegalArgumentException(
"Argument \"num_kernels_ret\" is not a direct buffer");
701 final long __addr_ =
addressTable._addressof_clCreateKernelsInProgram;
703 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clCreateKernelsInProgram"));
705 return dispatch_clCreateKernelsInProgram0(program, num_kernels, kernels !=
null ? kernels.getBuffer() :
null, Buffers.getDirectBufferByteOffset(kernels), num_kernels_ret, Buffers.getDirectBufferByteOffset(num_kernels_ret), __addr_);
711 private native
int dispatch_clCreateKernelsInProgram0(
long program,
int num_kernels, Object kernels,
int kernels_byte_offset, Object num_kernels_ret,
int num_kernels_ret_byte_offset,
long procAddress);
716 final long __addr_ =
addressTable._addressof_clRetainKernel;
718 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clRetainKernel"));
720 return dispatch_clRetainKernel1(kernel, __addr_);
724 private native
int dispatch_clRetainKernel1(
long kernel,
long procAddress);
729 final long __addr_ =
addressTable._addressof_clReleaseKernel;
731 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clReleaseKernel"));
733 return dispatch_clReleaseKernel1(kernel, __addr_);
737 private native
int dispatch_clReleaseKernel1(
long kernel,
long procAddress);
741 public int clSetKernelArg(
long kernel,
int arg_index,
long arg_size, Buffer arg_value) {
743 if (!Buffers.isDirect(arg_value))
744 throw new IllegalArgumentException(
"Argument \"arg_value\" is not a direct buffer");
745 final long __addr_ =
addressTable._addressof_clSetKernelArg;
747 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clSetKernelArg"));
749 return dispatch_clSetKernelArg0(kernel, arg_index, arg_size, arg_value, Buffers.getDirectBufferByteOffset(arg_value), __addr_);
754 private native
int dispatch_clSetKernelArg0(
long kernel,
int arg_index,
long arg_size, Object arg_value,
int arg_value_byte_offset,
long procAddress);
759 public int clGetKernelInfo(
long kernel,
int param_name,
long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret) {
761 if (!Buffers.isDirect(param_value))
762 throw new IllegalArgumentException(
"Argument \"param_value\" is not a direct buffer");
763 if (!Buffers.isDirect(param_value_size_ret))
764 throw new IllegalArgumentException(
"Argument \"param_value_size_ret\" is not a direct buffer");
765 final long __addr_ =
addressTable._addressof_clGetKernelInfo;
767 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clGetKernelInfo"));
769 return dispatch_clGetKernelInfo0(kernel, param_name, param_value_size, param_value, Buffers.getDirectBufferByteOffset(param_value), param_value_size_ret !=
null ? param_value_size_ret.getBuffer() :
null, Buffers.getDirectBufferByteOffset(param_value_size_ret), __addr_);
775 private native
int dispatch_clGetKernelInfo0(
long kernel,
int param_name,
long param_value_size, Object param_value,
int param_value_byte_offset, Object param_value_size_ret,
int param_value_size_ret_byte_offset,
long procAddress);
780 public int clGetKernelWorkGroupInfo(
long kernel,
long device,
int param_name,
long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret) {
782 if (!Buffers.isDirect(param_value))
783 throw new IllegalArgumentException(
"Argument \"param_value\" is not a direct buffer");
784 if (!Buffers.isDirect(param_value_size_ret))
785 throw new IllegalArgumentException(
"Argument \"param_value_size_ret\" is not a direct buffer");
786 final long __addr_ =
addressTable._addressof_clGetKernelWorkGroupInfo;
788 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clGetKernelWorkGroupInfo"));
790 return dispatch_clGetKernelWorkGroupInfo0(kernel, device, param_name, param_value_size, param_value, Buffers.getDirectBufferByteOffset(param_value), param_value_size_ret !=
null ? param_value_size_ret.getBuffer() :
null, Buffers.getDirectBufferByteOffset(param_value_size_ret), __addr_);
796 private native
int dispatch_clGetKernelWorkGroupInfo0(
long kernel,
long device,
int param_name,
long param_value_size, Object param_value,
int param_value_byte_offset, Object param_value_size_ret,
int param_value_size_ret_byte_offset,
long procAddress);
802 if (!Buffers.isDirect(event_list))
803 throw new IllegalArgumentException(
"Argument \"event_list\" is not a direct buffer");
804 final long __addr_ =
addressTable._addressof_clWaitForEvents;
806 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clWaitForEvents"));
808 return dispatch_clWaitForEvents0(num_events, event_list !=
null ? event_list.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event_list), __addr_);
813 private native
int dispatch_clWaitForEvents0(
int num_events, Object event_list,
int event_list_byte_offset,
long procAddress);
818 public int clGetEventInfo(
long event,
int param_name,
long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret) {
820 if (!Buffers.isDirect(param_value))
821 throw new IllegalArgumentException(
"Argument \"param_value\" is not a direct buffer");
822 if (!Buffers.isDirect(param_value_size_ret))
823 throw new IllegalArgumentException(
"Argument \"param_value_size_ret\" is not a direct buffer");
824 final long __addr_ =
addressTable._addressof_clGetEventInfo;
826 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clGetEventInfo"));
828 return dispatch_clGetEventInfo0(event, param_name, param_value_size, param_value, Buffers.getDirectBufferByteOffset(param_value), param_value_size_ret !=
null ? param_value_size_ret.getBuffer() :
null, Buffers.getDirectBufferByteOffset(param_value_size_ret), __addr_);
834 private native
int dispatch_clGetEventInfo0(
long event,
int param_name,
long param_value_size, Object param_value,
int param_value_byte_offset, Object param_value_size_ret,
int param_value_size_ret_byte_offset,
long procAddress);
840 final boolean errcode_ret_is_direct = Buffers.isDirect(errcode_ret);
841 final long __addr_ =
addressTable._addressof_clCreateUserEvent;
843 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clCreateUserEvent"));
845 return dispatch_clCreateUserEvent1(context, errcode_ret_is_direct ? errcode_ret : Buffers.getArray(errcode_ret), errcode_ret_is_direct ? Buffers.getDirectBufferByteOffset(errcode_ret) : Buffers.getIndirectBufferByteOffset(errcode_ret), errcode_ret_is_direct, __addr_);
850 private native
long dispatch_clCreateUserEvent1(
long context, Object errcode_ret,
int errcode_ret_byte_offset,
boolean errcode_ret_is_direct,
long procAddress);
855 if(errcode_ret !=
null && errcode_ret.length <= errcode_ret_offset)
856 throw new IllegalArgumentException(
"array offset argument \"errcode_ret_offset\" (" + errcode_ret_offset +
") equals or exceeds array length (" + errcode_ret.length +
")");
857 final long __addr_ =
addressTable._addressof_clCreateUserEvent;
859 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clCreateUserEvent"));
861 return dispatch_clCreateUserEvent1(context, errcode_ret, Buffers.SIZEOF_INT * errcode_ret_offset,
false, __addr_);
867 final long __addr_ =
addressTable._addressof_clRetainEvent;
869 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clRetainEvent"));
871 return dispatch_clRetainEvent1(event, __addr_);
875 private native
int dispatch_clRetainEvent1(
long event,
long procAddress);
880 final long __addr_ =
addressTable._addressof_clReleaseEvent;
882 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clReleaseEvent"));
884 return dispatch_clReleaseEvent1(event, __addr_);
888 private native
int dispatch_clReleaseEvent1(
long event,
long procAddress);
893 final long __addr_ =
addressTable._addressof_clSetUserEventStatus;
895 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clSetUserEventStatus"));
897 return dispatch_clSetUserEventStatus1(event, execution_status, __addr_);
901 private native
int dispatch_clSetUserEventStatus1(
long event,
int execution_status,
long procAddress);
906 public int clGetEventProfilingInfo(
long event,
int param_name,
long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret) {
908 if (!Buffers.isDirect(param_value))
909 throw new IllegalArgumentException(
"Argument \"param_value\" is not a direct buffer");
910 if (!Buffers.isDirect(param_value_size_ret))
911 throw new IllegalArgumentException(
"Argument \"param_value_size_ret\" is not a direct buffer");
912 final long __addr_ =
addressTable._addressof_clGetEventProfilingInfo;
914 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clGetEventProfilingInfo"));
916 return dispatch_clGetEventProfilingInfo0(event, param_name, param_value_size, param_value, Buffers.getDirectBufferByteOffset(param_value), param_value_size_ret !=
null ? param_value_size_ret.getBuffer() :
null, Buffers.getDirectBufferByteOffset(param_value_size_ret), __addr_);
922 private native
int dispatch_clGetEventProfilingInfo0(
long event,
int param_name,
long param_value_size, Object param_value,
int param_value_byte_offset, Object param_value_size_ret,
int param_value_size_ret_byte_offset,
long procAddress);
929 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clFlush"));
931 return dispatch_clFlush1(command_queue, __addr_);
935 private native
int dispatch_clFlush1(
long command_queue,
long procAddress);
942 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clFinish"));
944 return dispatch_clFinish1(command_queue, __addr_);
948 private native
int dispatch_clFinish1(
long command_queue,
long procAddress);
954 public int clEnqueueReadBuffer(
long command_queue,
long buffer,
int blocking_read,
long offset,
long cb, Buffer ptr,
int num_events_in_wait_list, PointerBuffer event_wait_list, PointerBuffer event) {
956 if (!Buffers.isDirect(ptr))
957 throw new IllegalArgumentException(
"Argument \"ptr\" is not a direct buffer");
958 if (!Buffers.isDirect(event_wait_list))
959 throw new IllegalArgumentException(
"Argument \"event_wait_list\" is not a direct buffer");
960 if (!Buffers.isDirect(event))
961 throw new IllegalArgumentException(
"Argument \"event\" is not a direct buffer");
962 final long __addr_ =
addressTable._addressof_clEnqueueReadBuffer;
964 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clEnqueueReadBuffer"));
966 return dispatch_clEnqueueReadBuffer0(command_queue, buffer, blocking_read, offset, cb, ptr, Buffers.getDirectBufferByteOffset(ptr), num_events_in_wait_list, event_wait_list !=
null ? event_wait_list.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event_wait_list), event !=
null ? event.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event), __addr_);
973 private native
int dispatch_clEnqueueReadBuffer0(
long command_queue,
long buffer,
int blocking_read,
long offset,
long cb, Object ptr,
int ptr_byte_offset,
int num_events_in_wait_list, Object event_wait_list,
int event_wait_list_byte_offset, Object event,
int event_byte_offset,
long procAddress);
982 public int clEnqueueReadBufferRect(
long command_queue,
long buffer,
int blocking_read, PointerBuffer buffer_origin, PointerBuffer host_origin, PointerBuffer region,
long buffer_row_pitch,
long buffer_slice_pitch,
long host_row_pitch,
long host_slice_pitch, Buffer ptr,
int num_events_in_wait_list, PointerBuffer event_wait_list, PointerBuffer event) {
984 if (!Buffers.isDirect(buffer_origin))
985 throw new IllegalArgumentException(
"Argument \"buffer_origin\" is not a direct buffer");
986 if (!Buffers.isDirect(host_origin))
987 throw new IllegalArgumentException(
"Argument \"host_origin\" is not a direct buffer");
988 if (!Buffers.isDirect(region))
989 throw new IllegalArgumentException(
"Argument \"region\" is not a direct buffer");
990 if (!Buffers.isDirect(ptr))
991 throw new IllegalArgumentException(
"Argument \"ptr\" is not a direct buffer");
992 if (!Buffers.isDirect(event_wait_list))
993 throw new IllegalArgumentException(
"Argument \"event_wait_list\" is not a direct buffer");
994 if (!Buffers.isDirect(event))
995 throw new IllegalArgumentException(
"Argument \"event\" is not a direct buffer");
996 final long __addr_ =
addressTable._addressof_clEnqueueReadBufferRect;
998 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clEnqueueReadBufferRect"));
1000 return dispatch_clEnqueueReadBufferRect0(command_queue, buffer, blocking_read, buffer_origin !=
null ? buffer_origin.getBuffer() :
null, Buffers.getDirectBufferByteOffset(buffer_origin), host_origin !=
null ? host_origin.getBuffer() :
null, Buffers.getDirectBufferByteOffset(host_origin), region !=
null ? region.getBuffer() :
null, Buffers.getDirectBufferByteOffset(region), buffer_row_pitch, buffer_slice_pitch, host_row_pitch, host_slice_pitch, ptr, Buffers.getDirectBufferByteOffset(ptr), num_events_in_wait_list, event_wait_list !=
null ? event_wait_list.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event_wait_list), event !=
null ? event.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event), __addr_);
1010 private native
int dispatch_clEnqueueReadBufferRect0(
long command_queue,
long buffer,
int blocking_read, Object buffer_origin,
int buffer_origin_byte_offset, Object host_origin,
int host_origin_byte_offset, Object region,
int region_byte_offset,
long buffer_row_pitch,
long buffer_slice_pitch,
long host_row_pitch,
long host_slice_pitch, Object ptr,
int ptr_byte_offset,
int num_events_in_wait_list, Object event_wait_list,
int event_wait_list_byte_offset, Object event,
int event_byte_offset,
long procAddress);
1016 public int clEnqueueWriteBuffer(
long command_queue,
long buffer,
int blocking_write,
long offset,
long cb, Buffer ptr,
int num_events_in_wait_list, PointerBuffer event_wait_list, PointerBuffer event) {
1018 if (!Buffers.isDirect(ptr))
1019 throw new IllegalArgumentException(
"Argument \"ptr\" is not a direct buffer");
1020 if (!Buffers.isDirect(event_wait_list))
1021 throw new IllegalArgumentException(
"Argument \"event_wait_list\" is not a direct buffer");
1022 if (!Buffers.isDirect(event))
1023 throw new IllegalArgumentException(
"Argument \"event\" is not a direct buffer");
1024 final long __addr_ =
addressTable._addressof_clEnqueueWriteBuffer;
1026 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clEnqueueWriteBuffer"));
1028 return dispatch_clEnqueueWriteBuffer0(command_queue, buffer, blocking_write, offset, cb, ptr, Buffers.getDirectBufferByteOffset(ptr), num_events_in_wait_list, event_wait_list !=
null ? event_wait_list.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event_wait_list), event !=
null ? event.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event), __addr_);
1035 private native
int dispatch_clEnqueueWriteBuffer0(
long command_queue,
long buffer,
int blocking_write,
long offset,
long cb, Object ptr,
int ptr_byte_offset,
int num_events_in_wait_list, Object event_wait_list,
int event_wait_list_byte_offset, Object event,
int event_byte_offset,
long procAddress);
1044 public int clEnqueueWriteBufferRect(
long command_queue,
long buffer,
int blocking_write, PointerBuffer buffer_origin, PointerBuffer host_origin, PointerBuffer region,
long buffer_row_pitch,
long buffer_slice_pitch,
long host_row_pitch,
long host_slice_pitch, Buffer ptr,
int num_events_in_wait_list, PointerBuffer event_wait_list, PointerBuffer event) {
1046 if (!Buffers.isDirect(buffer_origin))
1047 throw new IllegalArgumentException(
"Argument \"buffer_origin\" is not a direct buffer");
1048 if (!Buffers.isDirect(host_origin))
1049 throw new IllegalArgumentException(
"Argument \"host_origin\" is not a direct buffer");
1050 if (!Buffers.isDirect(region))
1051 throw new IllegalArgumentException(
"Argument \"region\" is not a direct buffer");
1052 if (!Buffers.isDirect(ptr))
1053 throw new IllegalArgumentException(
"Argument \"ptr\" is not a direct buffer");
1054 if (!Buffers.isDirect(event_wait_list))
1055 throw new IllegalArgumentException(
"Argument \"event_wait_list\" is not a direct buffer");
1056 if (!Buffers.isDirect(event))
1057 throw new IllegalArgumentException(
"Argument \"event\" is not a direct buffer");
1058 final long __addr_ =
addressTable._addressof_clEnqueueWriteBufferRect;
1060 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clEnqueueWriteBufferRect"));
1062 return dispatch_clEnqueueWriteBufferRect0(command_queue, buffer, blocking_write, buffer_origin !=
null ? buffer_origin.getBuffer() :
null, Buffers.getDirectBufferByteOffset(buffer_origin), host_origin !=
null ? host_origin.getBuffer() :
null, Buffers.getDirectBufferByteOffset(host_origin), region !=
null ? region.getBuffer() :
null, Buffers.getDirectBufferByteOffset(region), buffer_row_pitch, buffer_slice_pitch, host_row_pitch, host_slice_pitch, ptr, Buffers.getDirectBufferByteOffset(ptr), num_events_in_wait_list, event_wait_list !=
null ? event_wait_list.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event_wait_list), event !=
null ? event.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event), __addr_);
1072 private native
int dispatch_clEnqueueWriteBufferRect0(
long command_queue,
long buffer,
int blocking_write, Object buffer_origin,
int buffer_origin_byte_offset, Object host_origin,
int host_origin_byte_offset, Object region,
int region_byte_offset,
long buffer_row_pitch,
long buffer_slice_pitch,
long host_row_pitch,
long host_slice_pitch, Object ptr,
int ptr_byte_offset,
int num_events_in_wait_list, Object event_wait_list,
int event_wait_list_byte_offset, Object event,
int event_byte_offset,
long procAddress);
1077 public int clEnqueueCopyBuffer(
long command_queue,
long src_buffer,
long dst_buffer,
long src_offset,
long dst_offset,
long cb,
int num_events_in_wait_list, PointerBuffer event_wait_list, PointerBuffer event) {
1079 if (!Buffers.isDirect(event_wait_list))
1080 throw new IllegalArgumentException(
"Argument \"event_wait_list\" is not a direct buffer");
1081 if (!Buffers.isDirect(event))
1082 throw new IllegalArgumentException(
"Argument \"event\" is not a direct buffer");
1083 final long __addr_ =
addressTable._addressof_clEnqueueCopyBuffer;
1085 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clEnqueueCopyBuffer"));
1087 return dispatch_clEnqueueCopyBuffer0(command_queue, src_buffer, dst_buffer, src_offset, dst_offset, cb, num_events_in_wait_list, event_wait_list !=
null ? event_wait_list.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event_wait_list), event !=
null ? event.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event), __addr_);
1093 private native
int dispatch_clEnqueueCopyBuffer0(
long command_queue,
long src_buffer,
long dst_buffer,
long src_offset,
long dst_offset,
long cb,
int num_events_in_wait_list, Object event_wait_list,
int event_wait_list_byte_offset, Object event,
int event_byte_offset,
long procAddress);
1101 public int clEnqueueCopyBufferRect(
long command_queue,
long src_buffer,
long dst_buffer, PointerBuffer src_origin, PointerBuffer dst_origin, PointerBuffer region,
long src_row_pitch,
long src_slice_pitch,
long dst_row_pitch,
long dst_slice_pitch,
int num_events_in_wait_list, PointerBuffer event_wait_list, PointerBuffer event) {
1103 if (!Buffers.isDirect(src_origin))
1104 throw new IllegalArgumentException(
"Argument \"src_origin\" is not a direct buffer");
1105 if (!Buffers.isDirect(dst_origin))
1106 throw new IllegalArgumentException(
"Argument \"dst_origin\" is not a direct buffer");
1107 if (!Buffers.isDirect(region))
1108 throw new IllegalArgumentException(
"Argument \"region\" is not a direct buffer");
1109 if (!Buffers.isDirect(event_wait_list))
1110 throw new IllegalArgumentException(
"Argument \"event_wait_list\" is not a direct buffer");
1111 if (!Buffers.isDirect(event))
1112 throw new IllegalArgumentException(
"Argument \"event\" is not a direct buffer");
1113 final long __addr_ =
addressTable._addressof_clEnqueueCopyBufferRect;
1115 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clEnqueueCopyBufferRect"));
1117 return dispatch_clEnqueueCopyBufferRect0(command_queue, src_buffer, dst_buffer, src_origin !=
null ? src_origin.getBuffer() :
null, Buffers.getDirectBufferByteOffset(src_origin), dst_origin !=
null ? dst_origin.getBuffer() :
null, Buffers.getDirectBufferByteOffset(dst_origin), region !=
null ? region.getBuffer() :
null, Buffers.getDirectBufferByteOffset(region), src_row_pitch, src_slice_pitch, dst_row_pitch, dst_slice_pitch, num_events_in_wait_list, event_wait_list !=
null ? event_wait_list.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event_wait_list), event !=
null ? event.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event), __addr_);
1126 private native
int dispatch_clEnqueueCopyBufferRect0(
long command_queue,
long src_buffer,
long dst_buffer, Object src_origin,
int src_origin_byte_offset, Object dst_origin,
int dst_origin_byte_offset, Object region,
int region_byte_offset,
long src_row_pitch,
long src_slice_pitch,
long dst_row_pitch,
long dst_slice_pitch,
int num_events_in_wait_list, Object event_wait_list,
int event_wait_list_byte_offset, Object event,
int event_byte_offset,
long procAddress);
1134 public int clEnqueueReadImage(
long command_queue,
long image,
int blocking_read, PointerBuffer arg3, PointerBuffer arg4,
long row_pitch,
long slice_pitch, Buffer ptr,
int num_events_in_wait_list, PointerBuffer event_wait_list, PointerBuffer event) {
1136 if (!Buffers.isDirect(arg3))
1137 throw new IllegalArgumentException(
"Argument \"arg3\" is not a direct buffer");
1138 if (!Buffers.isDirect(arg4))
1139 throw new IllegalArgumentException(
"Argument \"arg4\" is not a direct buffer");
1140 if (!Buffers.isDirect(ptr))
1141 throw new IllegalArgumentException(
"Argument \"ptr\" is not a direct buffer");
1142 if (!Buffers.isDirect(event_wait_list))
1143 throw new IllegalArgumentException(
"Argument \"event_wait_list\" is not a direct buffer");
1144 if (!Buffers.isDirect(event))
1145 throw new IllegalArgumentException(
"Argument \"event\" is not a direct buffer");
1146 final long __addr_ =
addressTable._addressof_clEnqueueReadImage;
1148 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clEnqueueReadImage"));
1150 return dispatch_clEnqueueReadImage0(command_queue, image, blocking_read, arg3 !=
null ? arg3.getBuffer() :
null, Buffers.getDirectBufferByteOffset(arg3), arg4 !=
null ? arg4.getBuffer() :
null, Buffers.getDirectBufferByteOffset(arg4), row_pitch, slice_pitch, ptr, Buffers.getDirectBufferByteOffset(ptr), num_events_in_wait_list, event_wait_list !=
null ? event_wait_list.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event_wait_list), event !=
null ? event.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event), __addr_);
1159 private native
int dispatch_clEnqueueReadImage0(
long command_queue,
long image,
int blocking_read, Object arg3,
int arg3_byte_offset, Object arg4,
int arg4_byte_offset,
long row_pitch,
long slice_pitch, Object ptr,
int ptr_byte_offset,
int num_events_in_wait_list, Object event_wait_list,
int event_wait_list_byte_offset, Object event,
int event_byte_offset,
long procAddress);
1167 public int clEnqueueWriteImage(
long command_queue,
long image,
int blocking_write, PointerBuffer arg3, PointerBuffer arg4,
long input_row_pitch,
long input_slice_pitch, Buffer ptr,
int num_events_in_wait_list, PointerBuffer event_wait_list, PointerBuffer event) {
1169 if (!Buffers.isDirect(arg3))
1170 throw new IllegalArgumentException(
"Argument \"arg3\" is not a direct buffer");
1171 if (!Buffers.isDirect(arg4))
1172 throw new IllegalArgumentException(
"Argument \"arg4\" is not a direct buffer");
1173 if (!Buffers.isDirect(ptr))
1174 throw new IllegalArgumentException(
"Argument \"ptr\" is not a direct buffer");
1175 if (!Buffers.isDirect(event_wait_list))
1176 throw new IllegalArgumentException(
"Argument \"event_wait_list\" is not a direct buffer");
1177 if (!Buffers.isDirect(event))
1178 throw new IllegalArgumentException(
"Argument \"event\" is not a direct buffer");
1179 final long __addr_ =
addressTable._addressof_clEnqueueWriteImage;
1181 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clEnqueueWriteImage"));
1183 return dispatch_clEnqueueWriteImage0(command_queue, image, blocking_write, arg3 !=
null ? arg3.getBuffer() :
null, Buffers.getDirectBufferByteOffset(arg3), arg4 !=
null ? arg4.getBuffer() :
null, Buffers.getDirectBufferByteOffset(arg4), input_row_pitch, input_slice_pitch, ptr, Buffers.getDirectBufferByteOffset(ptr), num_events_in_wait_list, event_wait_list !=
null ? event_wait_list.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event_wait_list), event !=
null ? event.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event), __addr_);
1192 private native
int dispatch_clEnqueueWriteImage0(
long command_queue,
long image,
int blocking_write, Object arg3,
int arg3_byte_offset, Object arg4,
int arg4_byte_offset,
long input_row_pitch,
long input_slice_pitch, Object ptr,
int ptr_byte_offset,
int num_events_in_wait_list, Object event_wait_list,
int event_wait_list_byte_offset, Object event,
int event_byte_offset,
long procAddress);
1200 public int clEnqueueCopyImage(
long command_queue,
long src_image,
long dst_image, PointerBuffer arg3, PointerBuffer arg4, PointerBuffer arg5,
int num_events_in_wait_list, PointerBuffer event_wait_list, PointerBuffer event) {
1202 if (!Buffers.isDirect(arg3))
1203 throw new IllegalArgumentException(
"Argument \"arg3\" is not a direct buffer");
1204 if (!Buffers.isDirect(arg4))
1205 throw new IllegalArgumentException(
"Argument \"arg4\" is not a direct buffer");
1206 if (!Buffers.isDirect(arg5))
1207 throw new IllegalArgumentException(
"Argument \"arg5\" is not a direct buffer");
1208 if (!Buffers.isDirect(event_wait_list))
1209 throw new IllegalArgumentException(
"Argument \"event_wait_list\" is not a direct buffer");
1210 if (!Buffers.isDirect(event))
1211 throw new IllegalArgumentException(
"Argument \"event\" is not a direct buffer");
1212 final long __addr_ =
addressTable._addressof_clEnqueueCopyImage;
1214 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clEnqueueCopyImage"));
1216 return dispatch_clEnqueueCopyImage0(command_queue, src_image, dst_image, arg3 !=
null ? arg3.getBuffer() :
null, Buffers.getDirectBufferByteOffset(arg3), arg4 !=
null ? arg4.getBuffer() :
null, Buffers.getDirectBufferByteOffset(arg4), arg5 !=
null ? arg5.getBuffer() :
null, Buffers.getDirectBufferByteOffset(arg5), num_events_in_wait_list, event_wait_list !=
null ? event_wait_list.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event_wait_list), event !=
null ? event.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event), __addr_);
1225 private native
int dispatch_clEnqueueCopyImage0(
long command_queue,
long src_image,
long dst_image, Object arg3,
int arg3_byte_offset, Object arg4,
int arg4_byte_offset, Object arg5,
int arg5_byte_offset,
int num_events_in_wait_list, Object event_wait_list,
int event_wait_list_byte_offset, Object event,
int event_byte_offset,
long procAddress);
1232 public int clEnqueueCopyImageToBuffer(
long command_queue,
long src_image,
long dst_buffer, PointerBuffer arg3, PointerBuffer arg4,
long dst_offset,
int num_events_in_wait_list, PointerBuffer event_wait_list, PointerBuffer event) {
1234 if (!Buffers.isDirect(arg3))
1235 throw new IllegalArgumentException(
"Argument \"arg3\" is not a direct buffer");
1236 if (!Buffers.isDirect(arg4))
1237 throw new IllegalArgumentException(
"Argument \"arg4\" is not a direct buffer");
1238 if (!Buffers.isDirect(event_wait_list))
1239 throw new IllegalArgumentException(
"Argument \"event_wait_list\" is not a direct buffer");
1240 if (!Buffers.isDirect(event))
1241 throw new IllegalArgumentException(
"Argument \"event\" is not a direct buffer");
1242 final long __addr_ =
addressTable._addressof_clEnqueueCopyImageToBuffer;
1244 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clEnqueueCopyImageToBuffer"));
1246 return dispatch_clEnqueueCopyImageToBuffer0(command_queue, src_image, dst_buffer, arg3 !=
null ? arg3.getBuffer() :
null, Buffers.getDirectBufferByteOffset(arg3), arg4 !=
null ? arg4.getBuffer() :
null, Buffers.getDirectBufferByteOffset(arg4), dst_offset, num_events_in_wait_list, event_wait_list !=
null ? event_wait_list.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event_wait_list), event !=
null ? event.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event), __addr_);
1254 private native
int dispatch_clEnqueueCopyImageToBuffer0(
long command_queue,
long src_image,
long dst_buffer, Object arg3,
int arg3_byte_offset, Object arg4,
int arg4_byte_offset,
long dst_offset,
int num_events_in_wait_list, Object event_wait_list,
int event_wait_list_byte_offset, Object event,
int event_byte_offset,
long procAddress);
1261 public int clEnqueueCopyBufferToImage(
long command_queue,
long src_buffer,
long dst_image,
long src_offset, PointerBuffer arg4, PointerBuffer arg5,
int num_events_in_wait_list, PointerBuffer event_wait_list, PointerBuffer event) {
1263 if (!Buffers.isDirect(arg4))
1264 throw new IllegalArgumentException(
"Argument \"arg4\" is not a direct buffer");
1265 if (!Buffers.isDirect(arg5))
1266 throw new IllegalArgumentException(
"Argument \"arg5\" is not a direct buffer");
1267 if (!Buffers.isDirect(event_wait_list))
1268 throw new IllegalArgumentException(
"Argument \"event_wait_list\" is not a direct buffer");
1269 if (!Buffers.isDirect(event))
1270 throw new IllegalArgumentException(
"Argument \"event\" is not a direct buffer");
1271 final long __addr_ =
addressTable._addressof_clEnqueueCopyBufferToImage;
1273 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clEnqueueCopyBufferToImage"));
1275 return dispatch_clEnqueueCopyBufferToImage0(command_queue, src_buffer, dst_image, src_offset, arg4 !=
null ? arg4.getBuffer() :
null, Buffers.getDirectBufferByteOffset(arg4), arg5 !=
null ? arg5.getBuffer() :
null, Buffers.getDirectBufferByteOffset(arg5), num_events_in_wait_list, event_wait_list !=
null ? event_wait_list.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event_wait_list), event !=
null ? event.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event), __addr_);
1283 private native
int dispatch_clEnqueueCopyBufferToImage0(
long command_queue,
long src_buffer,
long dst_image,
long src_offset, Object arg4,
int arg4_byte_offset, Object arg5,
int arg5_byte_offset,
int num_events_in_wait_list, Object event_wait_list,
int event_wait_list_byte_offset, Object event,
int event_byte_offset,
long procAddress);
1289 public ByteBuffer
clEnqueueMapBuffer(
long command_queue,
long buffer,
int blocking_map,
long map_flags,
long offset,
long cb,
int num_events_in_wait_list, PointerBuffer event_wait_list, PointerBuffer event, IntBuffer errcode_ret) {
1291 if (!Buffers.isDirect(event_wait_list))
1292 throw new IllegalArgumentException(
"Argument \"event_wait_list\" is not a direct buffer");
1293 if (!Buffers.isDirect(event))
1294 throw new IllegalArgumentException(
"Argument \"event\" is not a direct buffer");
1295 if (!Buffers.isDirect(errcode_ret))
1296 throw new IllegalArgumentException(
"Argument \"errcode_ret\" is not a direct buffer");
1297 final long __addr_ =
addressTable._addressof_clEnqueueMapBuffer;
1299 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clEnqueueMapBuffer"));
1301 final ByteBuffer _res;
1302 _res = dispatch_clEnqueueMapBuffer0(command_queue, buffer, blocking_map, map_flags, offset, cb, num_events_in_wait_list, event_wait_list !=
null ? event_wait_list.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event_wait_list), event !=
null ? event.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event), errcode_ret, Buffers.getDirectBufferByteOffset(errcode_ret), __addr_);
1303 if (_res ==
null)
return null;
1304 Buffers.nativeOrder(_res);
1312 private native ByteBuffer dispatch_clEnqueueMapBuffer0(
long command_queue,
long buffer,
int blocking_map,
long map_flags,
long offset,
long cb,
int num_events_in_wait_list, Object event_wait_list,
int event_wait_list_byte_offset, Object event,
int event_byte_offset, Object errcode_ret,
int errcode_ret_byte_offset,
long procAddress);
1318 public int clEnqueueUnmapMemObject(
long command_queue,
long memobj, Buffer mapped_ptr,
int num_events_in_wait_list, PointerBuffer event_wait_list, PointerBuffer event) {
1320 if (!Buffers.isDirect(mapped_ptr))
1321 throw new IllegalArgumentException(
"Argument \"mapped_ptr\" is not a direct buffer");
1322 if (!Buffers.isDirect(event_wait_list))
1323 throw new IllegalArgumentException(
"Argument \"event_wait_list\" is not a direct buffer");
1324 if (!Buffers.isDirect(event))
1325 throw new IllegalArgumentException(
"Argument \"event\" is not a direct buffer");
1326 final long __addr_ =
addressTable._addressof_clEnqueueUnmapMemObject;
1328 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clEnqueueUnmapMemObject"));
1330 return dispatch_clEnqueueUnmapMemObject0(command_queue, memobj, mapped_ptr, Buffers.getDirectBufferByteOffset(mapped_ptr), num_events_in_wait_list, event_wait_list !=
null ? event_wait_list.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event_wait_list), event !=
null ? event.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event), __addr_);
1337 private native
int dispatch_clEnqueueUnmapMemObject0(
long command_queue,
long memobj, Object mapped_ptr,
int mapped_ptr_byte_offset,
int num_events_in_wait_list, Object event_wait_list,
int event_wait_list_byte_offset, Object event,
int event_byte_offset,
long procAddress);
1345 public int clEnqueueNDRangeKernel(
long command_queue,
long kernel,
int work_dim, PointerBuffer global_work_offset, PointerBuffer global_work_size, PointerBuffer local_work_size,
int num_events_in_wait_list, PointerBuffer event_wait_list, PointerBuffer event) {
1347 if (!Buffers.isDirect(global_work_offset))
1348 throw new IllegalArgumentException(
"Argument \"global_work_offset\" is not a direct buffer");
1349 if (!Buffers.isDirect(global_work_size))
1350 throw new IllegalArgumentException(
"Argument \"global_work_size\" is not a direct buffer");
1351 if (!Buffers.isDirect(local_work_size))
1352 throw new IllegalArgumentException(
"Argument \"local_work_size\" is not a direct buffer");
1353 if (!Buffers.isDirect(event_wait_list))
1354 throw new IllegalArgumentException(
"Argument \"event_wait_list\" is not a direct buffer");
1355 if (!Buffers.isDirect(event))
1356 throw new IllegalArgumentException(
"Argument \"event\" is not a direct buffer");
1357 final long __addr_ =
addressTable._addressof_clEnqueueNDRangeKernel;
1359 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clEnqueueNDRangeKernel"));
1361 return dispatch_clEnqueueNDRangeKernel0(command_queue, kernel, work_dim, global_work_offset !=
null ? global_work_offset.getBuffer() :
null, Buffers.getDirectBufferByteOffset(global_work_offset), global_work_size !=
null ? global_work_size.getBuffer() :
null, Buffers.getDirectBufferByteOffset(global_work_size), local_work_size !=
null ? local_work_size.getBuffer() :
null, Buffers.getDirectBufferByteOffset(local_work_size), num_events_in_wait_list, event_wait_list !=
null ? event_wait_list.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event_wait_list), event !=
null ? event.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event), __addr_);
1370 private native
int dispatch_clEnqueueNDRangeKernel0(
long command_queue,
long kernel,
int work_dim, Object global_work_offset,
int global_work_offset_byte_offset, Object global_work_size,
int global_work_size_byte_offset, Object local_work_size,
int local_work_size_byte_offset,
int num_events_in_wait_list, Object event_wait_list,
int event_wait_list_byte_offset, Object event,
int event_byte_offset,
long procAddress);
1375 public int clEnqueueTask(
long command_queue,
long kernel,
int num_events_in_wait_list, PointerBuffer event_wait_list, PointerBuffer event) {
1377 if (!Buffers.isDirect(event_wait_list))
1378 throw new IllegalArgumentException(
"Argument \"event_wait_list\" is not a direct buffer");
1379 if (!Buffers.isDirect(event))
1380 throw new IllegalArgumentException(
"Argument \"event\" is not a direct buffer");
1381 final long __addr_ =
addressTable._addressof_clEnqueueTask;
1383 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clEnqueueTask"));
1385 return dispatch_clEnqueueTask0(command_queue, kernel, num_events_in_wait_list, event_wait_list !=
null ? event_wait_list.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event_wait_list), event !=
null ? event.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event), __addr_);
1391 private native
int dispatch_clEnqueueTask0(
long command_queue,
long kernel,
int num_events_in_wait_list, Object event_wait_list,
int event_wait_list_byte_offset, Object event,
int event_byte_offset,
long procAddress);
1397 if (!Buffers.isDirect(event))
1398 throw new IllegalArgumentException(
"Argument \"event\" is not a direct buffer");
1399 final long __addr_ =
addressTable._addressof_clEnqueueMarker;
1401 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clEnqueueMarker"));
1403 return dispatch_clEnqueueMarker0(command_queue, event !=
null ? event.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event), __addr_);
1408 private native
int dispatch_clEnqueueMarker0(
long command_queue, Object event,
int event_byte_offset,
long procAddress);
1414 if (!Buffers.isDirect(event_list))
1415 throw new IllegalArgumentException(
"Argument \"event_list\" is not a direct buffer");
1416 final long __addr_ =
addressTable._addressof_clEnqueueWaitForEvents;
1418 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clEnqueueWaitForEvents"));
1420 return dispatch_clEnqueueWaitForEvents0(command_queue, num_events, event_list !=
null ? event_list.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event_list), __addr_);
1425 private native
int dispatch_clEnqueueWaitForEvents0(
long command_queue,
int num_events, Object event_list,
int event_list_byte_offset,
long procAddress);
1430 final long __addr_ =
addressTable._addressof_clEnqueueBarrier;
1432 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clEnqueueBarrier"));
1434 return dispatch_clEnqueueBarrier0(command_queue, __addr_);
1438 private native
int dispatch_clEnqueueBarrier0(
long command_queue,
long procAddress);
1445 if (!Buffers.isDirect(arg1))
1446 throw new IllegalArgumentException(
"Argument \"arg1\" is not a direct buffer");
1447 if (!Buffers.isDirect(arg2))
1448 throw new IllegalArgumentException(
"Argument \"arg2\" is not a direct buffer");
1449 final long __addr_ =
addressTable._addressof_clIcdGetPlatformIDsKHR;
1451 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clIcdGetPlatformIDsKHR"));
1453 return dispatch_clIcdGetPlatformIDsKHR0(arg0, arg1 !=
null ? arg1.getBuffer() :
null, Buffers.getDirectBufferByteOffset(arg1), arg2, Buffers.getDirectBufferByteOffset(arg2), __addr_);
1459 private native
int dispatch_clIcdGetPlatformIDsKHR0(
int arg0, Object arg1,
int arg1_byte_offset, Object arg2,
int arg2_byte_offset,
long procAddress);
1464 final long __addr_ =
addressTable._addressof_clReleaseDeviceEXT;
1466 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clReleaseDeviceEXT"));
1468 return dispatch_clReleaseDeviceEXT1(arg0, __addr_);
1472 private native
int dispatch_clReleaseDeviceEXT1(
long arg0,
long procAddress);
1477 final long __addr_ =
addressTable._addressof_clRetainDeviceEXT;
1479 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clRetainDeviceEXT"));
1481 return dispatch_clRetainDeviceEXT1(arg0, __addr_);
1485 private native
int dispatch_clRetainDeviceEXT1(
long arg0,
long procAddress);
1493 final boolean arg1_is_direct = Buffers.isDirect(arg1);
1494 final boolean arg3_is_direct = Buffers.isDirect(arg3);
1495 final boolean arg4_is_direct = Buffers.isDirect(arg4);
1496 final long __addr_ =
addressTable._addressof_clCreateSubDevicesEXT;
1498 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clCreateSubDevicesEXT"));
1500 return dispatch_clCreateSubDevicesEXT1(arg0, arg1_is_direct ? arg1 : Buffers.getArray(arg1), arg1_is_direct ? Buffers.getDirectBufferByteOffset(arg1) : Buffers.getIndirectBufferByteOffset(arg1), arg1_is_direct, arg2, arg3_is_direct ? ( arg3 !=
null ? arg3.getBuffer() :
null ) : Buffers.getArray(arg3), arg3_is_direct ? Buffers.getDirectBufferByteOffset(arg3) : Buffers.getIndirectBufferByteOffset(arg3), arg3_is_direct, arg4_is_direct ? arg4 : Buffers.getArray(arg4), arg4_is_direct ? Buffers.getDirectBufferByteOffset(arg4) : Buffers.getIndirectBufferByteOffset(arg4), arg4_is_direct, __addr_);
1507 private native
int dispatch_clCreateSubDevicesEXT1(
long arg0, Object arg1,
int arg1_byte_offset,
boolean arg1_is_direct,
int arg2, Object arg3,
int arg3_byte_offset,
boolean arg3_is_direct, Object arg4,
int arg4_byte_offset,
boolean arg4_is_direct,
long procAddress);
1511 public int clCreateSubDevicesEXT(
long arg0,
long[] arg1,
int arg1_offset,
int arg2, PointerBuffer arg3,
int[] arg4,
int arg4_offset) {
1513 if(arg1 !=
null && arg1.length <= arg1_offset)
1514 throw new IllegalArgumentException(
"array offset argument \"arg1_offset\" (" + arg1_offset +
") equals or exceeds array length (" + arg1.length +
")");
1515 final boolean arg3_is_direct = Buffers.isDirect(arg3);
1516 if(arg4 !=
null && arg4.length <= arg4_offset)
1517 throw new IllegalArgumentException(
"array offset argument \"arg4_offset\" (" + arg4_offset +
") equals or exceeds array length (" + arg4.length +
")");
1518 final long __addr_ =
addressTable._addressof_clCreateSubDevicesEXT;
1520 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clCreateSubDevicesEXT"));
1522 return dispatch_clCreateSubDevicesEXT1(arg0, arg1, Buffers.SIZEOF_LONG * arg1_offset,
false, arg2, arg3_is_direct ? ( arg3 !=
null ? arg3.getBuffer() :
null ) : Buffers.getArray(arg3), arg3_is_direct ? Buffers.getDirectBufferByteOffset(arg3) : Buffers.getIndirectBufferByteOffset(arg3), arg3_is_direct, arg4, Buffers.SIZEOF_INT * arg4_offset,
false, __addr_);
1529 final boolean errcode_ret_is_direct = Buffers.isDirect(errcode_ret);
1530 final long __addr_ =
addressTable._addressof_clCreateFromGLBuffer;
1532 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clCreateFromGLBuffer"));
1534 return dispatch_clCreateFromGLBuffer1(context, flags, bufobj, errcode_ret_is_direct ? errcode_ret : Buffers.getArray(errcode_ret), errcode_ret_is_direct ? Buffers.getDirectBufferByteOffset(errcode_ret) : Buffers.getIndirectBufferByteOffset(errcode_ret), errcode_ret_is_direct, __addr_);
1539 private native
long dispatch_clCreateFromGLBuffer1(
long context,
long flags,
int bufobj, Object errcode_ret,
int errcode_ret_byte_offset,
boolean errcode_ret_is_direct,
long procAddress);
1542 public long clCreateFromGLBuffer(
long context,
long flags,
int bufobj,
int[] errcode_ret,
int errcode_ret_offset) {
1544 if(errcode_ret !=
null && errcode_ret.length <= errcode_ret_offset)
1545 throw new IllegalArgumentException(
"array offset argument \"errcode_ret_offset\" (" + errcode_ret_offset +
") equals or exceeds array length (" + errcode_ret.length +
")");
1546 final long __addr_ =
addressTable._addressof_clCreateFromGLBuffer;
1548 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clCreateFromGLBuffer"));
1550 return dispatch_clCreateFromGLBuffer1(context, flags, bufobj, errcode_ret, Buffers.SIZEOF_INT * errcode_ret_offset,
false, __addr_);
1557 final boolean errcode_ret_is_direct = Buffers.isDirect(errcode_ret);
1558 final long __addr_ =
addressTable._addressof_clCreateFromGLTexture2D;
1560 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clCreateFromGLTexture2D"));
1562 return dispatch_clCreateFromGLTexture2D1(context, flags, target, miplevel, texture, errcode_ret_is_direct ? errcode_ret : Buffers.getArray(errcode_ret), errcode_ret_is_direct ? Buffers.getDirectBufferByteOffset(errcode_ret) : Buffers.getIndirectBufferByteOffset(errcode_ret), errcode_ret_is_direct, __addr_);
1567 private native
long dispatch_clCreateFromGLTexture2D1(
long context,
long flags,
int target,
int miplevel,
int texture, Object errcode_ret,
int errcode_ret_byte_offset,
boolean errcode_ret_is_direct,
long procAddress);
1570 public long clCreateFromGLTexture2D(
long context,
long flags,
int target,
int miplevel,
int texture,
int[] errcode_ret,
int errcode_ret_offset) {
1572 if(errcode_ret !=
null && errcode_ret.length <= errcode_ret_offset)
1573 throw new IllegalArgumentException(
"array offset argument \"errcode_ret_offset\" (" + errcode_ret_offset +
") equals or exceeds array length (" + errcode_ret.length +
")");
1574 final long __addr_ =
addressTable._addressof_clCreateFromGLTexture2D;
1576 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clCreateFromGLTexture2D"));
1578 return dispatch_clCreateFromGLTexture2D1(context, flags, target, miplevel, texture, errcode_ret, Buffers.SIZEOF_INT * errcode_ret_offset,
false, __addr_);
1585 final boolean errcode_ret_is_direct = Buffers.isDirect(errcode_ret);
1586 final long __addr_ =
addressTable._addressof_clCreateFromGLTexture3D;
1588 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clCreateFromGLTexture3D"));
1590 return dispatch_clCreateFromGLTexture3D1(context, flags, target, miplevel, texture, errcode_ret_is_direct ? errcode_ret : Buffers.getArray(errcode_ret), errcode_ret_is_direct ? Buffers.getDirectBufferByteOffset(errcode_ret) : Buffers.getIndirectBufferByteOffset(errcode_ret), errcode_ret_is_direct, __addr_);
1595 private native
long dispatch_clCreateFromGLTexture3D1(
long context,
long flags,
int target,
int miplevel,
int texture, Object errcode_ret,
int errcode_ret_byte_offset,
boolean errcode_ret_is_direct,
long procAddress);
1598 public long clCreateFromGLTexture3D(
long context,
long flags,
int target,
int miplevel,
int texture,
int[] errcode_ret,
int errcode_ret_offset) {
1600 if(errcode_ret !=
null && errcode_ret.length <= errcode_ret_offset)
1601 throw new IllegalArgumentException(
"array offset argument \"errcode_ret_offset\" (" + errcode_ret_offset +
") equals or exceeds array length (" + errcode_ret.length +
")");
1602 final long __addr_ =
addressTable._addressof_clCreateFromGLTexture3D;
1604 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clCreateFromGLTexture3D"));
1606 return dispatch_clCreateFromGLTexture3D1(context, flags, target, miplevel, texture, errcode_ret, Buffers.SIZEOF_INT * errcode_ret_offset,
false, __addr_);
1613 final boolean errcode_ret_is_direct = Buffers.isDirect(errcode_ret);
1614 final long __addr_ =
addressTable._addressof_clCreateFromGLRenderbuffer;
1616 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clCreateFromGLRenderbuffer"));
1618 return dispatch_clCreateFromGLRenderbuffer1(context, flags, renderbuffer, errcode_ret_is_direct ? errcode_ret : Buffers.getArray(errcode_ret), errcode_ret_is_direct ? Buffers.getDirectBufferByteOffset(errcode_ret) : Buffers.getIndirectBufferByteOffset(errcode_ret), errcode_ret_is_direct, __addr_);
1623 private native
long dispatch_clCreateFromGLRenderbuffer1(
long context,
long flags,
int renderbuffer, Object errcode_ret,
int errcode_ret_byte_offset,
boolean errcode_ret_is_direct,
long procAddress);
1628 if(errcode_ret !=
null && errcode_ret.length <= errcode_ret_offset)
1629 throw new IllegalArgumentException(
"array offset argument \"errcode_ret_offset\" (" + errcode_ret_offset +
") equals or exceeds array length (" + errcode_ret.length +
")");
1630 final long __addr_ =
addressTable._addressof_clCreateFromGLRenderbuffer;
1632 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clCreateFromGLRenderbuffer"));
1634 return dispatch_clCreateFromGLRenderbuffer1(context, flags, renderbuffer, errcode_ret, Buffers.SIZEOF_INT * errcode_ret_offset,
false, __addr_);
1642 final boolean gl_object_type_is_direct = Buffers.isDirect(gl_object_type);
1643 final boolean gl_object_name_is_direct = Buffers.isDirect(gl_object_name);
1644 final long __addr_ =
addressTable._addressof_clGetGLObjectInfo;
1646 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clGetGLObjectInfo"));
1648 return dispatch_clGetGLObjectInfo1(memobj, gl_object_type_is_direct ? gl_object_type : Buffers.getArray(gl_object_type), gl_object_type_is_direct ? Buffers.getDirectBufferByteOffset(gl_object_type) : Buffers.getIndirectBufferByteOffset(gl_object_type), gl_object_type_is_direct, gl_object_name_is_direct ? gl_object_name : Buffers.getArray(gl_object_name), gl_object_name_is_direct ? Buffers.getDirectBufferByteOffset(gl_object_name) : Buffers.getIndirectBufferByteOffset(gl_object_name), gl_object_name_is_direct, __addr_);
1654 private native
int dispatch_clGetGLObjectInfo1(
long memobj, Object gl_object_type,
int gl_object_type_byte_offset,
boolean gl_object_type_is_direct, Object gl_object_name,
int gl_object_name_byte_offset,
boolean gl_object_name_is_direct,
long procAddress);
1657 public int clGetGLObjectInfo(
long memobj,
int[] gl_object_type,
int gl_object_type_offset,
int[] gl_object_name,
int gl_object_name_offset) {
1659 if(gl_object_type !=
null && gl_object_type.length <= gl_object_type_offset)
1660 throw new IllegalArgumentException(
"array offset argument \"gl_object_type_offset\" (" + gl_object_type_offset +
") equals or exceeds array length (" + gl_object_type.length +
")");
1661 if(gl_object_name !=
null && gl_object_name.length <= gl_object_name_offset)
1662 throw new IllegalArgumentException(
"array offset argument \"gl_object_name_offset\" (" + gl_object_name_offset +
") equals or exceeds array length (" + gl_object_name.length +
")");
1663 final long __addr_ =
addressTable._addressof_clGetGLObjectInfo;
1665 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clGetGLObjectInfo"));
1667 return dispatch_clGetGLObjectInfo1(memobj, gl_object_type, Buffers.SIZEOF_INT * gl_object_type_offset,
false, gl_object_name, Buffers.SIZEOF_INT * gl_object_name_offset,
false, __addr_);
1673 public int clGetGLTextureInfo(
long memobj,
int param_name,
long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret) {
1675 final boolean param_value_is_direct = Buffers.isDirect(param_value);
1676 final boolean param_value_size_ret_is_direct = Buffers.isDirect(param_value_size_ret);
1677 final long __addr_ =
addressTable._addressof_clGetGLTextureInfo;
1679 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clGetGLTextureInfo"));
1681 return dispatch_clGetGLTextureInfo1(memobj, param_name, param_value_size, param_value_is_direct ? param_value : Buffers.getArray(param_value), param_value_is_direct ? Buffers.getDirectBufferByteOffset(param_value) : Buffers.getIndirectBufferByteOffset(param_value), param_value_is_direct, param_value_size_ret_is_direct ? ( param_value_size_ret !=
null ? param_value_size_ret.getBuffer() :
null ) : Buffers.getArray(param_value_size_ret), param_value_size_ret_is_direct ? Buffers.getDirectBufferByteOffset(param_value_size_ret) : Buffers.getIndirectBufferByteOffset(param_value_size_ret), param_value_size_ret_is_direct, __addr_);
1687 private native
int dispatch_clGetGLTextureInfo1(
long memobj,
int param_name,
long param_value_size, Object param_value,
int param_value_byte_offset,
boolean param_value_is_direct, Object param_value_size_ret,
int param_value_size_ret_byte_offset,
boolean param_value_size_ret_is_direct,
long procAddress);
1693 public int clEnqueueAcquireGLObjects(
long command_queue,
int num_objects, PointerBuffer mem_objects,
int num_events_in_wait_list, PointerBuffer event_wait_list, PointerBuffer event) {
1695 if (!Buffers.isDirect(mem_objects))
1696 throw new IllegalArgumentException(
"Argument \"mem_objects\" is not a direct buffer");
1697 if (!Buffers.isDirect(event_wait_list))
1698 throw new IllegalArgumentException(
"Argument \"event_wait_list\" is not a direct buffer");
1699 if (!Buffers.isDirect(event))
1700 throw new IllegalArgumentException(
"Argument \"event\" is not a direct buffer");
1701 final long __addr_ =
addressTable._addressof_clEnqueueAcquireGLObjects;
1703 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clEnqueueAcquireGLObjects"));
1705 return dispatch_clEnqueueAcquireGLObjects0(command_queue, num_objects, mem_objects !=
null ? mem_objects.getBuffer() :
null, Buffers.getDirectBufferByteOffset(mem_objects), num_events_in_wait_list, event_wait_list !=
null ? event_wait_list.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event_wait_list), event !=
null ? event.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event), __addr_);
1712 private native
int dispatch_clEnqueueAcquireGLObjects0(
long command_queue,
int num_objects, Object mem_objects,
int mem_objects_byte_offset,
int num_events_in_wait_list, Object event_wait_list,
int event_wait_list_byte_offset, Object event,
int event_byte_offset,
long procAddress);
1718 public int clEnqueueReleaseGLObjects(
long command_queue,
int num_objects, PointerBuffer mem_objects,
int num_events_in_wait_list, PointerBuffer event_wait_list, PointerBuffer event) {
1720 if (!Buffers.isDirect(mem_objects))
1721 throw new IllegalArgumentException(
"Argument \"mem_objects\" is not a direct buffer");
1722 if (!Buffers.isDirect(event_wait_list))
1723 throw new IllegalArgumentException(
"Argument \"event_wait_list\" is not a direct buffer");
1724 if (!Buffers.isDirect(event))
1725 throw new IllegalArgumentException(
"Argument \"event\" is not a direct buffer");
1726 final long __addr_ =
addressTable._addressof_clEnqueueReleaseGLObjects;
1728 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clEnqueueReleaseGLObjects"));
1730 return dispatch_clEnqueueReleaseGLObjects0(command_queue, num_objects, mem_objects !=
null ? mem_objects.getBuffer() :
null, Buffers.getDirectBufferByteOffset(mem_objects), num_events_in_wait_list, event_wait_list !=
null ? event_wait_list.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event_wait_list), event !=
null ? event.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event), __addr_);
1737 private native
int dispatch_clEnqueueReleaseGLObjects0(
long command_queue,
int num_objects, Object mem_objects,
int mem_objects_byte_offset,
int num_events_in_wait_list, Object event_wait_list,
int event_wait_list_byte_offset, Object event,
int event_byte_offset,
long procAddress);
1743 public int clGetGLContextInfoKHR(PointerBuffer properties,
int param_name,
long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret) {
1745 if (!Buffers.isDirect(properties))
1746 throw new IllegalArgumentException(
"Argument \"properties\" is not a direct buffer");
1747 if (!Buffers.isDirect(param_value))
1748 throw new IllegalArgumentException(
"Argument \"param_value\" is not a direct buffer");
1749 if (!Buffers.isDirect(param_value_size_ret))
1750 throw new IllegalArgumentException(
"Argument \"param_value_size_ret\" is not a direct buffer");
1751 final long __addr_ =
addressTable._addressof_clGetGLContextInfoKHR;
1753 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clGetGLContextInfoKHR"));
1755 return dispatch_clGetGLContextInfoKHR0(properties !=
null ? properties.getBuffer() :
null, Buffers.getDirectBufferByteOffset(properties), param_name, param_value_size, param_value, Buffers.getDirectBufferByteOffset(param_value), param_value_size_ret !=
null ? param_value_size_ret.getBuffer() :
null, Buffers.getDirectBufferByteOffset(param_value_size_ret), __addr_);
1762 private native
int dispatch_clGetGLContextInfoKHR0(Object properties,
int properties_byte_offset,
int param_name,
long param_value_size, Object param_value,
int param_value_byte_offset, Object param_value_size_ret,
int param_value_size_ret_byte_offset,
long procAddress);
1768 final boolean arg2_is_direct = Buffers.isDirect(arg2);
1769 final long __addr_ =
addressTable._addressof_clCreateEventFromGLsyncKHR;
1771 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clCreateEventFromGLsyncKHR"));
1773 return dispatch_clCreateEventFromGLsyncKHR1(arg0, arg1, arg2_is_direct ? arg2 : Buffers.getArray(arg2), arg2_is_direct ? Buffers.getDirectBufferByteOffset(arg2) : Buffers.getIndirectBufferByteOffset(arg2), arg2_is_direct, __addr_);
1778 private native
long dispatch_clCreateEventFromGLsyncKHR1(
long arg0,
long arg1, Object arg2,
int arg2_byte_offset,
boolean arg2_is_direct,
long procAddress);
1783 if(arg2 !=
null && arg2.length <= arg2_offset)
1784 throw new IllegalArgumentException(
"array offset argument \"arg2_offset\" (" + arg2_offset +
") equals or exceeds array length (" + arg2.length +
")");
1785 final long __addr_ =
addressTable._addressof_clCreateEventFromGLsyncKHR;
1787 throw new UnsupportedOperationException(String.format(
"Method \"%s\" not available",
"clCreateEventFromGLsyncKHR"));
1789 return dispatch_clCreateEventFromGLsyncKHR1(arg0, arg1, arg2, Buffers.SIZEOF_INT * arg2_offset,
false, __addr_);
1806 static final DynamicLibraryBundle dynamicLookupHelper;
1809 dynamicLookupHelper = AccessController.doPrivileged(
new PrivilegedAction<DynamicLibraryBundle>() {
1810 public DynamicLibraryBundle run() {
1812 if(!bundle.isToolLibLoaded()) {
1817 if(!bundle.isLibComplete()) {
1818 System.err.println(
"Couln't load native CL/JNI glue library");
1832 private final LongLongHashMap contextCallbackMap =
new LongLongHashMap();
1836 this.contextCallbackMap.setKeyNotFoundValue(0);
1843 public static boolean isAvailable() {
return dynamicLookupHelper !=
null; }
1845 static long clGetExtensionFunctionAddress(
long clGetExtensionFunctionAddressHandle, java.lang.String procname)
1847 if (clGetExtensionFunctionAddressHandle == 0) {
1848 throw new RuntimeException(
"Passed null pointer for method \"clGetExtensionFunctionAddress\"");
1850 return dispatch_clGetExtensionFunctionAddressStatic(procname, clGetExtensionFunctionAddressHandle);
1854 long clGetExtensionFunctionAddress(String fname) {
1856 final long __addr_ =
addressTable._addressof_clGetExtensionFunctionAddress;
1858 throw new UnsupportedOperationException(
"Method \"clGetExtensionFunctionAddress\" not available");
1860 return dispatch_clGetExtensionFunctionAddressStatic(fname, __addr_);
1864 private static native
long dispatch_clGetExtensionFunctionAddressStatic(String fname,
long procAddress);
1869 if (properties !=
null && !properties.isDirect()) {
1870 throw new RuntimeException(
"Argument \"properties\" was not a direct buffer");
1873 if (errcode_ret !=
null && !errcode_ret.isDirect()) {
1874 throw new RuntimeException(
"Argument \"errcode_ret\" was not a direct buffer");
1877 final long address =
addressTable._addressof_clCreateContext;
1879 throw new UnsupportedOperationException(
"Method not available");
1882 final long[] global =
new long[1];
1883 final long ctx = this.clCreateContext0(
1884 properties !=
null ? properties.getBuffer() :
null, Buffers.getDirectBufferByteOffset(properties),
1885 devices !=
null ? devices.remaining() : 0, devices !=
null ? devices.getBuffer() :
null, Buffers.getDirectBufferByteOffset(devices),
1886 pfn_notify, global, errcode_ret, Buffers.getDirectBufferByteOffset(errcode_ret), address);
1888 if (pfn_notify !=
null && global[0] != 0) {
1889 synchronized (contextCallbackMap) {
1890 contextCallbackMap.put(ctx, global[0]);
1896 private native
long clCreateContext0(Object cl_context_properties,
int props_offset,
int numDevices, Object devices,
int devices_offset, Object pfn_notify,
long[] global, Object errcode_ret,
int err_offset,
long address);
1900 if (properties !=
null && !properties.isDirect()) {
1901 throw new RuntimeException(
"Argument \"properties\" was not a direct buffer");
1904 if (errcode_ret !=
null && !errcode_ret.isDirect()) {
1905 throw new RuntimeException(
"Argument \"errcode_ret\" was not a direct buffer");
1908 final long address =
addressTable._addressof_clCreateContextFromType;
1910 throw new UnsupportedOperationException(
"Method not available");
1913 final long[] global =
new long[1];
1914 final long ctx = this.clCreateContextFromType0(
1915 properties !=
null ? properties.getBuffer() :
null, Buffers.getDirectBufferByteOffset(properties),
1916 device_type, pfn_notify, global, errcode_ret, Buffers.getDirectBufferByteOffset(errcode_ret), address);
1918 if (pfn_notify !=
null && global[0] != 0) {
1919 synchronized (contextCallbackMap) {
1920 contextCallbackMap.put(ctx, global[0]);
1926 private native
long clCreateContextFromType0(Object properties,
int props_offset,
long device_type, Object pfn_notify,
long[] global, Object errcode_ret,
int err_offset,
long address);
1931 synchronized (contextCallbackMap) {
1932 global = contextCallbackMap.remove(context);
1935 final long address =
addressTable._addressof_clReleaseContext;
1937 throw new UnsupportedOperationException(
"Method not available");
1948 if (deviceList !=
null && !deviceList.isDirect()) {
1949 throw new RuntimeException(
"Argument \"properties\" was not a direct buffer");
1952 final long address =
addressTable._addressof_clBuildProgram;
1954 throw new UnsupportedOperationException(
"Method not available");
1956 return clBuildProgram0(program, deviceCount, deviceList !=
null ? deviceList.getBuffer() :
null,
1957 Buffers.getDirectBufferByteOffset(deviceList), options, cb, address);
1961 private native
int clBuildProgram0(
long program,
int deviceCount, Object deviceList,
int deviceListOffset, String options,
BuildProgramCallback cb,
long address);
1966 final long address =
addressTable._addressof_clSetEventCallback;
1968 throw new UnsupportedOperationException(
"Method not available");
1970 return clSetEventCallback0(event, trigger, callback, address);
1973 private native
int clSetEventCallback0(
long event,
int type,
CLEventCallback cb,
long address);
1978 final long address =
addressTable._addressof_clSetMemObjectDestructorCallback;
1980 throw new UnsupportedOperationException(
"Method not available");
1982 return clSetMemObjectDestructorCallback0(memObjID, cb, address);
1997 public ByteBuffer
clEnqueueMapImage(
final long command_queue,
final long image,
final int blocking_map,
final long map_flags,
1998 final PointerBuffer origin,
final PointerBuffer range,
1999 final PointerBuffer image_row_pitch,
final PointerBuffer image_slice_pitch,
2000 final int num_events_in_wait_list,
2001 final PointerBuffer event_wait_list,
final PointerBuffer event,
final IntBuffer errcode_ret) {
2003 if (origin !=
null && !origin.isDirect()) {
2004 throw new CLException(
"Argument \"origin\" was not a direct buffer");
2006 if (range !=
null && !range.isDirect()) {
2007 throw new CLException(
"Argument \"range\" was not a direct buffer");
2009 if (image_row_pitch !=
null && !image_row_pitch.isDirect()) {
2010 throw new CLException(
"Argument \"image_row_pitch\" was not a direct buffer");
2012 if (image_slice_pitch !=
null && !image_slice_pitch.isDirect()) {
2013 throw new CLException(
"Argument \"image_slice_pitch\" was not a direct buffer");
2015 if (event_wait_list !=
null && !event_wait_list.isDirect()) {
2016 throw new CLException(
"Argument \"event_wait_list\" was not a direct buffer");
2018 if (event !=
null && !event.isDirect()) {
2019 throw new CLException(
"Argument \"event\" was not a direct buffer");
2021 if (errcode_ret !=
null && !errcode_ret.isDirect()) {
2022 throw new CLException(
"Argument \"errcode_ret\" was not a direct buffer");
2025 final long getImageInfoAddress =
addressTable._addressof_clGetImageInfo;
2026 if (getImageInfoAddress == 0) {
2027 throw new UnsupportedOperationException(
"Method not available");
2029 final long mapImageAddress =
addressTable._addressof_clEnqueueMapImage;
2030 if (mapImageAddress == 0) {
2031 throw new UnsupportedOperationException(
"Method not available");
2034 _res = clEnqueueMapImage0(command_queue, image, blocking_map, map_flags, origin !=
null ? origin.getBuffer() :
null,
2035 Buffers.getDirectBufferByteOffset(origin), range !=
null ? range.getBuffer() :
null,
2036 Buffers.getDirectBufferByteOffset(range), image_row_pitch !=
null ? image_row_pitch.getBuffer() :
null,
2037 Buffers.getDirectBufferByteOffset(image_row_pitch), image_slice_pitch !=
null ? image_slice_pitch.getBuffer() :
null,
2038 Buffers.getDirectBufferByteOffset(image_slice_pitch), num_events_in_wait_list,
2039 event_wait_list !=
null ? event_wait_list.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event_wait_list),
2040 event !=
null ? event.getBuffer() :
null, Buffers.getDirectBufferByteOffset(event), errcode_ret,
2041 Buffers.getDirectBufferByteOffset(errcode_ret), getImageInfoAddress, mapImageAddress);
2045 Buffers.nativeOrder(_res);
2057 private native ByteBuffer clEnqueueMapImage0(
long command_queue,
long image,
int blocking_map,
long map_flags,
2058 Object origin,
int origin_byte_offset, Object range,
int range_byte_offset, Object image_row_pitch,
2059 int image_row_pitch_byte_offset, Object image_slice_pitch,
int image_slice_pitch_byte_offset,
2060 int num_events_in_wait_list, Object event_wait_list,
int event_wait_list_byte_offset, Object event,
2061 int event_byte_offset, Object errcode_ret,
int errcode_ret_byte_offset,
2062 long getImageInfoAddress,
long mapImageAddress);
Main Exception type for runtime OpenCL errors and failed function calls (e.g.
Java bindings to OpenCL, the Open Computing Language (generated).
int clReleaseKernel(long kernel)
Entry point (through function pointer) to C language function: cl_int {@native clReleaseKernel}(cl_...
long clCreateImage2D(long context, long flags, CLImageFormatImpl image_format, long image_width, long image_height, long image_row_pitch, Buffer host_ptr, int[] errcode_ret, int errcode_ret_offset)
Entry point (through function pointer) to C language function: cl_mem {@native clCreateImage2D}(cl_...
int clEnqueueAcquireGLObjects(long command_queue, int num_objects, PointerBuffer mem_objects, int num_events_in_wait_list, PointerBuffer event_wait_list, PointerBuffer event)
Entry point (through function pointer) to C language function: cl_int {@native clEnqueueAcquireGLOb...
int clWaitForEvents(int num_events, PointerBuffer event_list)
Entry point (through function pointer) to C language function: cl_int {@native clWaitForEvents}(cl_...
int clGetGLObjectInfo(long memobj, int[] gl_object_type, int gl_object_type_offset, int[] gl_object_name, int gl_object_name_offset)
Entry point (through function pointer) to C language function: cl_int {@native clGetGLObjectInfo}(c...
long clCreateProgramWithBinary(long context, int num_devices, PointerBuffer device_list, PointerBuffer lengths, PointerBuffer binaries, IntBuffer binary_status, IntBuffer errcode_ret)
Entry point (through function pointer) to C language function: cl_program {@native clCreateProgramW...
int clFlush(long command_queue)
Entry point (through function pointer) to C language function: cl_int {@native clFlush}(cl_command_...
int clSetKernelArg(long kernel, int arg_index, long arg_size, Buffer arg_value)
Entry point (through function pointer) to C language function: cl_int {@native clSetKernelArg}(cl_k...
int clIcdGetPlatformIDsKHR(int arg0, PointerBuffer arg1, IntBuffer arg2)
Entry point (through function pointer) to C language function: cl_int {@native clIcdGetPlatformIDsK...
int clRetainContext(long context)
Entry point (through function pointer) to C language function: cl_int {@native clRetainContext}(cl_...
int clEnqueueCopyImage(long command_queue, long src_image, long dst_image, PointerBuffer arg3, PointerBuffer arg4, PointerBuffer arg5, int num_events_in_wait_list, PointerBuffer event_wait_list, PointerBuffer event)
Entry point (through function pointer) to C language function: cl_int {@native clEnqueueCopyImage}(...
int clBuildProgram(final long program, final int deviceCount, final PointerBuffer deviceList, final String options, final BuildProgramCallback cb)
Interface to C language function: int32_t clBuildProgram(cl_program, uint32_t, cl_device_id * ,...
int clGetSupportedImageFormats(long context, long flags, int image_type, int num_entries, CLImageFormatImpl image_formats, IntBuffer num_image_formats)
Entry point (through function pointer) to C language function: cl_int {@native clGetSupportedImageF...
long clCreateImage3D(long context, long flags, CLImageFormatImpl 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)
Entry point (through function pointer) to C language function: cl_mem {@native clCreateImage3D}(cl_...
native int clReleaseContextImpl(long context, long global, long address)
Interface to C language function: int32_t {@native clReleaseContext}(cl_context context);
int clEnqueueCopyBufferToImage(long command_queue, long src_buffer, long dst_image, long src_offset, PointerBuffer arg4, PointerBuffer arg5, int num_events_in_wait_list, PointerBuffer event_wait_list, PointerBuffer event)
Entry point (through function pointer) to C language function: cl_int {@native clEnqueueCopyBufferT...
long clCreateCommandQueue(long context, long device, long properties, int[] errcode_ret, int errcode_ret_offset)
Entry point (through function pointer) to C language function: cl_command_queue {@native clCreateCo...
int clReleaseCommandQueue(long command_queue)
Entry point (through function pointer) to C language function: cl_int {@native clReleaseCommandQueu...
int clCreateKernelsInProgram(long program, int num_kernels, PointerBuffer kernels, IntBuffer num_kernels_ret)
Entry point (through function pointer) to C language function: cl_int {@native clCreateKernelsInPro...
int clCreateSubDevicesEXT(long arg0, long[] arg1, int arg1_offset, int arg2, PointerBuffer arg3, int[] arg4, int arg4_offset)
Entry point (through function pointer) to C language function: cl_int {@native clCreateSubDevicesEX...
int clGetContextInfo(long context, int param_name, long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret)
Entry point (through function pointer) to C language function: cl_int {@native clGetContextInfo}(cl...
int clSetEventCallback(final long event, final int trigger, final CLEventCallback callback)
Interface to C language function: int32_t {@native clSetEventCallback}(cl_event event,...
int clReleaseProgram(long program)
Entry point (through function pointer) to C language function: cl_int {@native clReleaseProgram}(cl...
int clEnqueueReadBuffer(long command_queue, long buffer, int blocking_read, long offset, long cb, Buffer ptr, int num_events_in_wait_list, PointerBuffer event_wait_list, PointerBuffer event)
Entry point (through function pointer) to C language function: cl_int {@native clEnqueueReadBuffer}...
int clGetKernelInfo(long kernel, int param_name, long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret)
Entry point (through function pointer) to C language function: cl_int {@native clGetKernelInfo}(cl_...
int clEnqueueReadBufferRect(long command_queue, long buffer, int blocking_read, PointerBuffer buffer_origin, PointerBuffer host_origin, PointerBuffer region, long buffer_row_pitch, long buffer_slice_pitch, long host_row_pitch, long host_slice_pitch, Buffer ptr, int num_events_in_wait_list, PointerBuffer event_wait_list, PointerBuffer event)
Entry point (through function pointer) to C language function: cl_int {@native clEnqueueReadBufferR...
static CLProcAddressTable11 getAddressTable()
int clSetUserEventStatus(long event, int execution_status)
Entry point (through function pointer) to C language function: cl_int {@native clSetUserEventStatus...
int clEnqueueReleaseGLObjects(long command_queue, int num_objects, PointerBuffer mem_objects, int num_events_in_wait_list, PointerBuffer event_wait_list, PointerBuffer event)
Entry point (through function pointer) to C language function: cl_int {@native clEnqueueReleaseGLOb...
int clGetSamplerInfo(long sampler, int param_name, long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret)
Entry point (through function pointer) to C language function: cl_int {@native clGetSamplerInfo}(cl...
int clGetGLContextInfoKHR(PointerBuffer properties, int param_name, long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret)
Entry point (through function pointer) to C language function: cl_int {@native clGetGLContextInfoKH...
int clReleaseDeviceEXT(long arg0)
Entry point (through function pointer) to C language function: cl_int {@native clReleaseDeviceEXT}(...
long clCreateUserEvent(long context, int[] errcode_ret, int errcode_ret_offset)
Entry point (through function pointer) to C language function: cl_event {@native clCreateUserEvent}...
int clEnqueueBarrier(long command_queue)
Entry point (through function pointer) to C language function: cl_int {@native clEnqueueBarrier}(cl...
int clReleaseSampler(long sampler)
Entry point (through function pointer) to C language function: cl_int {@native clReleaseSampler}(cl...
long clCreateFromGLTexture3D(long context, long flags, int target, int miplevel, int texture, IntBuffer errcode_ret)
Entry point (through function pointer) to C language function: cl_mem {@native clCreateFromGLTextur...
long clCreateSampler(long context, int normalized_coords, int addressing_mode, int filter_mode, int[] errcode_ret, int errcode_ret_offset)
Entry point (through function pointer) to C language function: cl_sampler {@native clCreateSampler}...
int clGetDeviceInfo(long device, int param_name, long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret)
Entry point (through function pointer) to C language function: cl_int {@native clGetDeviceInfo}(cl_...
long clCreateImage2D(long context, long flags, CLImageFormatImpl image_format, long image_width, long image_height, long image_row_pitch, Buffer host_ptr, IntBuffer errcode_ret)
Entry point (through function pointer) to C language function: cl_mem {@native clCreateImage2D}(cl_...
int clGetMemObjectInfo(long memobj, int param_name, long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret)
Entry point (through function pointer) to C language function: cl_int {@native clGetMemObjectInfo}(...
int clEnqueueCopyBufferRect(long command_queue, long src_buffer, long dst_buffer, PointerBuffer src_origin, PointerBuffer dst_origin, PointerBuffer region, long src_row_pitch, long src_slice_pitch, long dst_row_pitch, long dst_slice_pitch, int num_events_in_wait_list, PointerBuffer event_wait_list, PointerBuffer event)
Entry point (through function pointer) to C language function: cl_int {@native clEnqueueCopyBufferR...
long clCreateEventFromGLsyncKHR(long arg0, long arg1, IntBuffer arg2)
Entry point (through function pointer) to C language function: cl_event {@native clCreateEventFromG...
int clRetainCommandQueue(long command_queue)
Entry point (through function pointer) to C language function: cl_int {@native clRetainCommandQueue...
int clEnqueueWriteImage(long command_queue, long image, int blocking_write, PointerBuffer arg3, PointerBuffer arg4, long input_row_pitch, long input_slice_pitch, Buffer ptr, int num_events_in_wait_list, PointerBuffer event_wait_list, PointerBuffer event)
Entry point (through function pointer) to C language function: cl_int {@native clEnqueueWriteImage}...
long clCreateContext(final PointerBuffer properties, final PointerBuffer devices, final CLErrorHandler pfn_notify, final IntBuffer errcode_ret)
Interface to C language function: cl_context {@native clCreateContext}(intptr_t * ,...
int clGetGLTextureInfo(long memobj, int param_name, long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret)
Entry point (through function pointer) to C language function: cl_int {@native clGetGLTextureInfo}(...
long clCreateKernel(long program, String kernel_name, int[] errcode_ret, int errcode_ret_offset)
Entry point (through function pointer) to C language function: cl_kernel {@native clCreateKernel}(c...
int clGetDeviceIDs(long platform, long device_type, int num_entries, PointerBuffer devices, IntBuffer num_devices)
Entry point (through function pointer) to C language function: cl_int {@native clGetDeviceIDs}(cl_p...
long clCreateFromGLTexture3D(long context, long flags, int target, int miplevel, int texture, int[] errcode_ret, int errcode_ret_offset)
Entry point (through function pointer) to C language function: cl_mem {@native clCreateFromGLTextur...
ByteBuffer clEnqueueMapImage(final long command_queue, final long image, final int blocking_map, final long map_flags, final PointerBuffer origin, final PointerBuffer range, final PointerBuffer image_row_pitch, final PointerBuffer image_slice_pitch, final int num_events_in_wait_list, final PointerBuffer event_wait_list, final PointerBuffer event, final IntBuffer errcode_ret)
Interface to C language function: void * {@native clEnqueueMapImage}(cl_command_queue command_queu...
long clCreateImage3D(long context, long flags, CLImageFormatImpl image_format, long image_width, long image_height, long image_depth, long image_row_pitch, long image_slice_pitch, Buffer host_ptr, int[] errcode_ret, int errcode_ret_offset)
Entry point (through function pointer) to C language function: cl_mem {@native clCreateImage3D}(cl_...
long clCreateFromGLBuffer(long context, long flags, int bufobj, IntBuffer errcode_ret)
Entry point (through function pointer) to C language function: cl_mem {@native clCreateFromGLBuffer...
int clRetainDeviceEXT(long arg0)
Entry point (through function pointer) to C language function: cl_int {@native clRetainDeviceEXT}(c...
int clCreateSubDevicesEXT(long arg0, LongBuffer arg1, int arg2, PointerBuffer arg3, IntBuffer arg4)
Entry point (through function pointer) to C language function: cl_int {@native clCreateSubDevicesEX...
long clCreateKernel(long program, String kernel_name, IntBuffer errcode_ret)
Entry point (through function pointer) to C language function: cl_kernel {@native clCreateKernel}(c...
static final CLProcAddressTable11 addressTable
long clCreateSampler(long context, int normalized_coords, int addressing_mode, int filter_mode, IntBuffer errcode_ret)
Entry point (through function pointer) to C language function: cl_sampler {@native clCreateSampler}...
int clEnqueueWriteBufferRect(long command_queue, long buffer, int blocking_write, PointerBuffer buffer_origin, PointerBuffer host_origin, PointerBuffer region, long buffer_row_pitch, long buffer_slice_pitch, long host_row_pitch, long host_slice_pitch, Buffer ptr, int num_events_in_wait_list, PointerBuffer event_wait_list, PointerBuffer event)
Entry point (through function pointer) to C language function: cl_int {@native clEnqueueWriteBuffer...
int clGetProgramInfo(long program, int param_name, long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret)
Entry point (through function pointer) to C language function: cl_int {@native clGetProgramInfo}(cl...
long clCreateContextFromType(final PointerBuffer properties, final long device_type, final CLErrorHandler pfn_notify, final IntBuffer errcode_ret)
Interface to C language function: cl_context {@native clCreateContextFromType}(cl_context_properti...
int clUnloadCompiler()
Entry point (through function pointer) to C language function: cl_int {@native clUnloadCompiler}()
int clGetCommandQueueInfo(long command_queue, int param_name, long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret)
Entry point (through function pointer) to C language function: cl_int {@native clGetCommandQueueInf...
int clRetainSampler(long sampler)
Entry point (through function pointer) to C language function: cl_int {@native clRetainSampler}(cl_...
int clEnqueueCopyBuffer(long command_queue, long src_buffer, long dst_buffer, long src_offset, long dst_offset, long cb, int num_events_in_wait_list, PointerBuffer event_wait_list, PointerBuffer event)
Entry point (through function pointer) to C language function: cl_int {@native clEnqueueCopyBuffer}...
long clCreateFromGLRenderbuffer(long context, long flags, int renderbuffer, int[] errcode_ret, int errcode_ret_offset)
Entry point (through function pointer) to C language function: cl_mem {@native clCreateFromGLRender...
long clCreateUserEvent(long context, IntBuffer errcode_ret)
Entry point (through function pointer) to C language function: cl_event {@native clCreateUserEvent}...
int clSetMemObjectDestructorCallback(final long memObjID, final CLMemObjectDestructorCallback cb)
Interface to C language function: int32_t {@native clSetMemObjectDestructorCallback}(cl_mem memobj...
int clEnqueueUnmapMemObject(long command_queue, long memobj, Buffer mapped_ptr, int num_events_in_wait_list, PointerBuffer event_wait_list, PointerBuffer event)
Entry point (through function pointer) to C language function: cl_int {@native clEnqueueUnmapMemObj...
int clGetGLObjectInfo(long memobj, IntBuffer gl_object_type, IntBuffer gl_object_name)
Entry point (through function pointer) to C language function: cl_int {@native clGetGLObjectInfo}(c...
int clRetainKernel(long kernel)
Entry point (through function pointer) to C language function: cl_int {@native clRetainKernel}(cl_k...
int clReleaseEvent(long event)
Entry point (through function pointer) to C language function: cl_int {@native clReleaseEvent}(cl_e...
int clGetEventProfilingInfo(long event, int param_name, long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret)
Entry point (through function pointer) to C language function: cl_int {@native clGetEventProfilingI...
int clRetainEvent(long event)
Entry point (through function pointer) to C language function: cl_int {@native clRetainEvent}(cl_ev...
int clGetPlatformIDs(int num_entries, PointerBuffer platforms, IntBuffer num_platforms)
Entry point (through function pointer) to C language function: cl_int {@native clGetPlatformIDs}(cl...
int clGetImageInfo(long image, int param_name, long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret)
Entry point (through function pointer) to C language function: cl_int {@native clGetImageInfo}(cl_m...
int clFinish(long command_queue)
Entry point (through function pointer) to C language function: cl_int {@native clFinish}(cl_command...
long clCreateFromGLBuffer(long context, long flags, int bufobj, int[] errcode_ret, int errcode_ret_offset)
Entry point (through function pointer) to C language function: cl_mem {@native clCreateFromGLBuffer...
ByteBuffer clEnqueueMapBuffer(long command_queue, long buffer, int blocking_map, long map_flags, long offset, long cb, int num_events_in_wait_list, PointerBuffer event_wait_list, PointerBuffer event, IntBuffer errcode_ret)
Entry point (through function pointer) to C language function: void * {@native clEnqueueMapBuffer}(...
int clReleaseMemObject(long memobj)
Entry point (through function pointer) to C language function: cl_int {@native clReleaseMemObject}(...
int clGetEventInfo(long event, int param_name, long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret)
Entry point (through function pointer) to C language function: cl_int {@native clGetEventInfo}(cl_e...
int clEnqueueReadImage(long command_queue, long image, int blocking_read, PointerBuffer arg3, PointerBuffer arg4, long row_pitch, long slice_pitch, Buffer ptr, int num_events_in_wait_list, PointerBuffer event_wait_list, PointerBuffer event)
Entry point (through function pointer) to C language function: cl_int {@native clEnqueueReadImage}(...
int clEnqueueCopyImageToBuffer(long command_queue, long src_image, long dst_buffer, PointerBuffer arg3, PointerBuffer arg4, long dst_offset, int num_events_in_wait_list, PointerBuffer event_wait_list, PointerBuffer event)
Entry point (through function pointer) to C language function: cl_int {@native clEnqueueCopyImageTo...
static boolean isAvailable()
Accessor.
long clCreateEventFromGLsyncKHR(long arg0, long arg1, int[] arg2, int arg2_offset)
Entry point (through function pointer) to C language function: cl_event {@native clCreateEventFromG...
int clRetainProgram(long program)
Entry point (through function pointer) to C language function: cl_int {@native clRetainProgram}(cl_...
int clEnqueueNDRangeKernel(long command_queue, long kernel, int work_dim, PointerBuffer global_work_offset, PointerBuffer global_work_size, PointerBuffer local_work_size, int num_events_in_wait_list, PointerBuffer event_wait_list, PointerBuffer event)
Entry point (through function pointer) to C language function: cl_int {@native clEnqueueNDRangeKern...
long clCreateFromGLRenderbuffer(long context, long flags, int renderbuffer, IntBuffer errcode_ret)
Entry point (through function pointer) to C language function: cl_mem {@native clCreateFromGLRender...
int clEnqueueTask(long command_queue, long kernel, int num_events_in_wait_list, PointerBuffer event_wait_list, PointerBuffer event)
Entry point (through function pointer) to C language function: cl_int {@native clEnqueueTask}(cl_co...
long clCreateFromGLTexture2D(long context, long flags, int target, int miplevel, int texture, int[] errcode_ret, int errcode_ret_offset)
Entry point (through function pointer) to C language function: cl_mem {@native clCreateFromGLTextur...
int clEnqueueWaitForEvents(long command_queue, int num_events, PointerBuffer event_list)
Entry point (through function pointer) to C language function: cl_int {@native clEnqueueWaitForEven...
long clCreateBuffer(long context, long flags, long size, Buffer host_ptr, IntBuffer errcode_ret)
Entry point (through function pointer) to C language function: cl_mem {@native clCreateBuffer}(cl_c...
int clEnqueueWriteBuffer(long command_queue, long buffer, int blocking_write, long offset, long cb, Buffer ptr, int num_events_in_wait_list, PointerBuffer event_wait_list, PointerBuffer event)
Entry point (through function pointer) to C language function: cl_int {@native clEnqueueWriteBuffer...
long clCreateFromGLTexture2D(long context, long flags, int target, int miplevel, int texture, IntBuffer errcode_ret)
Entry point (through function pointer) to C language function: cl_mem {@native clCreateFromGLTextur...
long clCreateBuffer(long context, long flags, long size, Buffer host_ptr, int[] errcode_ret, int errcode_ret_offset)
Entry point (through function pointer) to C language function: cl_mem {@native clCreateBuffer}(cl_c...
int clGetSupportedImageFormats(long context, long flags, int image_type, int num_entries, CLImageFormatImpl image_formats, int[] num_image_formats, int num_image_formats_offset)
Entry point (through function pointer) to C language function: cl_int {@native clGetSupportedImageF...
int clReleaseContext(final long context)
Interface to C language function: cl_int {@native clReleaseContext}(cl_context context)
long clCreateSubBuffer(long buffer, long flags, int buffer_create_type, Buffer buffer_create_info, int[] errcode_ret, int errcode_ret_offset)
Entry point (through function pointer) to C language function: cl_mem {@native clCreateSubBuffer}(c...
int clRetainMemObject(long memobj)
Entry point (through function pointer) to C language function: cl_int {@native clRetainMemObject}(c...
int clEnqueueMarker(long command_queue, PointerBuffer event)
Entry point (through function pointer) to C language function: cl_int {@native clEnqueueMarker}(cl_...
int clGetKernelWorkGroupInfo(long kernel, long device, int param_name, long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret)
Entry point (through function pointer) to C language function: cl_int {@native clGetKernelWorkGroup...
long clCreateCommandQueue(long context, long device, long properties, IntBuffer errcode_ret)
Entry point (through function pointer) to C language function: cl_command_queue {@native clCreateCo...
long clCreateSubBuffer(long buffer, long flags, int buffer_create_type, Buffer buffer_create_info, IntBuffer errcode_ret)
Entry point (through function pointer) to C language function: cl_mem {@native clCreateSubBuffer}(c...
long clCreateProgramWithSource(long context, int count, String[] strings, PointerBuffer lengths, IntBuffer errcode_ret)
Entry point (through function pointer) to C language function: cl_program {@native clCreateProgramW...
int clGetProgramBuildInfo(long program, long device, int param_name, long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret)
Entry point (through function pointer) to C language function: cl_int {@native clGetProgramBuildInf...
int clGetPlatformInfo(long platform, int param_name, long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret)
Entry point (through function pointer) to C language function: cl_int {@native clGetPlatformInfo}(c...
This table is a cache of pointers to the dynamically-linkable C library.
Experimental: the api may change in future, feedback appreciated.
A callback an application can register to be called when the program executable has been built (succe...
A callback for a specific command execution status.
A callback which is invoked by the OpenCL implementation when the memory object is deleted and its re...