JOCL v2.6.0-rc-20250722
JOCL, OpenCL® API Binding for Java™ (public API).
CLImpl11.java
Go to the documentation of this file.
1/* !---- DO NOT EDIT: This file autogenerated by com/jogamp/gluegen/procaddress/ProcAddressEmitter.java on Tue Jul 22 05:27:25 CEST 2025 ----! */
2/* !---- Java-Unit: [pkg com.jogamp.opencl.llb.impl, cls CLImpl11], ../build/gensrc/java/com/jogamp/opencl/llb/impl/CLImpl11.java ----! */
3
4package com.jogamp.opencl.llb.impl;
5
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.*;
20import java.nio.*;
21import com.jogamp.common.util.*;
22import java.util.Set;
23import java.util.Map;
24import java.util.HashMap;
25import java.nio.charset.Charset;
26import java.nio.charset.StandardCharsets;
27
28 /**
29 * Java bindings to OpenCL, the Open Computing Language (generated).
30 * @author Michael Bien, GlueGen, et al.
31 */
32public class CLImpl11 implements CL11{
33 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetPlatformIDs}(cl_uint num_entries, cl_platform_id * platforms, cl_uint * num_platforms)</code><br>
34 @param platforms a direct only {@link com.jogamp.common.nio.PointerBuffer}
35 @param num_platforms a direct only {@link java.nio.IntBuffer} */
36 public int clGetPlatformIDs(int num_entries, PointerBuffer platforms, IntBuffer num_platforms) {
37
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;
43 if (__addr_ == 0) {
44 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clGetPlatformIDs"));
45 }
46 return dispatch_clGetPlatformIDs0(num_entries, platforms != null ? platforms.getBuffer() : null, Buffers.getDirectBufferByteOffset(platforms), num_platforms, Buffers.getDirectBufferByteOffset(num_platforms), __addr_);
47 }
48
49 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetPlatformIDs}(cl_uint num_entries, cl_platform_id * platforms, cl_uint * num_platforms)</code><br>
50 @param platforms a direct only {@link com.jogamp.common.nio.PointerBuffer}
51 @param num_platforms a direct only {@link java.nio.IntBuffer} */
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);
53
54 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetPlatformInfo}(cl_platform_id platform, cl_platform_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret)</code><br>
55 @param param_value a direct only {@link java.nio.Buffer}
56 @param param_value_size_ret a direct only {@link com.jogamp.common.nio.PointerBuffer} */
57 public int clGetPlatformInfo(long platform, int param_name, long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret) {
58
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;
64 if (__addr_ == 0) {
65 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clGetPlatformInfo"));
66 }
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_);
68 }
69
70 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetPlatformInfo}(cl_platform_id platform, cl_platform_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret)</code><br>
71 @param param_value a direct only {@link java.nio.Buffer}
72 @param param_value_size_ret a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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);
74
75 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetDeviceIDs}(cl_platform_id platform, cl_device_type device_type, cl_uint num_entries, cl_device_id * devices, cl_uint * num_devices)</code><br>
76 @param devices a direct only {@link com.jogamp.common.nio.PointerBuffer}
77 @param num_devices a direct only {@link java.nio.IntBuffer} */
78 public int clGetDeviceIDs(long platform, long device_type, int num_entries, PointerBuffer devices, IntBuffer num_devices) {
79
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;
85 if (__addr_ == 0) {
86 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clGetDeviceIDs"));
87 }
88 return dispatch_clGetDeviceIDs0(platform, device_type, num_entries, devices != null ? devices.getBuffer() : null, Buffers.getDirectBufferByteOffset(devices), num_devices, Buffers.getDirectBufferByteOffset(num_devices), __addr_);
89 }
90
91 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetDeviceIDs}(cl_platform_id platform, cl_device_type device_type, cl_uint num_entries, cl_device_id * devices, cl_uint * num_devices)</code><br>
92 @param devices a direct only {@link com.jogamp.common.nio.PointerBuffer}
93 @param num_devices a direct only {@link java.nio.IntBuffer} */
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);
95
96 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetDeviceInfo}(cl_device_id device, cl_device_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret)</code><br>
97 @param param_value a direct only {@link java.nio.Buffer}
98 @param param_value_size_ret a direct only {@link com.jogamp.common.nio.PointerBuffer} */
99 public int clGetDeviceInfo(long device, int param_name, long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret) {
100
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;
106 if (__addr_ == 0) {
107 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clGetDeviceInfo"));
108 }
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_);
110 }
111
112 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetDeviceInfo}(cl_device_id device, cl_device_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret)</code><br>
113 @param param_value a direct only {@link java.nio.Buffer}
114 @param param_value_size_ret a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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);
116
117 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clRetainContext}(cl_context context)</code><br> */
118 public int clRetainContext(long context) {
119
120 final long __addr_ = addressTable._addressof_clRetainContext;
121 if (__addr_ == 0) {
122 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clRetainContext"));
123 }
124 return dispatch_clRetainContext1(context, __addr_);
125 }
126
127 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clRetainContext}(cl_context context)</code><br> */
128 private native int dispatch_clRetainContext1(long context, long procAddress);
129
130 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetContextInfo}(cl_context context, cl_context_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret)</code><br>
131 @param param_value a direct only {@link java.nio.Buffer}
132 @param param_value_size_ret a direct only {@link com.jogamp.common.nio.PointerBuffer} */
133 public int clGetContextInfo(long context, int param_name, long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret) {
134
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;
140 if (__addr_ == 0) {
141 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clGetContextInfo"));
142 }
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_);
144 }
145
146 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetContextInfo}(cl_context context, cl_context_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret)</code><br>
147 @param param_value a direct only {@link java.nio.Buffer}
148 @param param_value_size_ret a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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);
150
151 /** Entry point (through function pointer) to C language function: <br> <code>cl_command_queue {@native clCreateCommandQueue}(cl_context context, cl_device_id device, cl_command_queue_properties properties, cl_int * errcode_ret)</code><br>
152 @param errcode_ret a direct or array-backed {@link java.nio.IntBuffer} */
153 public long clCreateCommandQueue(long context, long device, long properties, IntBuffer errcode_ret) {
154
155 final boolean errcode_ret_is_direct = Buffers.isDirect(errcode_ret);
156 final long __addr_ = addressTable._addressof_clCreateCommandQueue;
157 if (__addr_ == 0) {
158 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clCreateCommandQueue"));
159 }
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_);
161 }
162
163 /** Entry point (through function pointer) to C language function: <br> <code>cl_command_queue {@native clCreateCommandQueue}(cl_context context, cl_device_id device, cl_command_queue_properties properties, cl_int * errcode_ret)</code><br>
164 @param errcode_ret a direct or array-backed {@link java.nio.IntBuffer} */
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);
166
167 /** Entry point (through function pointer) to C language function: <br> <code>cl_command_queue {@native clCreateCommandQueue}(cl_context context, cl_device_id device, cl_command_queue_properties properties, cl_int * errcode_ret)</code><br> */
168 public long clCreateCommandQueue(long context, long device, long properties, int[] errcode_ret, int errcode_ret_offset) {
169
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;
173 if (__addr_ == 0) {
174 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clCreateCommandQueue"));
175 }
176 return dispatch_clCreateCommandQueue1(context, device, properties, errcode_ret, Buffers.SIZEOF_INT * errcode_ret_offset, false, __addr_);
177 }
178
179 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clRetainCommandQueue}(cl_command_queue command_queue)</code><br> */
180 public int clRetainCommandQueue(long command_queue) {
181
182 final long __addr_ = addressTable._addressof_clRetainCommandQueue;
183 if (__addr_ == 0) {
184 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clRetainCommandQueue"));
185 }
186 return dispatch_clRetainCommandQueue1(command_queue, __addr_);
187 }
188
189 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clRetainCommandQueue}(cl_command_queue command_queue)</code><br> */
190 private native int dispatch_clRetainCommandQueue1(long command_queue, long procAddress);
191
192 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clReleaseCommandQueue}(cl_command_queue command_queue)</code><br> */
193 public int clReleaseCommandQueue(long command_queue) {
194
195 final long __addr_ = addressTable._addressof_clReleaseCommandQueue;
196 if (__addr_ == 0) {
197 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clReleaseCommandQueue"));
198 }
199 return dispatch_clReleaseCommandQueue1(command_queue, __addr_);
200 }
201
202 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clReleaseCommandQueue}(cl_command_queue command_queue)</code><br> */
203 private native int dispatch_clReleaseCommandQueue1(long command_queue, long procAddress);
204
205 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetCommandQueueInfo}(cl_command_queue command_queue, cl_command_queue_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret)</code><br>
206 @param param_value a direct only {@link java.nio.Buffer}
207 @param param_value_size_ret a direct only {@link com.jogamp.common.nio.PointerBuffer} */
208 public int clGetCommandQueueInfo(long command_queue, int param_name, long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret) {
209
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;
215 if (__addr_ == 0) {
216 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clGetCommandQueueInfo"));
217 }
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_);
219 }
220
221 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetCommandQueueInfo}(cl_command_queue command_queue, cl_command_queue_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret)</code><br>
222 @param param_value a direct only {@link java.nio.Buffer}
223 @param param_value_size_ret a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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);
225
226 /** Entry point (through function pointer) to C language function: <br> <code>cl_mem {@native clCreateBuffer}(cl_context context, cl_mem_flags flags, size_t size, void * host_ptr, cl_int * errcode_ret)</code><br>
227 @param host_ptr a direct or array-backed {@link java.nio.Buffer}
228 @param errcode_ret a direct or array-backed {@link java.nio.IntBuffer} */
229 public long clCreateBuffer(long context, long flags, long size, Buffer host_ptr, IntBuffer errcode_ret) {
230
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;
234 if (__addr_ == 0) {
235 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clCreateBuffer"));
236 }
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_);
238 }
239
240 /** Entry point (through function pointer) to C language function: <br> <code>cl_mem {@native clCreateBuffer}(cl_context context, cl_mem_flags flags, size_t size, void * host_ptr, cl_int * errcode_ret)</code><br>
241 @param host_ptr a direct or array-backed {@link java.nio.Buffer}
242 @param errcode_ret a direct or array-backed {@link java.nio.IntBuffer} */
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);
244
245 /** Entry point (through function pointer) to C language function: <br> <code>cl_mem {@native clCreateBuffer}(cl_context context, cl_mem_flags flags, size_t size, void * host_ptr, cl_int * errcode_ret)</code><br>
246 @param host_ptr a direct or array-backed {@link java.nio.Buffer} */
247 public long clCreateBuffer(long context, long flags, long size, Buffer host_ptr, int[] errcode_ret, int errcode_ret_offset) {
248
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;
253 if (__addr_ == 0) {
254 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clCreateBuffer"));
255 }
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_);
257 }
258
259 /** Entry point (through function pointer) to C language function: <br> <code>cl_mem {@native clCreateSubBuffer}(cl_mem buffer, cl_mem_flags flags, cl_buffer_create_type buffer_create_type, const void * buffer_create_info, cl_int * errcode_ret)</code><br>
260 @param buffer_create_info a direct or array-backed {@link java.nio.Buffer}
261 @param errcode_ret a direct or array-backed {@link java.nio.IntBuffer} */
262 public long clCreateSubBuffer(long buffer, long flags, int buffer_create_type, Buffer buffer_create_info, IntBuffer errcode_ret) {
263
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;
267 if (__addr_ == 0) {
268 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clCreateSubBuffer"));
269 }
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_);
271 }
272
273 /** Entry point (through function pointer) to C language function: <br> <code>cl_mem {@native clCreateSubBuffer}(cl_mem buffer, cl_mem_flags flags, cl_buffer_create_type buffer_create_type, const void * buffer_create_info, cl_int * errcode_ret)</code><br>
274 @param buffer_create_info a direct or array-backed {@link java.nio.Buffer}
275 @param errcode_ret a direct or array-backed {@link java.nio.IntBuffer} */
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);
277
278 /** Entry point (through function pointer) to C language function: <br> <code>cl_mem {@native clCreateSubBuffer}(cl_mem buffer, cl_mem_flags flags, cl_buffer_create_type buffer_create_type, const void * buffer_create_info, cl_int * errcode_ret)</code><br>
279 @param buffer_create_info a direct or array-backed {@link java.nio.Buffer} */
280 public long clCreateSubBuffer(long buffer, long flags, int buffer_create_type, Buffer buffer_create_info, int[] errcode_ret, int errcode_ret_offset) {
281
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;
286 if (__addr_ == 0) {
287 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clCreateSubBuffer"));
288 }
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_);
290 }
291
292 /** Entry point (through function pointer) to C language function: <br> <code>cl_mem {@native clCreateImage2D}(cl_context context, cl_mem_flags flags, const cl_image_format * image_format, size_t image_width, size_t image_height, size_t image_row_pitch, void * host_ptr, cl_int * errcode_ret)</code><br>
293 @param host_ptr a direct or array-backed {@link java.nio.Buffer}
294 @param errcode_ret a direct or array-backed {@link java.nio.IntBuffer} */
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) {
296
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;
300 if (__addr_ == 0) {
301 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clCreateImage2D"));
302 }
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_);
304 }
305
306 /** Entry point (through function pointer) to C language function: <br> <code>cl_mem {@native clCreateImage2D}(cl_context context, cl_mem_flags flags, const cl_image_format * image_format, size_t image_width, size_t image_height, size_t image_row_pitch, void * host_ptr, cl_int * errcode_ret)</code><br>
307 @param host_ptr a direct or array-backed {@link java.nio.Buffer}
308 @param errcode_ret a direct or array-backed {@link java.nio.IntBuffer} */
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);
310
311 /** Entry point (through function pointer) to C language function: <br> <code>cl_mem {@native clCreateImage2D}(cl_context context, cl_mem_flags flags, const cl_image_format * image_format, size_t image_width, size_t image_height, size_t image_row_pitch, void * host_ptr, cl_int * errcode_ret)</code><br>
312 @param host_ptr a direct or array-backed {@link java.nio.Buffer} */
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) {
314
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;
319 if (__addr_ == 0) {
320 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clCreateImage2D"));
321 }
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_);
323 }
324
325 /** Entry point (through function pointer) to C language function: <br> <code>cl_mem {@native clCreateImage3D}(cl_context context, cl_mem_flags flags, const cl_image_format * image_format, size_t image_width, size_t image_height, size_t image_depth, size_t image_row_pitch, size_t image_slice_pitch, void * host_ptr, cl_int * errcode_ret)</code><br>
326 @param host_ptr a direct or array-backed {@link java.nio.Buffer}
327 @param errcode_ret a direct or array-backed {@link java.nio.IntBuffer} */
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) {
329
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;
333 if (__addr_ == 0) {
334 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clCreateImage3D"));
335 }
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_);
337 }
338
339 /** Entry point (through function pointer) to C language function: <br> <code>cl_mem {@native clCreateImage3D}(cl_context context, cl_mem_flags flags, const cl_image_format * image_format, size_t image_width, size_t image_height, size_t image_depth, size_t image_row_pitch, size_t image_slice_pitch, void * host_ptr, cl_int * errcode_ret)</code><br>
340 @param host_ptr a direct or array-backed {@link java.nio.Buffer}
341 @param errcode_ret a direct or array-backed {@link java.nio.IntBuffer} */
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);
343
344 /** Entry point (through function pointer) to C language function: <br> <code>cl_mem {@native clCreateImage3D}(cl_context context, cl_mem_flags flags, const cl_image_format * image_format, size_t image_width, size_t image_height, size_t image_depth, size_t image_row_pitch, size_t image_slice_pitch, void * host_ptr, cl_int * errcode_ret)</code><br>
345 @param host_ptr a direct or array-backed {@link java.nio.Buffer} */
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) {
347
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;
352 if (__addr_ == 0) {
353 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clCreateImage3D"));
354 }
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_);
356 }
357
358 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clRetainMemObject}(cl_mem memobj)</code><br> */
359 public int clRetainMemObject(long memobj) {
360
361 final long __addr_ = addressTable._addressof_clRetainMemObject;
362 if (__addr_ == 0) {
363 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clRetainMemObject"));
364 }
365 return dispatch_clRetainMemObject1(memobj, __addr_);
366 }
367
368 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clRetainMemObject}(cl_mem memobj)</code><br> */
369 private native int dispatch_clRetainMemObject1(long memobj, long procAddress);
370
371 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clReleaseMemObject}(cl_mem memobj)</code><br> */
372 public int clReleaseMemObject(long memobj) {
373
374 final long __addr_ = addressTable._addressof_clReleaseMemObject;
375 if (__addr_ == 0) {
376 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clReleaseMemObject"));
377 }
378 return dispatch_clReleaseMemObject1(memobj, __addr_);
379 }
380
381 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clReleaseMemObject}(cl_mem memobj)</code><br> */
382 private native int dispatch_clReleaseMemObject1(long memobj, long procAddress);
383
384 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetSupportedImageFormats}(cl_context context, cl_mem_flags flags, cl_mem_object_type image_type, cl_uint num_entries, cl_image_format * image_formats, cl_uint * num_image_formats)</code><br>
385 @param num_image_formats a direct or array-backed {@link java.nio.IntBuffer} */
386 public int clGetSupportedImageFormats(long context, long flags, int image_type, int num_entries, CLImageFormatImpl image_formats, IntBuffer num_image_formats) {
387
388 final boolean num_image_formats_is_direct = Buffers.isDirect(num_image_formats);
389 final long __addr_ = addressTable._addressof_clGetSupportedImageFormats;
390 if (__addr_ == 0) {
391 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clGetSupportedImageFormats"));
392 }
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_);
394 }
395
396 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetSupportedImageFormats}(cl_context context, cl_mem_flags flags, cl_mem_object_type image_type, cl_uint num_entries, cl_image_format * image_formats, cl_uint * num_image_formats)</code><br>
397 @param num_image_formats a direct or array-backed {@link java.nio.IntBuffer} */
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);
399
400 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetSupportedImageFormats}(cl_context context, cl_mem_flags flags, cl_mem_object_type image_type, cl_uint num_entries, cl_image_format * image_formats, cl_uint * num_image_formats)</code><br> */
401 public int clGetSupportedImageFormats(long context, long flags, int image_type, int num_entries, CLImageFormatImpl image_formats, int[] num_image_formats, int num_image_formats_offset) {
402
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;
406 if (__addr_ == 0) {
407 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clGetSupportedImageFormats"));
408 }
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_);
410 }
411
412 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetMemObjectInfo}(cl_mem memobj, cl_mem_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret)</code><br>
413 @param param_value a direct only {@link java.nio.Buffer}
414 @param param_value_size_ret a direct only {@link com.jogamp.common.nio.PointerBuffer} */
415 public int clGetMemObjectInfo(long memobj, int param_name, long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret) {
416
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;
422 if (__addr_ == 0) {
423 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clGetMemObjectInfo"));
424 }
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_);
426 }
427
428 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetMemObjectInfo}(cl_mem memobj, cl_mem_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret)</code><br>
429 @param param_value a direct only {@link java.nio.Buffer}
430 @param param_value_size_ret a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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);
432
433 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetImageInfo}(cl_mem image, cl_image_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret)</code><br>
434 @param param_value a direct only {@link java.nio.Buffer}
435 @param param_value_size_ret a direct only {@link com.jogamp.common.nio.PointerBuffer} */
436 public int clGetImageInfo(long image, int param_name, long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret) {
437
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;
443 if (__addr_ == 0) {
444 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clGetImageInfo"));
445 }
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_);
447 }
448
449 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetImageInfo}(cl_mem image, cl_image_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret)</code><br>
450 @param param_value a direct only {@link java.nio.Buffer}
451 @param param_value_size_ret a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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);
453
454 /** Entry point (through function pointer) to C language function: <br> <code>cl_sampler {@native clCreateSampler}(cl_context context, cl_bool normalized_coords, cl_addressing_mode addressing_mode, cl_filter_mode filter_mode, cl_int * errcode_ret)</code><br>
455 @param errcode_ret a direct or array-backed {@link java.nio.IntBuffer} */
456 public long clCreateSampler(long context, int normalized_coords, int addressing_mode, int filter_mode, IntBuffer errcode_ret) {
457
458 final boolean errcode_ret_is_direct = Buffers.isDirect(errcode_ret);
459 final long __addr_ = addressTable._addressof_clCreateSampler;
460 if (__addr_ == 0) {
461 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clCreateSampler"));
462 }
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_);
464 }
465
466 /** Entry point (through function pointer) to C language function: <br> <code>cl_sampler {@native clCreateSampler}(cl_context context, cl_bool normalized_coords, cl_addressing_mode addressing_mode, cl_filter_mode filter_mode, cl_int * errcode_ret)</code><br>
467 @param errcode_ret a direct or array-backed {@link java.nio.IntBuffer} */
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);
469
470 /** Entry point (through function pointer) to C language function: <br> <code>cl_sampler {@native clCreateSampler}(cl_context context, cl_bool normalized_coords, cl_addressing_mode addressing_mode, cl_filter_mode filter_mode, cl_int * errcode_ret)</code><br> */
471 public long clCreateSampler(long context, int normalized_coords, int addressing_mode, int filter_mode, int[] errcode_ret, int errcode_ret_offset) {
472
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;
476 if (__addr_ == 0) {
477 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clCreateSampler"));
478 }
479 return dispatch_clCreateSampler1(context, normalized_coords, addressing_mode, filter_mode, errcode_ret, Buffers.SIZEOF_INT * errcode_ret_offset, false, __addr_);
480 }
481
482 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clRetainSampler}(cl_sampler sampler)</code><br> */
483 public int clRetainSampler(long sampler) {
484
485 final long __addr_ = addressTable._addressof_clRetainSampler;
486 if (__addr_ == 0) {
487 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clRetainSampler"));
488 }
489 return dispatch_clRetainSampler1(sampler, __addr_);
490 }
491
492 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clRetainSampler}(cl_sampler sampler)</code><br> */
493 private native int dispatch_clRetainSampler1(long sampler, long procAddress);
494
495 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clReleaseSampler}(cl_sampler sampler)</code><br> */
496 public int clReleaseSampler(long sampler) {
497
498 final long __addr_ = addressTable._addressof_clReleaseSampler;
499 if (__addr_ == 0) {
500 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clReleaseSampler"));
501 }
502 return dispatch_clReleaseSampler1(sampler, __addr_);
503 }
504
505 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clReleaseSampler}(cl_sampler sampler)</code><br> */
506 private native int dispatch_clReleaseSampler1(long sampler, long procAddress);
507
508 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetSamplerInfo}(cl_sampler sampler, cl_sampler_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret)</code><br>
509 @param param_value a direct only {@link java.nio.Buffer}
510 @param param_value_size_ret a direct only {@link com.jogamp.common.nio.PointerBuffer} */
511 public int clGetSamplerInfo(long sampler, int param_name, long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret) {
512
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;
518 if (__addr_ == 0) {
519 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clGetSamplerInfo"));
520 }
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_);
522 }
523
524 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetSamplerInfo}(cl_sampler sampler, cl_sampler_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret)</code><br>
525 @param param_value a direct only {@link java.nio.Buffer}
526 @param param_value_size_ret a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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);
528
529 /** Entry point (through function pointer) to C language function: <br> <code>cl_program {@native clCreateProgramWithSource}(cl_context context, cl_uint count, const char * * strings, const size_t * lengths, cl_int * errcode_ret)</code><br>
530 @param lengths a direct only {@link com.jogamp.common.nio.PointerBuffer}
531 @param errcode_ret a direct only {@link java.nio.IntBuffer} */
532 public long clCreateProgramWithSource(long context, int count, String[] strings, PointerBuffer lengths, IntBuffer errcode_ret) {
533
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;
539 if (__addr_ == 0) {
540 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clCreateProgramWithSource"));
541 }
542 return dispatch_clCreateProgramWithSource0(context, count, strings, lengths != null ? lengths.getBuffer() : null, Buffers.getDirectBufferByteOffset(lengths), errcode_ret, Buffers.getDirectBufferByteOffset(errcode_ret), __addr_);
543 }
544
545 /** Entry point (through function pointer) to C language function: <br> <code>cl_program {@native clCreateProgramWithSource}(cl_context context, cl_uint count, const char * * strings, const size_t * lengths, cl_int * errcode_ret)</code><br>
546 @param lengths a direct only {@link com.jogamp.common.nio.PointerBuffer}
547 @param errcode_ret a direct only {@link java.nio.IntBuffer} */
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);
549
550 /** Entry point (through function pointer) to C language function: <br> <code>cl_program {@native clCreateProgramWithBinary}(cl_context context, cl_uint num_devices, const cl_device_id * device_list, const size_t * lengths, unsigned const char * * binaries, cl_int * binary_status, cl_int * errcode_ret)</code><br>
551 @param device_list a direct only {@link com.jogamp.common.nio.PointerBuffer}
552 @param lengths a direct only {@link com.jogamp.common.nio.PointerBuffer}
553 @param binaries a direct only {@link com.jogamp.common.nio.PointerBuffer}
554 @param binary_status a direct only {@link java.nio.IntBuffer}
555 @param errcode_ret a direct only {@link java.nio.IntBuffer} */
556 public long clCreateProgramWithBinary(long context, int num_devices, PointerBuffer device_list, PointerBuffer lengths, PointerBuffer binaries, IntBuffer binary_status, IntBuffer errcode_ret) {
557
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;
569 if (__addr_ == 0) {
570 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clCreateProgramWithBinary"));
571 }
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_);
573 }
574
575 /** Entry point (through function pointer) to C language function: <br> <code>cl_program {@native clCreateProgramWithBinary}(cl_context context, cl_uint num_devices, const cl_device_id * device_list, const size_t * lengths, unsigned const char * * binaries, cl_int * binary_status, cl_int * errcode_ret)</code><br>
576 @param device_list a direct only {@link com.jogamp.common.nio.PointerBuffer}
577 @param lengths a direct only {@link com.jogamp.common.nio.PointerBuffer}
578 @param binaries a direct only {@link com.jogamp.common.nio.PointerBuffer}
579 @param binary_status a direct only {@link java.nio.IntBuffer}
580 @param errcode_ret a direct only {@link java.nio.IntBuffer} */
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);
582
583 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clRetainProgram}(cl_program program)</code><br> */
584 public int clRetainProgram(long program) {
585
586 final long __addr_ = addressTable._addressof_clRetainProgram;
587 if (__addr_ == 0) {
588 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clRetainProgram"));
589 }
590 return dispatch_clRetainProgram1(program, __addr_);
591 }
592
593 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clRetainProgram}(cl_program program)</code><br> */
594 private native int dispatch_clRetainProgram1(long program, long procAddress);
595
596 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clReleaseProgram}(cl_program program)</code><br> */
597 public int clReleaseProgram(long program) {
598
599 final long __addr_ = addressTable._addressof_clReleaseProgram;
600 if (__addr_ == 0) {
601 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clReleaseProgram"));
602 }
603 return dispatch_clReleaseProgram1(program, __addr_);
604 }
605
606 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clReleaseProgram}(cl_program program)</code><br> */
607 private native int dispatch_clReleaseProgram1(long program, long procAddress);
608
609 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clUnloadCompiler}()</code><br> */
610 public int clUnloadCompiler() {
611
612 final long __addr_ = addressTable._addressof_clUnloadCompiler;
613 if (__addr_ == 0) {
614 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clUnloadCompiler"));
615 }
616 return dispatch_clUnloadCompiler1(__addr_);
617 }
618
619 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clUnloadCompiler}()</code><br> */
620 private native int dispatch_clUnloadCompiler1(long procAddress);
621
622 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetProgramInfo}(cl_program program, cl_program_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret)</code><br>
623 @param param_value a direct only {@link java.nio.Buffer}
624 @param param_value_size_ret a direct only {@link com.jogamp.common.nio.PointerBuffer} */
625 public int clGetProgramInfo(long program, int param_name, long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret) {
626
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;
632 if (__addr_ == 0) {
633 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clGetProgramInfo"));
634 }
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_);
636 }
637
638 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetProgramInfo}(cl_program program, cl_program_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret)</code><br>
639 @param param_value a direct only {@link java.nio.Buffer}
640 @param param_value_size_ret a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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);
642
643 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetProgramBuildInfo}(cl_program program, cl_device_id device, cl_program_build_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret)</code><br>
644 @param param_value a direct only {@link java.nio.Buffer}
645 @param param_value_size_ret a direct only {@link com.jogamp.common.nio.PointerBuffer} */
646 public int clGetProgramBuildInfo(long program, long device, int param_name, long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret) {
647
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;
653 if (__addr_ == 0) {
654 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clGetProgramBuildInfo"));
655 }
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_);
657 }
658
659 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetProgramBuildInfo}(cl_program program, cl_device_id device, cl_program_build_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret)</code><br>
660 @param param_value a direct only {@link java.nio.Buffer}
661 @param param_value_size_ret a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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);
663
664 /** Entry point (through function pointer) to C language function: <br> <code>cl_kernel {@native clCreateKernel}(cl_program program, const char * kernel_name, cl_int * errcode_ret)</code><br>
665 @param errcode_ret a direct or array-backed {@link java.nio.IntBuffer} */
666 public long clCreateKernel(long program, String kernel_name, IntBuffer errcode_ret) {
667
668 final boolean errcode_ret_is_direct = Buffers.isDirect(errcode_ret);
669 final long __addr_ = addressTable._addressof_clCreateKernel;
670 if (__addr_ == 0) {
671 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clCreateKernel"));
672 }
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_);
674 }
675
676 /** Entry point (through function pointer) to C language function: <br> <code>cl_kernel {@native clCreateKernel}(cl_program program, const char * kernel_name, cl_int * errcode_ret)</code><br>
677 @param errcode_ret a direct or array-backed {@link java.nio.IntBuffer} */
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);
679
680 /** Entry point (through function pointer) to C language function: <br> <code>cl_kernel {@native clCreateKernel}(cl_program program, const char * kernel_name, cl_int * errcode_ret)</code><br> */
681 public long clCreateKernel(long program, String kernel_name, int[] errcode_ret, int errcode_ret_offset) {
682
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;
686 if (__addr_ == 0) {
687 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clCreateKernel"));
688 }
689 return dispatch_clCreateKernel1(program, kernel_name, errcode_ret, Buffers.SIZEOF_INT * errcode_ret_offset, false, __addr_);
690 }
691
692 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clCreateKernelsInProgram}(cl_program program, cl_uint num_kernels, cl_kernel * kernels, cl_uint * num_kernels_ret)</code><br>
693 @param kernels a direct only {@link com.jogamp.common.nio.PointerBuffer}
694 @param num_kernels_ret a direct only {@link java.nio.IntBuffer} */
695 public int clCreateKernelsInProgram(long program, int num_kernels, PointerBuffer kernels, IntBuffer num_kernels_ret) {
696
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;
702 if (__addr_ == 0) {
703 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clCreateKernelsInProgram"));
704 }
705 return dispatch_clCreateKernelsInProgram0(program, num_kernels, kernels != null ? kernels.getBuffer() : null, Buffers.getDirectBufferByteOffset(kernels), num_kernels_ret, Buffers.getDirectBufferByteOffset(num_kernels_ret), __addr_);
706 }
707
708 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clCreateKernelsInProgram}(cl_program program, cl_uint num_kernels, cl_kernel * kernels, cl_uint * num_kernels_ret)</code><br>
709 @param kernels a direct only {@link com.jogamp.common.nio.PointerBuffer}
710 @param num_kernels_ret a direct only {@link java.nio.IntBuffer} */
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);
712
713 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clRetainKernel}(cl_kernel kernel)</code><br> */
714 public int clRetainKernel(long kernel) {
715
716 final long __addr_ = addressTable._addressof_clRetainKernel;
717 if (__addr_ == 0) {
718 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clRetainKernel"));
719 }
720 return dispatch_clRetainKernel1(kernel, __addr_);
721 }
722
723 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clRetainKernel}(cl_kernel kernel)</code><br> */
724 private native int dispatch_clRetainKernel1(long kernel, long procAddress);
725
726 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clReleaseKernel}(cl_kernel kernel)</code><br> */
727 public int clReleaseKernel(long kernel) {
728
729 final long __addr_ = addressTable._addressof_clReleaseKernel;
730 if (__addr_ == 0) {
731 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clReleaseKernel"));
732 }
733 return dispatch_clReleaseKernel1(kernel, __addr_);
734 }
735
736 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clReleaseKernel}(cl_kernel kernel)</code><br> */
737 private native int dispatch_clReleaseKernel1(long kernel, long procAddress);
738
739 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clSetKernelArg}(cl_kernel kernel, cl_uint arg_index, size_t arg_size, const void * arg_value)</code><br>
740 @param arg_value a direct only {@link java.nio.Buffer} */
741 public int clSetKernelArg(long kernel, int arg_index, long arg_size, Buffer arg_value) {
742
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;
746 if (__addr_ == 0) {
747 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clSetKernelArg"));
748 }
749 return dispatch_clSetKernelArg0(kernel, arg_index, arg_size, arg_value, Buffers.getDirectBufferByteOffset(arg_value), __addr_);
750 }
751
752 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clSetKernelArg}(cl_kernel kernel, cl_uint arg_index, size_t arg_size, const void * arg_value)</code><br>
753 @param arg_value a direct only {@link java.nio.Buffer} */
754 private native int dispatch_clSetKernelArg0(long kernel, int arg_index, long arg_size, Object arg_value, int arg_value_byte_offset, long procAddress);
755
756 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetKernelInfo}(cl_kernel kernel, cl_kernel_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret)</code><br>
757 @param param_value a direct only {@link java.nio.Buffer}
758 @param param_value_size_ret a direct only {@link com.jogamp.common.nio.PointerBuffer} */
759 public int clGetKernelInfo(long kernel, int param_name, long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret) {
760
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;
766 if (__addr_ == 0) {
767 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clGetKernelInfo"));
768 }
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_);
770 }
771
772 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetKernelInfo}(cl_kernel kernel, cl_kernel_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret)</code><br>
773 @param param_value a direct only {@link java.nio.Buffer}
774 @param param_value_size_ret a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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);
776
777 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetKernelWorkGroupInfo}(cl_kernel kernel, cl_device_id device, cl_kernel_work_group_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret)</code><br>
778 @param param_value a direct only {@link java.nio.Buffer}
779 @param param_value_size_ret a direct only {@link com.jogamp.common.nio.PointerBuffer} */
780 public int clGetKernelWorkGroupInfo(long kernel, long device, int param_name, long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret) {
781
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;
787 if (__addr_ == 0) {
788 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clGetKernelWorkGroupInfo"));
789 }
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_);
791 }
792
793 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetKernelWorkGroupInfo}(cl_kernel kernel, cl_device_id device, cl_kernel_work_group_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret)</code><br>
794 @param param_value a direct only {@link java.nio.Buffer}
795 @param param_value_size_ret a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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);
797
798 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clWaitForEvents}(cl_uint num_events, const cl_event * event_list)</code><br>
799 @param event_list a direct only {@link com.jogamp.common.nio.PointerBuffer} */
800 public int clWaitForEvents(int num_events, PointerBuffer event_list) {
801
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;
805 if (__addr_ == 0) {
806 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clWaitForEvents"));
807 }
808 return dispatch_clWaitForEvents0(num_events, event_list != null ? event_list.getBuffer() : null, Buffers.getDirectBufferByteOffset(event_list), __addr_);
809 }
810
811 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clWaitForEvents}(cl_uint num_events, const cl_event * event_list)</code><br>
812 @param event_list a direct only {@link com.jogamp.common.nio.PointerBuffer} */
813 private native int dispatch_clWaitForEvents0(int num_events, Object event_list, int event_list_byte_offset, long procAddress);
814
815 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetEventInfo}(cl_event event, cl_event_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret)</code><br>
816 @param param_value a direct only {@link java.nio.Buffer}
817 @param param_value_size_ret a direct only {@link com.jogamp.common.nio.PointerBuffer} */
818 public int clGetEventInfo(long event, int param_name, long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret) {
819
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;
825 if (__addr_ == 0) {
826 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clGetEventInfo"));
827 }
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_);
829 }
830
831 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetEventInfo}(cl_event event, cl_event_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret)</code><br>
832 @param param_value a direct only {@link java.nio.Buffer}
833 @param param_value_size_ret a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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);
835
836 /** Entry point (through function pointer) to C language function: <br> <code>cl_event {@native clCreateUserEvent}(cl_context context, cl_int * errcode_ret)</code><br>
837 @param errcode_ret a direct or array-backed {@link java.nio.IntBuffer} */
838 public long clCreateUserEvent(long context, IntBuffer errcode_ret) {
839
840 final boolean errcode_ret_is_direct = Buffers.isDirect(errcode_ret);
841 final long __addr_ = addressTable._addressof_clCreateUserEvent;
842 if (__addr_ == 0) {
843 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clCreateUserEvent"));
844 }
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_);
846 }
847
848 /** Entry point (through function pointer) to C language function: <br> <code>cl_event {@native clCreateUserEvent}(cl_context context, cl_int * errcode_ret)</code><br>
849 @param errcode_ret a direct or array-backed {@link java.nio.IntBuffer} */
850 private native long dispatch_clCreateUserEvent1(long context, Object errcode_ret, int errcode_ret_byte_offset, boolean errcode_ret_is_direct, long procAddress);
851
852 /** Entry point (through function pointer) to C language function: <br> <code>cl_event {@native clCreateUserEvent}(cl_context context, cl_int * errcode_ret)</code><br> */
853 public long clCreateUserEvent(long context, int[] errcode_ret, int errcode_ret_offset) {
854
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;
858 if (__addr_ == 0) {
859 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clCreateUserEvent"));
860 }
861 return dispatch_clCreateUserEvent1(context, errcode_ret, Buffers.SIZEOF_INT * errcode_ret_offset, false, __addr_);
862 }
863
864 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clRetainEvent}(cl_event event)</code><br> */
865 public int clRetainEvent(long event) {
866
867 final long __addr_ = addressTable._addressof_clRetainEvent;
868 if (__addr_ == 0) {
869 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clRetainEvent"));
870 }
871 return dispatch_clRetainEvent1(event, __addr_);
872 }
873
874 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clRetainEvent}(cl_event event)</code><br> */
875 private native int dispatch_clRetainEvent1(long event, long procAddress);
876
877 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clReleaseEvent}(cl_event event)</code><br> */
878 public int clReleaseEvent(long event) {
879
880 final long __addr_ = addressTable._addressof_clReleaseEvent;
881 if (__addr_ == 0) {
882 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clReleaseEvent"));
883 }
884 return dispatch_clReleaseEvent1(event, __addr_);
885 }
886
887 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clReleaseEvent}(cl_event event)</code><br> */
888 private native int dispatch_clReleaseEvent1(long event, long procAddress);
889
890 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clSetUserEventStatus}(cl_event event, cl_int execution_status)</code><br> */
891 public int clSetUserEventStatus(long event, int execution_status) {
892
893 final long __addr_ = addressTable._addressof_clSetUserEventStatus;
894 if (__addr_ == 0) {
895 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clSetUserEventStatus"));
896 }
897 return dispatch_clSetUserEventStatus1(event, execution_status, __addr_);
898 }
899
900 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clSetUserEventStatus}(cl_event event, cl_int execution_status)</code><br> */
901 private native int dispatch_clSetUserEventStatus1(long event, int execution_status, long procAddress);
902
903 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetEventProfilingInfo}(cl_event event, cl_profiling_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret)</code><br>
904 @param param_value a direct only {@link java.nio.Buffer}
905 @param param_value_size_ret a direct only {@link com.jogamp.common.nio.PointerBuffer} */
906 public int clGetEventProfilingInfo(long event, int param_name, long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret) {
907
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;
913 if (__addr_ == 0) {
914 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clGetEventProfilingInfo"));
915 }
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_);
917 }
918
919 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetEventProfilingInfo}(cl_event event, cl_profiling_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret)</code><br>
920 @param param_value a direct only {@link java.nio.Buffer}
921 @param param_value_size_ret a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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);
923
924 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clFlush}(cl_command_queue command_queue)</code><br> */
925 public int clFlush(long command_queue) {
926
927 final long __addr_ = addressTable._addressof_clFlush;
928 if (__addr_ == 0) {
929 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clFlush"));
930 }
931 return dispatch_clFlush1(command_queue, __addr_);
932 }
933
934 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clFlush}(cl_command_queue command_queue)</code><br> */
935 private native int dispatch_clFlush1(long command_queue, long procAddress);
936
937 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clFinish}(cl_command_queue command_queue)</code><br> */
938 public int clFinish(long command_queue) {
939
940 final long __addr_ = addressTable._addressof_clFinish;
941 if (__addr_ == 0) {
942 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clFinish"));
943 }
944 return dispatch_clFinish1(command_queue, __addr_);
945 }
946
947 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clFinish}(cl_command_queue command_queue)</code><br> */
948 private native int dispatch_clFinish1(long command_queue, long procAddress);
949
950 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clEnqueueReadBuffer}(cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_read, size_t offset, size_t cb, void * ptr, cl_uint num_events_in_wait_list, const cl_event * event_wait_list, cl_event * event)</code><br>
951 @param ptr a direct only {@link java.nio.Buffer}
952 @param event_wait_list a direct only {@link com.jogamp.common.nio.PointerBuffer}
953 @param event a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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) {
955
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;
963 if (__addr_ == 0) {
964 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clEnqueueReadBuffer"));
965 }
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_);
967 }
968
969 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clEnqueueReadBuffer}(cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_read, size_t offset, size_t cb, void * ptr, cl_uint num_events_in_wait_list, const cl_event * event_wait_list, cl_event * event)</code><br>
970 @param ptr a direct only {@link java.nio.Buffer}
971 @param event_wait_list a direct only {@link com.jogamp.common.nio.PointerBuffer}
972 @param event a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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);
974
975 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clEnqueueReadBufferRect}(cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_read, const size_t * buffer_origin, const size_t * host_origin, const size_t * region, size_t buffer_row_pitch, size_t buffer_slice_pitch, size_t host_row_pitch, size_t host_slice_pitch, void * ptr, cl_uint num_events_in_wait_list, const cl_event * event_wait_list, cl_event * event)</code><br>
976 @param buffer_origin a direct only {@link com.jogamp.common.nio.PointerBuffer}
977 @param host_origin a direct only {@link com.jogamp.common.nio.PointerBuffer}
978 @param region a direct only {@link com.jogamp.common.nio.PointerBuffer}
979 @param ptr a direct only {@link java.nio.Buffer}
980 @param event_wait_list a direct only {@link com.jogamp.common.nio.PointerBuffer}
981 @param event a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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) {
983
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;
997 if (__addr_ == 0) {
998 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clEnqueueReadBufferRect"));
999 }
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_);
1001 }
1002
1003 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clEnqueueReadBufferRect}(cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_read, const size_t * buffer_origin, const size_t * host_origin, const size_t * region, size_t buffer_row_pitch, size_t buffer_slice_pitch, size_t host_row_pitch, size_t host_slice_pitch, void * ptr, cl_uint num_events_in_wait_list, const cl_event * event_wait_list, cl_event * event)</code><br>
1004 @param buffer_origin a direct only {@link com.jogamp.common.nio.PointerBuffer}
1005 @param host_origin a direct only {@link com.jogamp.common.nio.PointerBuffer}
1006 @param region a direct only {@link com.jogamp.common.nio.PointerBuffer}
1007 @param ptr a direct only {@link java.nio.Buffer}
1008 @param event_wait_list a direct only {@link com.jogamp.common.nio.PointerBuffer}
1009 @param event a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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);
1011
1012 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clEnqueueWriteBuffer}(cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_write, size_t offset, size_t cb, const void * ptr, cl_uint num_events_in_wait_list, const cl_event * event_wait_list, cl_event * event)</code><br>
1013 @param ptr a direct only {@link java.nio.Buffer}
1014 @param event_wait_list a direct only {@link com.jogamp.common.nio.PointerBuffer}
1015 @param event a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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) {
1017
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;
1025 if (__addr_ == 0) {
1026 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clEnqueueWriteBuffer"));
1027 }
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_);
1029 }
1030
1031 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clEnqueueWriteBuffer}(cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_write, size_t offset, size_t cb, const void * ptr, cl_uint num_events_in_wait_list, const cl_event * event_wait_list, cl_event * event)</code><br>
1032 @param ptr a direct only {@link java.nio.Buffer}
1033 @param event_wait_list a direct only {@link com.jogamp.common.nio.PointerBuffer}
1034 @param event a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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);
1036
1037 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clEnqueueWriteBufferRect}(cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_write, const size_t * buffer_origin, const size_t * host_origin, const size_t * region, size_t buffer_row_pitch, size_t buffer_slice_pitch, size_t host_row_pitch, size_t host_slice_pitch, const void * ptr, cl_uint num_events_in_wait_list, const cl_event * event_wait_list, cl_event * event)</code><br>
1038 @param buffer_origin a direct only {@link com.jogamp.common.nio.PointerBuffer}
1039 @param host_origin a direct only {@link com.jogamp.common.nio.PointerBuffer}
1040 @param region a direct only {@link com.jogamp.common.nio.PointerBuffer}
1041 @param ptr a direct only {@link java.nio.Buffer}
1042 @param event_wait_list a direct only {@link com.jogamp.common.nio.PointerBuffer}
1043 @param event a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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) {
1045
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;
1059 if (__addr_ == 0) {
1060 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clEnqueueWriteBufferRect"));
1061 }
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_);
1063 }
1064
1065 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clEnqueueWriteBufferRect}(cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_write, const size_t * buffer_origin, const size_t * host_origin, const size_t * region, size_t buffer_row_pitch, size_t buffer_slice_pitch, size_t host_row_pitch, size_t host_slice_pitch, const void * ptr, cl_uint num_events_in_wait_list, const cl_event * event_wait_list, cl_event * event)</code><br>
1066 @param buffer_origin a direct only {@link com.jogamp.common.nio.PointerBuffer}
1067 @param host_origin a direct only {@link com.jogamp.common.nio.PointerBuffer}
1068 @param region a direct only {@link com.jogamp.common.nio.PointerBuffer}
1069 @param ptr a direct only {@link java.nio.Buffer}
1070 @param event_wait_list a direct only {@link com.jogamp.common.nio.PointerBuffer}
1071 @param event a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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);
1073
1074 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clEnqueueCopyBuffer}(cl_command_queue command_queue, cl_mem src_buffer, cl_mem dst_buffer, size_t src_offset, size_t dst_offset, size_t cb, cl_uint num_events_in_wait_list, const cl_event * event_wait_list, cl_event * event)</code><br>
1075 @param event_wait_list a direct only {@link com.jogamp.common.nio.PointerBuffer}
1076 @param event a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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) {
1078
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;
1084 if (__addr_ == 0) {
1085 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clEnqueueCopyBuffer"));
1086 }
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_);
1088 }
1089
1090 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clEnqueueCopyBuffer}(cl_command_queue command_queue, cl_mem src_buffer, cl_mem dst_buffer, size_t src_offset, size_t dst_offset, size_t cb, cl_uint num_events_in_wait_list, const cl_event * event_wait_list, cl_event * event)</code><br>
1091 @param event_wait_list a direct only {@link com.jogamp.common.nio.PointerBuffer}
1092 @param event a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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);
1094
1095 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clEnqueueCopyBufferRect}(cl_command_queue command_queue, cl_mem src_buffer, cl_mem dst_buffer, const size_t * src_origin, const size_t * dst_origin, const size_t * region, size_t src_row_pitch, size_t src_slice_pitch, size_t dst_row_pitch, size_t dst_slice_pitch, cl_uint num_events_in_wait_list, const cl_event * event_wait_list, cl_event * event)</code><br>
1096 @param src_origin a direct only {@link com.jogamp.common.nio.PointerBuffer}
1097 @param dst_origin a direct only {@link com.jogamp.common.nio.PointerBuffer}
1098 @param region a direct only {@link com.jogamp.common.nio.PointerBuffer}
1099 @param event_wait_list a direct only {@link com.jogamp.common.nio.PointerBuffer}
1100 @param event a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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) {
1102
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;
1114 if (__addr_ == 0) {
1115 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clEnqueueCopyBufferRect"));
1116 }
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_);
1118 }
1119
1120 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clEnqueueCopyBufferRect}(cl_command_queue command_queue, cl_mem src_buffer, cl_mem dst_buffer, const size_t * src_origin, const size_t * dst_origin, const size_t * region, size_t src_row_pitch, size_t src_slice_pitch, size_t dst_row_pitch, size_t dst_slice_pitch, cl_uint num_events_in_wait_list, const cl_event * event_wait_list, cl_event * event)</code><br>
1121 @param src_origin a direct only {@link com.jogamp.common.nio.PointerBuffer}
1122 @param dst_origin a direct only {@link com.jogamp.common.nio.PointerBuffer}
1123 @param region a direct only {@link com.jogamp.common.nio.PointerBuffer}
1124 @param event_wait_list a direct only {@link com.jogamp.common.nio.PointerBuffer}
1125 @param event a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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);
1127
1128 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clEnqueueReadImage}(cl_command_queue command_queue, cl_mem image, cl_bool blocking_read, const size_t * , const size_t * , size_t row_pitch, size_t slice_pitch, void * ptr, cl_uint num_events_in_wait_list, const cl_event * event_wait_list, cl_event * event)</code><br>
1129 @param arg3 a direct only {@link com.jogamp.common.nio.PointerBuffer}
1130 @param arg4 a direct only {@link com.jogamp.common.nio.PointerBuffer}
1131 @param ptr a direct only {@link java.nio.Buffer}
1132 @param event_wait_list a direct only {@link com.jogamp.common.nio.PointerBuffer}
1133 @param event a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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) {
1135
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;
1147 if (__addr_ == 0) {
1148 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clEnqueueReadImage"));
1149 }
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_);
1151 }
1152
1153 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clEnqueueReadImage}(cl_command_queue command_queue, cl_mem image, cl_bool blocking_read, const size_t * , const size_t * , size_t row_pitch, size_t slice_pitch, void * ptr, cl_uint num_events_in_wait_list, const cl_event * event_wait_list, cl_event * event)</code><br>
1154 @param arg3 a direct only {@link com.jogamp.common.nio.PointerBuffer}
1155 @param arg4 a direct only {@link com.jogamp.common.nio.PointerBuffer}
1156 @param ptr a direct only {@link java.nio.Buffer}
1157 @param event_wait_list a direct only {@link com.jogamp.common.nio.PointerBuffer}
1158 @param event a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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);
1160
1161 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clEnqueueWriteImage}(cl_command_queue command_queue, cl_mem image, cl_bool blocking_write, const size_t * , const size_t * , size_t input_row_pitch, size_t input_slice_pitch, const void * ptr, cl_uint num_events_in_wait_list, const cl_event * event_wait_list, cl_event * event)</code><br>
1162 @param arg3 a direct only {@link com.jogamp.common.nio.PointerBuffer}
1163 @param arg4 a direct only {@link com.jogamp.common.nio.PointerBuffer}
1164 @param ptr a direct only {@link java.nio.Buffer}
1165 @param event_wait_list a direct only {@link com.jogamp.common.nio.PointerBuffer}
1166 @param event a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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) {
1168
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;
1180 if (__addr_ == 0) {
1181 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clEnqueueWriteImage"));
1182 }
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_);
1184 }
1185
1186 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clEnqueueWriteImage}(cl_command_queue command_queue, cl_mem image, cl_bool blocking_write, const size_t * , const size_t * , size_t input_row_pitch, size_t input_slice_pitch, const void * ptr, cl_uint num_events_in_wait_list, const cl_event * event_wait_list, cl_event * event)</code><br>
1187 @param arg3 a direct only {@link com.jogamp.common.nio.PointerBuffer}
1188 @param arg4 a direct only {@link com.jogamp.common.nio.PointerBuffer}
1189 @param ptr a direct only {@link java.nio.Buffer}
1190 @param event_wait_list a direct only {@link com.jogamp.common.nio.PointerBuffer}
1191 @param event a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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);
1193
1194 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clEnqueueCopyImage}(cl_command_queue command_queue, cl_mem src_image, cl_mem dst_image, const size_t * , const size_t * , const size_t * , cl_uint num_events_in_wait_list, const cl_event * event_wait_list, cl_event * event)</code><br>
1195 @param arg3 a direct only {@link com.jogamp.common.nio.PointerBuffer}
1196 @param arg4 a direct only {@link com.jogamp.common.nio.PointerBuffer}
1197 @param arg5 a direct only {@link com.jogamp.common.nio.PointerBuffer}
1198 @param event_wait_list a direct only {@link com.jogamp.common.nio.PointerBuffer}
1199 @param event a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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) {
1201
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;
1213 if (__addr_ == 0) {
1214 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clEnqueueCopyImage"));
1215 }
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_);
1217 }
1218
1219 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clEnqueueCopyImage}(cl_command_queue command_queue, cl_mem src_image, cl_mem dst_image, const size_t * , const size_t * , const size_t * , cl_uint num_events_in_wait_list, const cl_event * event_wait_list, cl_event * event)</code><br>
1220 @param arg3 a direct only {@link com.jogamp.common.nio.PointerBuffer}
1221 @param arg4 a direct only {@link com.jogamp.common.nio.PointerBuffer}
1222 @param arg5 a direct only {@link com.jogamp.common.nio.PointerBuffer}
1223 @param event_wait_list a direct only {@link com.jogamp.common.nio.PointerBuffer}
1224 @param event a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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);
1226
1227 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clEnqueueCopyImageToBuffer}(cl_command_queue command_queue, cl_mem src_image, cl_mem dst_buffer, const size_t * , const size_t * , size_t dst_offset, cl_uint num_events_in_wait_list, const cl_event * event_wait_list, cl_event * event)</code><br>
1228 @param arg3 a direct only {@link com.jogamp.common.nio.PointerBuffer}
1229 @param arg4 a direct only {@link com.jogamp.common.nio.PointerBuffer}
1230 @param event_wait_list a direct only {@link com.jogamp.common.nio.PointerBuffer}
1231 @param event a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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) {
1233
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;
1243 if (__addr_ == 0) {
1244 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clEnqueueCopyImageToBuffer"));
1245 }
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_);
1247 }
1248
1249 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clEnqueueCopyImageToBuffer}(cl_command_queue command_queue, cl_mem src_image, cl_mem dst_buffer, const size_t * , const size_t * , size_t dst_offset, cl_uint num_events_in_wait_list, const cl_event * event_wait_list, cl_event * event)</code><br>
1250 @param arg3 a direct only {@link com.jogamp.common.nio.PointerBuffer}
1251 @param arg4 a direct only {@link com.jogamp.common.nio.PointerBuffer}
1252 @param event_wait_list a direct only {@link com.jogamp.common.nio.PointerBuffer}
1253 @param event a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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);
1255
1256 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clEnqueueCopyBufferToImage}(cl_command_queue command_queue, cl_mem src_buffer, cl_mem dst_image, size_t src_offset, const size_t * , const size_t * , cl_uint num_events_in_wait_list, const cl_event * event_wait_list, cl_event * event)</code><br>
1257 @param arg4 a direct only {@link com.jogamp.common.nio.PointerBuffer}
1258 @param arg5 a direct only {@link com.jogamp.common.nio.PointerBuffer}
1259 @param event_wait_list a direct only {@link com.jogamp.common.nio.PointerBuffer}
1260 @param event a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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) {
1262
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;
1272 if (__addr_ == 0) {
1273 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clEnqueueCopyBufferToImage"));
1274 }
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_);
1276 }
1277
1278 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clEnqueueCopyBufferToImage}(cl_command_queue command_queue, cl_mem src_buffer, cl_mem dst_image, size_t src_offset, const size_t * , const size_t * , cl_uint num_events_in_wait_list, const cl_event * event_wait_list, cl_event * event)</code><br>
1279 @param arg4 a direct only {@link com.jogamp.common.nio.PointerBuffer}
1280 @param arg5 a direct only {@link com.jogamp.common.nio.PointerBuffer}
1281 @param event_wait_list a direct only {@link com.jogamp.common.nio.PointerBuffer}
1282 @param event a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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);
1284
1285 /** Entry point (through function pointer) to C language function: <br> <code>void * {@native clEnqueueMapBuffer}(cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_map, cl_map_flags map_flags, size_t offset, size_t cb, cl_uint num_events_in_wait_list, const cl_event * event_wait_list, cl_event * event, cl_int * errcode_ret)</code><br>
1286 @param event_wait_list a direct only {@link com.jogamp.common.nio.PointerBuffer}
1287 @param event a direct only {@link com.jogamp.common.nio.PointerBuffer}
1288 @param errcode_ret a direct only {@link java.nio.IntBuffer} */
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) {
1290
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;
1298 if (__addr_ == 0) {
1299 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clEnqueueMapBuffer"));
1300 }
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);
1305 return _res;
1306 }
1307
1308 /** Entry point (through function pointer) to C language function: <br> <code>void * {@native clEnqueueMapBuffer}(cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_map, cl_map_flags map_flags, size_t offset, size_t cb, cl_uint num_events_in_wait_list, const cl_event * event_wait_list, cl_event * event, cl_int * errcode_ret)</code><br>
1309 @param event_wait_list a direct only {@link com.jogamp.common.nio.PointerBuffer}
1310 @param event a direct only {@link com.jogamp.common.nio.PointerBuffer}
1311 @param errcode_ret a direct only {@link java.nio.IntBuffer} */
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);
1313
1314 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clEnqueueUnmapMemObject}(cl_command_queue command_queue, cl_mem memobj, void * mapped_ptr, cl_uint num_events_in_wait_list, const cl_event * event_wait_list, cl_event * event)</code><br>
1315 @param mapped_ptr a direct only {@link java.nio.Buffer}
1316 @param event_wait_list a direct only {@link com.jogamp.common.nio.PointerBuffer}
1317 @param event a direct only {@link com.jogamp.common.nio.PointerBuffer} */
1318 public int clEnqueueUnmapMemObject(long command_queue, long memobj, Buffer mapped_ptr, int num_events_in_wait_list, PointerBuffer event_wait_list, PointerBuffer event) {
1319
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;
1327 if (__addr_ == 0) {
1328 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clEnqueueUnmapMemObject"));
1329 }
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_);
1331 }
1332
1333 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clEnqueueUnmapMemObject}(cl_command_queue command_queue, cl_mem memobj, void * mapped_ptr, cl_uint num_events_in_wait_list, const cl_event * event_wait_list, cl_event * event)</code><br>
1334 @param mapped_ptr a direct only {@link java.nio.Buffer}
1335 @param event_wait_list a direct only {@link com.jogamp.common.nio.PointerBuffer}
1336 @param event a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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);
1338
1339 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clEnqueueNDRangeKernel}(cl_command_queue command_queue, cl_kernel kernel, cl_uint work_dim, const size_t * global_work_offset, const size_t * global_work_size, const size_t * local_work_size, cl_uint num_events_in_wait_list, const cl_event * event_wait_list, cl_event * event)</code><br>
1340 @param global_work_offset a direct only {@link com.jogamp.common.nio.PointerBuffer}
1341 @param global_work_size a direct only {@link com.jogamp.common.nio.PointerBuffer}
1342 @param local_work_size a direct only {@link com.jogamp.common.nio.PointerBuffer}
1343 @param event_wait_list a direct only {@link com.jogamp.common.nio.PointerBuffer}
1344 @param event a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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) {
1346
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;
1358 if (__addr_ == 0) {
1359 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clEnqueueNDRangeKernel"));
1360 }
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_);
1362 }
1363
1364 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clEnqueueNDRangeKernel}(cl_command_queue command_queue, cl_kernel kernel, cl_uint work_dim, const size_t * global_work_offset, const size_t * global_work_size, const size_t * local_work_size, cl_uint num_events_in_wait_list, const cl_event * event_wait_list, cl_event * event)</code><br>
1365 @param global_work_offset a direct only {@link com.jogamp.common.nio.PointerBuffer}
1366 @param global_work_size a direct only {@link com.jogamp.common.nio.PointerBuffer}
1367 @param local_work_size a direct only {@link com.jogamp.common.nio.PointerBuffer}
1368 @param event_wait_list a direct only {@link com.jogamp.common.nio.PointerBuffer}
1369 @param event a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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);
1371
1372 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clEnqueueTask}(cl_command_queue command_queue, cl_kernel kernel, cl_uint num_events_in_wait_list, const cl_event * event_wait_list, cl_event * event)</code><br>
1373 @param event_wait_list a direct only {@link com.jogamp.common.nio.PointerBuffer}
1374 @param event a direct only {@link com.jogamp.common.nio.PointerBuffer} */
1375 public int clEnqueueTask(long command_queue, long kernel, int num_events_in_wait_list, PointerBuffer event_wait_list, PointerBuffer event) {
1376
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;
1382 if (__addr_ == 0) {
1383 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clEnqueueTask"));
1384 }
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_);
1386 }
1387
1388 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clEnqueueTask}(cl_command_queue command_queue, cl_kernel kernel, cl_uint num_events_in_wait_list, const cl_event * event_wait_list, cl_event * event)</code><br>
1389 @param event_wait_list a direct only {@link com.jogamp.common.nio.PointerBuffer}
1390 @param event a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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);
1392
1393 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clEnqueueMarker}(cl_command_queue command_queue, cl_event * event)</code><br>
1394 @param event a direct only {@link com.jogamp.common.nio.PointerBuffer} */
1395 public int clEnqueueMarker(long command_queue, PointerBuffer event) {
1396
1397 if (!Buffers.isDirect(event))
1398 throw new IllegalArgumentException("Argument \"event\" is not a direct buffer");
1399 final long __addr_ = addressTable._addressof_clEnqueueMarker;
1400 if (__addr_ == 0) {
1401 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clEnqueueMarker"));
1402 }
1403 return dispatch_clEnqueueMarker0(command_queue, event != null ? event.getBuffer() : null, Buffers.getDirectBufferByteOffset(event), __addr_);
1404 }
1405
1406 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clEnqueueMarker}(cl_command_queue command_queue, cl_event * event)</code><br>
1407 @param event a direct only {@link com.jogamp.common.nio.PointerBuffer} */
1408 private native int dispatch_clEnqueueMarker0(long command_queue, Object event, int event_byte_offset, long procAddress);
1409
1410 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clEnqueueWaitForEvents}(cl_command_queue command_queue, cl_uint num_events, const cl_event * event_list)</code><br>
1411 @param event_list a direct only {@link com.jogamp.common.nio.PointerBuffer} */
1412 public int clEnqueueWaitForEvents(long command_queue, int num_events, PointerBuffer event_list) {
1413
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;
1417 if (__addr_ == 0) {
1418 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clEnqueueWaitForEvents"));
1419 }
1420 return dispatch_clEnqueueWaitForEvents0(command_queue, num_events, event_list != null ? event_list.getBuffer() : null, Buffers.getDirectBufferByteOffset(event_list), __addr_);
1421 }
1422
1423 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clEnqueueWaitForEvents}(cl_command_queue command_queue, cl_uint num_events, const cl_event * event_list)</code><br>
1424 @param event_list a direct only {@link com.jogamp.common.nio.PointerBuffer} */
1425 private native int dispatch_clEnqueueWaitForEvents0(long command_queue, int num_events, Object event_list, int event_list_byte_offset, long procAddress);
1426
1427 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clEnqueueBarrier}(cl_command_queue command_queue)</code><br> */
1428 public int clEnqueueBarrier(long command_queue) {
1429
1430 final long __addr_ = addressTable._addressof_clEnqueueBarrier;
1431 if (__addr_ == 0) {
1432 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clEnqueueBarrier"));
1433 }
1434 return dispatch_clEnqueueBarrier0(command_queue, __addr_);
1435 }
1436
1437 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clEnqueueBarrier}(cl_command_queue command_queue)</code><br> */
1438 private native int dispatch_clEnqueueBarrier0(long command_queue, long procAddress);
1439
1440 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clIcdGetPlatformIDsKHR}(cl_uint, cl_platform_id * , cl_uint * )</code><br>
1441 @param arg1 a direct only {@link com.jogamp.common.nio.PointerBuffer}
1442 @param arg2 a direct only {@link java.nio.IntBuffer} */
1443 public int clIcdGetPlatformIDsKHR(int arg0, PointerBuffer arg1, IntBuffer arg2) {
1444
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;
1450 if (__addr_ == 0) {
1451 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clIcdGetPlatformIDsKHR"));
1452 }
1453 return dispatch_clIcdGetPlatformIDsKHR0(arg0, arg1 != null ? arg1.getBuffer() : null, Buffers.getDirectBufferByteOffset(arg1), arg2, Buffers.getDirectBufferByteOffset(arg2), __addr_);
1454 }
1455
1456 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clIcdGetPlatformIDsKHR}(cl_uint, cl_platform_id * , cl_uint * )</code><br>
1457 @param arg1 a direct only {@link com.jogamp.common.nio.PointerBuffer}
1458 @param arg2 a direct only {@link java.nio.IntBuffer} */
1459 private native int dispatch_clIcdGetPlatformIDsKHR0(int arg0, Object arg1, int arg1_byte_offset, Object arg2, int arg2_byte_offset, long procAddress);
1460
1461 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clReleaseDeviceEXT}(cl_device_id)</code><br> */
1462 public int clReleaseDeviceEXT(long arg0) {
1463
1464 final long __addr_ = addressTable._addressof_clReleaseDeviceEXT;
1465 if (__addr_ == 0) {
1466 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clReleaseDeviceEXT"));
1467 }
1468 return dispatch_clReleaseDeviceEXT1(arg0, __addr_);
1469 }
1470
1471 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clReleaseDeviceEXT}(cl_device_id)</code><br> */
1472 private native int dispatch_clReleaseDeviceEXT1(long arg0, long procAddress);
1473
1474 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clRetainDeviceEXT}(cl_device_id)</code><br> */
1475 public int clRetainDeviceEXT(long arg0) {
1476
1477 final long __addr_ = addressTable._addressof_clRetainDeviceEXT;
1478 if (__addr_ == 0) {
1479 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clRetainDeviceEXT"));
1480 }
1481 return dispatch_clRetainDeviceEXT1(arg0, __addr_);
1482 }
1483
1484 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clRetainDeviceEXT}(cl_device_id)</code><br> */
1485 private native int dispatch_clRetainDeviceEXT1(long arg0, long procAddress);
1486
1487 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clCreateSubDevicesEXT}(cl_device_id, const cl_device_partition_property_ext * , cl_uint, cl_device_id * , cl_uint * )</code><br>
1488 @param arg1 a direct or array-backed {@link java.nio.LongBuffer}
1489 @param arg3 a direct or array-backed {@link com.jogamp.common.nio.PointerBuffer}
1490 @param arg4 a direct or array-backed {@link java.nio.IntBuffer} */
1491 public int clCreateSubDevicesEXT(long arg0, LongBuffer arg1, int arg2, PointerBuffer arg3, IntBuffer arg4) {
1492
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;
1497 if (__addr_ == 0) {
1498 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clCreateSubDevicesEXT"));
1499 }
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_);
1501 }
1502
1503 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clCreateSubDevicesEXT}(cl_device_id, const cl_device_partition_property_ext * , cl_uint, cl_device_id * , cl_uint * )</code><br>
1504 @param arg1 a direct or array-backed {@link java.nio.LongBuffer}
1505 @param arg3 a direct or array-backed {@link com.jogamp.common.nio.PointerBuffer}
1506 @param arg4 a direct or array-backed {@link java.nio.IntBuffer} */
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);
1508
1509 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clCreateSubDevicesEXT}(cl_device_id, const cl_device_partition_property_ext * , cl_uint, cl_device_id * , cl_uint * )</code><br>
1510 @param arg3 a direct or array-backed {@link com.jogamp.common.nio.PointerBuffer} */
1511 public int clCreateSubDevicesEXT(long arg0, long[] arg1, int arg1_offset, int arg2, PointerBuffer arg3, int[] arg4, int arg4_offset) {
1512
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;
1519 if (__addr_ == 0) {
1520 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clCreateSubDevicesEXT"));
1521 }
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_);
1523 }
1524
1525 /** Entry point (through function pointer) to C language function: <br> <code>cl_mem {@native clCreateFromGLBuffer}(cl_context context, cl_mem_flags flags, cl_GLuint bufobj, int * errcode_ret)</code><br>
1526 @param errcode_ret a direct or array-backed {@link java.nio.IntBuffer} */
1527 public long clCreateFromGLBuffer(long context, long flags, int bufobj, IntBuffer errcode_ret) {
1528
1529 final boolean errcode_ret_is_direct = Buffers.isDirect(errcode_ret);
1530 final long __addr_ = addressTable._addressof_clCreateFromGLBuffer;
1531 if (__addr_ == 0) {
1532 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clCreateFromGLBuffer"));
1533 }
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_);
1535 }
1536
1537 /** Entry point (through function pointer) to C language function: <br> <code>cl_mem {@native clCreateFromGLBuffer}(cl_context context, cl_mem_flags flags, cl_GLuint bufobj, int * errcode_ret)</code><br>
1538 @param errcode_ret a direct or array-backed {@link java.nio.IntBuffer} */
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);
1540
1541 /** Entry point (through function pointer) to C language function: <br> <code>cl_mem {@native clCreateFromGLBuffer}(cl_context context, cl_mem_flags flags, cl_GLuint bufobj, int * errcode_ret)</code><br> */
1542 public long clCreateFromGLBuffer(long context, long flags, int bufobj, int[] errcode_ret, int errcode_ret_offset) {
1543
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;
1547 if (__addr_ == 0) {
1548 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clCreateFromGLBuffer"));
1549 }
1550 return dispatch_clCreateFromGLBuffer1(context, flags, bufobj, errcode_ret, Buffers.SIZEOF_INT * errcode_ret_offset, false, __addr_);
1551 }
1552
1553 /** Entry point (through function pointer) to C language function: <br> <code>cl_mem {@native clCreateFromGLTexture2D}(cl_context context, cl_mem_flags flags, cl_GLenum target, cl_GLint miplevel, cl_GLuint texture, cl_int * errcode_ret)</code><br>
1554 @param errcode_ret a direct or array-backed {@link java.nio.IntBuffer} */
1555 public long clCreateFromGLTexture2D(long context, long flags, int target, int miplevel, int texture, IntBuffer errcode_ret) {
1556
1557 final boolean errcode_ret_is_direct = Buffers.isDirect(errcode_ret);
1558 final long __addr_ = addressTable._addressof_clCreateFromGLTexture2D;
1559 if (__addr_ == 0) {
1560 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clCreateFromGLTexture2D"));
1561 }
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_);
1563 }
1564
1565 /** Entry point (through function pointer) to C language function: <br> <code>cl_mem {@native clCreateFromGLTexture2D}(cl_context context, cl_mem_flags flags, cl_GLenum target, cl_GLint miplevel, cl_GLuint texture, cl_int * errcode_ret)</code><br>
1566 @param errcode_ret a direct or array-backed {@link java.nio.IntBuffer} */
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);
1568
1569 /** Entry point (through function pointer) to C language function: <br> <code>cl_mem {@native clCreateFromGLTexture2D}(cl_context context, cl_mem_flags flags, cl_GLenum target, cl_GLint miplevel, cl_GLuint texture, cl_int * errcode_ret)</code><br> */
1570 public long clCreateFromGLTexture2D(long context, long flags, int target, int miplevel, int texture, int[] errcode_ret, int errcode_ret_offset) {
1571
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;
1575 if (__addr_ == 0) {
1576 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clCreateFromGLTexture2D"));
1577 }
1578 return dispatch_clCreateFromGLTexture2D1(context, flags, target, miplevel, texture, errcode_ret, Buffers.SIZEOF_INT * errcode_ret_offset, false, __addr_);
1579 }
1580
1581 /** Entry point (through function pointer) to C language function: <br> <code>cl_mem {@native clCreateFromGLTexture3D}(cl_context context, cl_mem_flags flags, cl_GLenum target, cl_GLint miplevel, cl_GLuint texture, cl_int * errcode_ret)</code><br>
1582 @param errcode_ret a direct or array-backed {@link java.nio.IntBuffer} */
1583 public long clCreateFromGLTexture3D(long context, long flags, int target, int miplevel, int texture, IntBuffer errcode_ret) {
1584
1585 final boolean errcode_ret_is_direct = Buffers.isDirect(errcode_ret);
1586 final long __addr_ = addressTable._addressof_clCreateFromGLTexture3D;
1587 if (__addr_ == 0) {
1588 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clCreateFromGLTexture3D"));
1589 }
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_);
1591 }
1592
1593 /** Entry point (through function pointer) to C language function: <br> <code>cl_mem {@native clCreateFromGLTexture3D}(cl_context context, cl_mem_flags flags, cl_GLenum target, cl_GLint miplevel, cl_GLuint texture, cl_int * errcode_ret)</code><br>
1594 @param errcode_ret a direct or array-backed {@link java.nio.IntBuffer} */
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);
1596
1597 /** Entry point (through function pointer) to C language function: <br> <code>cl_mem {@native clCreateFromGLTexture3D}(cl_context context, cl_mem_flags flags, cl_GLenum target, cl_GLint miplevel, cl_GLuint texture, cl_int * errcode_ret)</code><br> */
1598 public long clCreateFromGLTexture3D(long context, long flags, int target, int miplevel, int texture, int[] errcode_ret, int errcode_ret_offset) {
1599
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;
1603 if (__addr_ == 0) {
1604 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clCreateFromGLTexture3D"));
1605 }
1606 return dispatch_clCreateFromGLTexture3D1(context, flags, target, miplevel, texture, errcode_ret, Buffers.SIZEOF_INT * errcode_ret_offset, false, __addr_);
1607 }
1608
1609 /** Entry point (through function pointer) to C language function: <br> <code>cl_mem {@native clCreateFromGLRenderbuffer}(cl_context context, cl_mem_flags flags, cl_GLuint renderbuffer, cl_int * errcode_ret)</code><br>
1610 @param errcode_ret a direct or array-backed {@link java.nio.IntBuffer} */
1611 public long clCreateFromGLRenderbuffer(long context, long flags, int renderbuffer, IntBuffer errcode_ret) {
1612
1613 final boolean errcode_ret_is_direct = Buffers.isDirect(errcode_ret);
1614 final long __addr_ = addressTable._addressof_clCreateFromGLRenderbuffer;
1615 if (__addr_ == 0) {
1616 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clCreateFromGLRenderbuffer"));
1617 }
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_);
1619 }
1620
1621 /** Entry point (through function pointer) to C language function: <br> <code>cl_mem {@native clCreateFromGLRenderbuffer}(cl_context context, cl_mem_flags flags, cl_GLuint renderbuffer, cl_int * errcode_ret)</code><br>
1622 @param errcode_ret a direct or array-backed {@link java.nio.IntBuffer} */
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);
1624
1625 /** Entry point (through function pointer) to C language function: <br> <code>cl_mem {@native clCreateFromGLRenderbuffer}(cl_context context, cl_mem_flags flags, cl_GLuint renderbuffer, cl_int * errcode_ret)</code><br> */
1626 public long clCreateFromGLRenderbuffer(long context, long flags, int renderbuffer, int[] errcode_ret, int errcode_ret_offset) {
1627
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;
1631 if (__addr_ == 0) {
1632 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clCreateFromGLRenderbuffer"));
1633 }
1634 return dispatch_clCreateFromGLRenderbuffer1(context, flags, renderbuffer, errcode_ret, Buffers.SIZEOF_INT * errcode_ret_offset, false, __addr_);
1635 }
1636
1637 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetGLObjectInfo}(cl_mem memobj, cl_gl_object_type * gl_object_type, cl_GLuint * gl_object_name)</code><br>
1638 @param gl_object_type a direct or array-backed {@link java.nio.IntBuffer}
1639 @param gl_object_name a direct or array-backed {@link java.nio.IntBuffer} */
1640 public int clGetGLObjectInfo(long memobj, IntBuffer gl_object_type, IntBuffer gl_object_name) {
1641
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;
1645 if (__addr_ == 0) {
1646 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clGetGLObjectInfo"));
1647 }
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_);
1649 }
1650
1651 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetGLObjectInfo}(cl_mem memobj, cl_gl_object_type * gl_object_type, cl_GLuint * gl_object_name)</code><br>
1652 @param gl_object_type a direct or array-backed {@link java.nio.IntBuffer}
1653 @param gl_object_name a direct or array-backed {@link java.nio.IntBuffer} */
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);
1655
1656 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetGLObjectInfo}(cl_mem memobj, cl_gl_object_type * gl_object_type, cl_GLuint * gl_object_name)</code><br> */
1657 public int clGetGLObjectInfo(long memobj, int[] gl_object_type, int gl_object_type_offset, int[] gl_object_name, int gl_object_name_offset) {
1658
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;
1664 if (__addr_ == 0) {
1665 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clGetGLObjectInfo"));
1666 }
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_);
1668 }
1669
1670 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetGLTextureInfo}(cl_mem memobj, cl_gl_texture_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret)</code><br>
1671 @param param_value a direct or array-backed {@link java.nio.Buffer}
1672 @param param_value_size_ret a direct or array-backed {@link com.jogamp.common.nio.PointerBuffer} */
1673 public int clGetGLTextureInfo(long memobj, int param_name, long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret) {
1674
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;
1678 if (__addr_ == 0) {
1679 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clGetGLTextureInfo"));
1680 }
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_);
1682 }
1683
1684 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetGLTextureInfo}(cl_mem memobj, cl_gl_texture_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret)</code><br>
1685 @param param_value a direct or array-backed {@link java.nio.Buffer}
1686 @param param_value_size_ret a direct or array-backed {@link com.jogamp.common.nio.PointerBuffer} */
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);
1688
1689 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clEnqueueAcquireGLObjects}(cl_command_queue command_queue, cl_uint num_objects, const cl_mem * mem_objects, cl_uint num_events_in_wait_list, const cl_event * event_wait_list, cl_event * event)</code><br>
1690 @param mem_objects a direct only {@link com.jogamp.common.nio.PointerBuffer}
1691 @param event_wait_list a direct only {@link com.jogamp.common.nio.PointerBuffer}
1692 @param event a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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) {
1694
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;
1702 if (__addr_ == 0) {
1703 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clEnqueueAcquireGLObjects"));
1704 }
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_);
1706 }
1707
1708 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clEnqueueAcquireGLObjects}(cl_command_queue command_queue, cl_uint num_objects, const cl_mem * mem_objects, cl_uint num_events_in_wait_list, const cl_event * event_wait_list, cl_event * event)</code><br>
1709 @param mem_objects a direct only {@link com.jogamp.common.nio.PointerBuffer}
1710 @param event_wait_list a direct only {@link com.jogamp.common.nio.PointerBuffer}
1711 @param event a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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);
1713
1714 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clEnqueueReleaseGLObjects}(cl_command_queue command_queue, cl_uint num_objects, const cl_mem * mem_objects, cl_uint num_events_in_wait_list, const cl_event * event_wait_list, cl_event * event)</code><br>
1715 @param mem_objects a direct only {@link com.jogamp.common.nio.PointerBuffer}
1716 @param event_wait_list a direct only {@link com.jogamp.common.nio.PointerBuffer}
1717 @param event a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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) {
1719
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;
1727 if (__addr_ == 0) {
1728 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clEnqueueReleaseGLObjects"));
1729 }
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_);
1731 }
1732
1733 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clEnqueueReleaseGLObjects}(cl_command_queue command_queue, cl_uint num_objects, const cl_mem * mem_objects, cl_uint num_events_in_wait_list, const cl_event * event_wait_list, cl_event * event)</code><br>
1734 @param mem_objects a direct only {@link com.jogamp.common.nio.PointerBuffer}
1735 @param event_wait_list a direct only {@link com.jogamp.common.nio.PointerBuffer}
1736 @param event a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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);
1738
1739 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetGLContextInfoKHR}(const cl_context_properties * properties, cl_gl_context_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret)</code><br>
1740 @param properties a direct only {@link com.jogamp.common.nio.PointerBuffer}
1741 @param param_value a direct only {@link java.nio.Buffer}
1742 @param param_value_size_ret a direct only {@link com.jogamp.common.nio.PointerBuffer} */
1743 public int clGetGLContextInfoKHR(PointerBuffer properties, int param_name, long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret) {
1744
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;
1752 if (__addr_ == 0) {
1753 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clGetGLContextInfoKHR"));
1754 }
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_);
1756 }
1757
1758 /** Entry point (through function pointer) to C language function: <br> <code>cl_int {@native clGetGLContextInfoKHR}(const cl_context_properties * properties, cl_gl_context_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret)</code><br>
1759 @param properties a direct only {@link com.jogamp.common.nio.PointerBuffer}
1760 @param param_value a direct only {@link java.nio.Buffer}
1761 @param param_value_size_ret a direct only {@link com.jogamp.common.nio.PointerBuffer} */
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);
1763
1764 /** Entry point (through function pointer) to C language function: <br> <code>cl_event {@native clCreateEventFromGLsyncKHR}(cl_context, cl_GLsync, cl_int * )</code><br>
1765 @param arg2 a direct or array-backed {@link java.nio.IntBuffer} */
1766 public long clCreateEventFromGLsyncKHR(long arg0, long arg1, IntBuffer arg2) {
1767
1768 final boolean arg2_is_direct = Buffers.isDirect(arg2);
1769 final long __addr_ = addressTable._addressof_clCreateEventFromGLsyncKHR;
1770 if (__addr_ == 0) {
1771 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clCreateEventFromGLsyncKHR"));
1772 }
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_);
1774 }
1775
1776 /** Entry point (through function pointer) to C language function: <br> <code>cl_event {@native clCreateEventFromGLsyncKHR}(cl_context, cl_GLsync, cl_int * )</code><br>
1777 @param arg2 a direct or array-backed {@link java.nio.IntBuffer} */
1778 private native long dispatch_clCreateEventFromGLsyncKHR1(long arg0, long arg1, Object arg2, int arg2_byte_offset, boolean arg2_is_direct, long procAddress);
1779
1780 /** Entry point (through function pointer) to C language function: <br> <code>cl_event {@native clCreateEventFromGLsyncKHR}(cl_context, cl_GLsync, cl_int * )</code><br> */
1781 public long clCreateEventFromGLsyncKHR(long arg0, long arg1, int[] arg2, int arg2_offset) {
1782
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;
1786 if (__addr_ == 0) {
1787 throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "clCreateEventFromGLsyncKHR"));
1788 }
1789 return dispatch_clCreateEventFromGLsyncKHR1(arg0, arg1, arg2, Buffers.SIZEOF_INT * arg2_offset, false, __addr_);
1790 }
1791
1792
1793 // --- Begin CustomJavaCode .cfg declarations
1794 protected static final CLProcAddressTable11 addressTable;
1795
1796 static {
1798 }
1799
1801
1802 public CLImpl11() {
1803 init();
1804 }
1805 /** If null, OpenCL is not available on this machine. */
1806 static final DynamicLibraryBundle dynamicLookupHelper;
1807
1808 static {
1809 dynamicLookupHelper = AccessController.doPrivileged(new PrivilegedAction<DynamicLibraryBundle>() {
1810 public DynamicLibraryBundle run() {
1811 final DynamicLibraryBundle bundle = new DynamicLibraryBundle(new CLDynamicLibraryBundleInfo());
1812 if(!bundle.isToolLibLoaded()) {
1813 // couldn't load native CL library
1814 // TODO: log this?
1815 return null;
1816 }
1817 if(!bundle.isLibComplete()) {
1818 System.err.println("Couln't load native CL/JNI glue library");
1819 return null;
1820 }
1821 addressTable.reset(bundle);
1822 /** Not required nor forced
1823 if( !initializeImpl() ) {
1824 System.err.println("Native initialization failure of CL/JNI glue library");
1825 return null;
1826 } */
1827 return bundle;
1828 } } );
1829 }
1830
1831 // maps the context id to its error handler's global object pointer
1832 private final LongLongHashMap contextCallbackMap = new LongLongHashMap();
1833
1834 // to use in subclass constructors
1835 protected void init() {
1836 this.contextCallbackMap.setKeyNotFoundValue(0);
1837 }
1838
1839 /**
1840 * Accessor.
1841 * @returns true if OpenCL is available on this machine.
1842 */
1843 public static boolean isAvailable() { return dynamicLookupHelper != null; }
1844
1845 static long clGetExtensionFunctionAddress(long clGetExtensionFunctionAddressHandle, java.lang.String procname)
1846 {
1847 if (clGetExtensionFunctionAddressHandle == 0) {
1848 throw new RuntimeException("Passed null pointer for method \"clGetExtensionFunctionAddress\"");
1849 }
1850 return dispatch_clGetExtensionFunctionAddressStatic(procname, clGetExtensionFunctionAddressHandle);
1851 }
1852
1853 /** Entry point (through function pointer) to C language function: <br> <code> void* clGetExtensionFunctionAddress(const char * fname); </code> */
1854 long clGetExtensionFunctionAddress(String fname) {
1855
1856 final long __addr_ = addressTable._addressof_clGetExtensionFunctionAddress;
1857 if (__addr_ == 0) {
1858 throw new UnsupportedOperationException("Method \"clGetExtensionFunctionAddress\" not available");
1859 }
1860 return dispatch_clGetExtensionFunctionAddressStatic(fname, __addr_);
1861 }
1862
1863 /** Entry point (through function pointer) to C language function: <br> <code> void* clGetExtensionFunctionAddress(const char * fname); </code> */
1864 private static native long dispatch_clGetExtensionFunctionAddressStatic(String fname, long procAddress);
1865
1866 @Override
1867 public long clCreateContext(final PointerBuffer properties, final PointerBuffer devices, final CLErrorHandler pfn_notify, final IntBuffer errcode_ret) {
1868
1869 if (properties != null && !properties.isDirect()) {
1870 throw new RuntimeException("Argument \"properties\" was not a direct buffer");
1871 }
1872
1873 if (errcode_ret != null && !errcode_ret.isDirect()) {
1874 throw new RuntimeException("Argument \"errcode_ret\" was not a direct buffer");
1875 }
1876
1877 final long address = addressTable._addressof_clCreateContext;
1878 if (address == 0) {
1879 throw new UnsupportedOperationException("Method not available");
1880 }
1881
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);
1887
1888 if (pfn_notify != null && global[0] != 0) {
1889 synchronized (contextCallbackMap) {
1890 contextCallbackMap.put(ctx, global[0]);
1891 }
1892 }
1893 return ctx;
1894 }
1895
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);
1897
1898 @Override
1899 public long clCreateContextFromType(final PointerBuffer properties, final long device_type, final CLErrorHandler pfn_notify, final IntBuffer errcode_ret) {
1900 if (properties != null && !properties.isDirect()) {
1901 throw new RuntimeException("Argument \"properties\" was not a direct buffer");
1902 }
1903
1904 if (errcode_ret != null && !errcode_ret.isDirect()) {
1905 throw new RuntimeException("Argument \"errcode_ret\" was not a direct buffer");
1906 }
1907
1908 final long address = addressTable._addressof_clCreateContextFromType;
1909 if (address == 0) {
1910 throw new UnsupportedOperationException("Method not available");
1911 }
1912
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);
1917
1918 if (pfn_notify != null && global[0] != 0) {
1919 synchronized (contextCallbackMap) {
1920 contextCallbackMap.put(ctx, global[0]);
1921 }
1922 }
1923 return ctx;
1924 }
1925
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);
1927
1928 @Override
1929 public int clReleaseContext(final long context) {
1930 long global = 0;
1931 synchronized (contextCallbackMap) {
1932 global = contextCallbackMap.remove(context);
1933 }
1934
1935 final long address = addressTable._addressof_clReleaseContext;
1936 if (address == 0) {
1937 throw new UnsupportedOperationException("Method not available");
1938 }
1939 return clReleaseContextImpl(context, global, address);
1940 }
1941
1942 /** Interface to C language function: <br> <code> int32_t {@native clReleaseContext}(cl_context context); </code> */
1943 public native int clReleaseContextImpl(long context, long global, long address);
1944
1945 /** Interface to C language function: <br> <code> int32_t clBuildProgram(cl_program, uint32_t, cl_device_id * , const char * , void * ); </code> */
1946 @Override
1947 public int clBuildProgram(final long program, final int deviceCount, final PointerBuffer deviceList, final String options, final BuildProgramCallback cb) {
1948 if (deviceList != null && !deviceList.isDirect()) {
1949 throw new RuntimeException("Argument \"properties\" was not a direct buffer");
1950 }
1951
1952 final long address = addressTable._addressof_clBuildProgram;
1953 if (address == 0) {
1954 throw new UnsupportedOperationException("Method not available");
1955 }
1956 return clBuildProgram0(program, deviceCount, deviceList != null ? deviceList.getBuffer() : null,
1957 Buffers.getDirectBufferByteOffset(deviceList), options, cb, address);
1958 }
1959
1960 /** Entry point to C language function: <code> int32_t clBuildProgram(cl_program, uint32_t, cl_device_id * , const char * , void * ); </code> */
1961 private native int clBuildProgram0(long program, int deviceCount, Object deviceList, int deviceListOffset, String options, BuildProgramCallback cb, long address);
1962
1963
1964 @Override
1965 public int clSetEventCallback(final long event, final int trigger, final CLEventCallback callback) {
1966 final long address = addressTable._addressof_clSetEventCallback;
1967 if (address == 0) {
1968 throw new UnsupportedOperationException("Method not available");
1969 }
1970 return clSetEventCallback0(event, trigger, callback, address);
1971 }
1972
1973 private native int clSetEventCallback0(long event, int type, CLEventCallback cb, long address);
1974
1975
1976 @Override
1977 public int clSetMemObjectDestructorCallback(final long memObjID, final CLMemObjectDestructorCallback cb) {
1978 final long address = addressTable._addressof_clSetMemObjectDestructorCallback;
1979 if (address == 0) {
1980 throw new UnsupportedOperationException("Method not available");
1981 }
1982 return clSetMemObjectDestructorCallback0(memObjID, cb, address);
1983 }
1984
1985 private native int clSetMemObjectDestructorCallback0(long memObjID, CLMemObjectDestructorCallback cb, long address);
1986
1987
1988 /** Interface to C language function: <br> <code> void * {@native clEnqueueMapImage}(cl_command_queue command_queue, cl_mem image, uint32_t blocking_map, uint64_t map_flags, const size_t * , const size_t * , size_t * image_row_pitch, size_t * image_slice_pitch, uint32_t num_events_in_wait_list, cl_event * event_wait_list, cl_event * event, int32_t * errcode_ret); </code>
1989 @param origin a direct {@link com.jogamp.common.nio.PointerBuffer}
1990 @param range a direct {@link com.jogamp.common.nio.PointerBuffer}
1991 @param image_row_pitch a direct {@link com.jogamp.common.nio.PointerBuffer}
1992 @param image_slice_pitch a direct {@link com.jogamp.common.nio.PointerBuffer}
1993 @param event_wait_list a direct {@link com.jogamp.common.nio.PointerBuffer}
1994 @param event a direct {@link com.jogamp.common.nio.PointerBuffer}
1995 @param errcode_ret a direct {@link java.nio.IntBuffer} */
1996 @Override
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) {
2002
2003 if (origin != null && !origin.isDirect()) {
2004 throw new CLException("Argument \"origin\" was not a direct buffer");
2005 }
2006 if (range != null && !range.isDirect()) {
2007 throw new CLException("Argument \"range\" was not a direct buffer");
2008 }
2009 if (image_row_pitch != null && !image_row_pitch.isDirect()) {
2010 throw new CLException("Argument \"image_row_pitch\" was not a direct buffer");
2011 }
2012 if (image_slice_pitch != null && !image_slice_pitch.isDirect()) {
2013 throw new CLException("Argument \"image_slice_pitch\" was not a direct buffer");
2014 }
2015 if (event_wait_list != null && !event_wait_list.isDirect()) {
2016 throw new CLException("Argument \"event_wait_list\" was not a direct buffer");
2017 }
2018 if (event != null && !event.isDirect()) {
2019 throw new CLException("Argument \"event\" was not a direct buffer");
2020 }
2021 if (errcode_ret != null && !errcode_ret.isDirect()) {
2022 throw new CLException("Argument \"errcode_ret\" was not a direct buffer");
2023 }
2024
2025 final long getImageInfoAddress = addressTable._addressof_clGetImageInfo;
2026 if (getImageInfoAddress == 0) {
2027 throw new UnsupportedOperationException("Method not available");
2028 }
2029 final long mapImageAddress = addressTable._addressof_clEnqueueMapImage;
2030 if (mapImageAddress == 0) {
2031 throw new UnsupportedOperationException("Method not available");
2032 }
2033 ByteBuffer _res;
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);
2042 if (_res == null) {
2043 return null;
2044 }
2045 Buffers.nativeOrder(_res);
2046 return _res;
2047 }
2048
2049 /** Entry point to C language function: <code> void * {@native clEnqueueMapImage}(cl_command_queue command_queue, cl_mem image, uint32_t blocking_map, uint64_t map_flags, const size_t * , const size_t * , size_t * image_row_pitch, size_t * image_slice_pitch, uint32_t num_events_in_wait_list, cl_event * event_wait_list, cl_event * event, int32_t * errcode_ret); </code>
2050 @param origin a direct {@link com.jogamp.common.nio.PointerBuffer}
2051 @param range a direct {@link com.jogamp.common.nio.PointerBuffer}
2052 @param image_row_pitch a direct {@link com.jogamp.common.nio.PointerBuffer}
2053 @param image_slice_pitch a direct {@link com.jogamp.common.nio.PointerBuffer}
2054 @param event_wait_list a direct {@link com.jogamp.common.nio.PointerBuffer}
2055 @param event a direct {@link com.jogamp.common.nio.PointerBuffer}
2056 @param errcode_ret a direct {@link java.nio.IntBuffer} */
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);
2063 // ---- End CustomJavaCode .cfg declarations
2064} // end of class CLImpl11
Main Exception type for runtime OpenCL errors and failed function calls (e.g.
Struct accessor for cl_image_format.
final java.nio.ByteBuffer getBuffer()
Return the underlying native direct ByteBuffer.
Java bindings to OpenCL, the Open Computing Language (generated).
Definition: CLImpl11.java:32
int clReleaseKernel(long kernel)
Entry point (through function pointer) to C language function: cl_int {@native clReleaseKernel}(cl_...
Definition: CLImpl11.java:727
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_...
Definition: CLImpl11.java:313
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...
Definition: CLImpl11.java:1693
int clWaitForEvents(int num_events, PointerBuffer event_list)
Entry point (through function pointer) to C language function: cl_int {@native clWaitForEvents}(cl_...
Definition: CLImpl11.java:800
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...
Definition: CLImpl11.java:1657
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...
Definition: CLImpl11.java:556
int clFlush(long command_queue)
Entry point (through function pointer) to C language function: cl_int {@native clFlush}(cl_command_...
Definition: CLImpl11.java:925
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...
Definition: CLImpl11.java:741
int clIcdGetPlatformIDsKHR(int arg0, PointerBuffer arg1, IntBuffer arg2)
Entry point (through function pointer) to C language function: cl_int {@native clIcdGetPlatformIDsK...
Definition: CLImpl11.java:1443
int clRetainContext(long context)
Entry point (through function pointer) to C language function: cl_int {@native clRetainContext}(cl_...
Definition: CLImpl11.java:118
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}(...
Definition: CLImpl11.java:1200
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 * ,...
Definition: CLImpl11.java:1947
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...
Definition: CLImpl11.java:386
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_...
Definition: CLImpl11.java:328
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...
Definition: CLImpl11.java:1261
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...
Definition: CLImpl11.java:168
int clReleaseCommandQueue(long command_queue)
Entry point (through function pointer) to C language function: cl_int {@native clReleaseCommandQueu...
Definition: CLImpl11.java:193
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...
Definition: CLImpl11.java:695
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...
Definition: CLImpl11.java:1511
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...
Definition: CLImpl11.java:133
int clSetEventCallback(final long event, final int trigger, final CLEventCallback callback)
Interface to C language function: int32_t {@native clSetEventCallback}(cl_event event,...
Definition: CLImpl11.java:1965
int clReleaseProgram(long program)
Entry point (through function pointer) to C language function: cl_int {@native clReleaseProgram}(cl...
Definition: CLImpl11.java:597
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}...
Definition: CLImpl11.java:954
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_...
Definition: CLImpl11.java:759
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...
Definition: CLImpl11.java:982
static CLProcAddressTable11 getAddressTable()
Definition: CLImpl11.java:1800
int clSetUserEventStatus(long event, int execution_status)
Entry point (through function pointer) to C language function: cl_int {@native clSetUserEventStatus...
Definition: CLImpl11.java:891
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...
Definition: CLImpl11.java:1718
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...
Definition: CLImpl11.java:511
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...
Definition: CLImpl11.java:1743
int clReleaseDeviceEXT(long arg0)
Entry point (through function pointer) to C language function: cl_int {@native clReleaseDeviceEXT}(...
Definition: CLImpl11.java:1462
long clCreateUserEvent(long context, int[] errcode_ret, int errcode_ret_offset)
Entry point (through function pointer) to C language function: cl_event {@native clCreateUserEvent}...
Definition: CLImpl11.java:853
int clEnqueueBarrier(long command_queue)
Entry point (through function pointer) to C language function: cl_int {@native clEnqueueBarrier}(cl...
Definition: CLImpl11.java:1428
int clReleaseSampler(long sampler)
Entry point (through function pointer) to C language function: cl_int {@native clReleaseSampler}(cl...
Definition: CLImpl11.java:496
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...
Definition: CLImpl11.java:1583
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}...
Definition: CLImpl11.java:471
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_...
Definition: CLImpl11.java:99
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_...
Definition: CLImpl11.java:295
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}(...
Definition: CLImpl11.java:415
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...
Definition: CLImpl11.java:1101
long clCreateEventFromGLsyncKHR(long arg0, long arg1, IntBuffer arg2)
Entry point (through function pointer) to C language function: cl_event {@native clCreateEventFromG...
Definition: CLImpl11.java:1766
int clRetainCommandQueue(long command_queue)
Entry point (through function pointer) to C language function: cl_int {@native clRetainCommandQueue...
Definition: CLImpl11.java:180
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}...
Definition: CLImpl11.java:1167
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 * ,...
Definition: CLImpl11.java:1867
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}(...
Definition: CLImpl11.java:1673
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...
Definition: CLImpl11.java:681
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...
Definition: CLImpl11.java:78
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...
Definition: CLImpl11.java:1598
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...
Definition: CLImpl11.java:1997
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_...
Definition: CLImpl11.java:346
long clCreateFromGLBuffer(long context, long flags, int bufobj, IntBuffer errcode_ret)
Entry point (through function pointer) to C language function: cl_mem {@native clCreateFromGLBuffer...
Definition: CLImpl11.java:1527
int clRetainDeviceEXT(long arg0)
Entry point (through function pointer) to C language function: cl_int {@native clRetainDeviceEXT}(c...
Definition: CLImpl11.java:1475
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...
Definition: CLImpl11.java:1491
long clCreateKernel(long program, String kernel_name, IntBuffer errcode_ret)
Entry point (through function pointer) to C language function: cl_kernel {@native clCreateKernel}(c...
Definition: CLImpl11.java:666
static final CLProcAddressTable11 addressTable
Definition: CLImpl11.java:1794
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}...
Definition: CLImpl11.java:456
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...
Definition: CLImpl11.java:1044
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...
Definition: CLImpl11.java:625
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...
Definition: CLImpl11.java:1899
int clUnloadCompiler()
Entry point (through function pointer) to C language function: cl_int {@native clUnloadCompiler}()
Definition: CLImpl11.java:610
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...
Definition: CLImpl11.java:208
int clRetainSampler(long sampler)
Entry point (through function pointer) to C language function: cl_int {@native clRetainSampler}(cl_...
Definition: CLImpl11.java:483
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}...
Definition: CLImpl11.java:1077
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...
Definition: CLImpl11.java:1626
long clCreateUserEvent(long context, IntBuffer errcode_ret)
Entry point (through function pointer) to C language function: cl_event {@native clCreateUserEvent}...
Definition: CLImpl11.java:838
int clSetMemObjectDestructorCallback(final long memObjID, final CLMemObjectDestructorCallback cb)
Interface to C language function: int32_t {@native clSetMemObjectDestructorCallback}(cl_mem memobj...
Definition: CLImpl11.java:1977
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...
Definition: CLImpl11.java:1318
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...
Definition: CLImpl11.java:1640
int clRetainKernel(long kernel)
Entry point (through function pointer) to C language function: cl_int {@native clRetainKernel}(cl_k...
Definition: CLImpl11.java:714
int clReleaseEvent(long event)
Entry point (through function pointer) to C language function: cl_int {@native clReleaseEvent}(cl_e...
Definition: CLImpl11.java:878
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...
Definition: CLImpl11.java:906
int clRetainEvent(long event)
Entry point (through function pointer) to C language function: cl_int {@native clRetainEvent}(cl_ev...
Definition: CLImpl11.java:865
int clGetPlatformIDs(int num_entries, PointerBuffer platforms, IntBuffer num_platforms)
Entry point (through function pointer) to C language function: cl_int {@native clGetPlatformIDs}(cl...
Definition: CLImpl11.java:36
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...
Definition: CLImpl11.java:436
int clFinish(long command_queue)
Entry point (through function pointer) to C language function: cl_int {@native clFinish}(cl_command...
Definition: CLImpl11.java:938
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...
Definition: CLImpl11.java:1542
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}(...
Definition: CLImpl11.java:1289
int clReleaseMemObject(long memobj)
Entry point (through function pointer) to C language function: cl_int {@native clReleaseMemObject}(...
Definition: CLImpl11.java:372
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...
Definition: CLImpl11.java:818
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}(...
Definition: CLImpl11.java:1134
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...
Definition: CLImpl11.java:1232
static boolean isAvailable()
Accessor.
Definition: CLImpl11.java:1843
long clCreateEventFromGLsyncKHR(long arg0, long arg1, int[] arg2, int arg2_offset)
Entry point (through function pointer) to C language function: cl_event {@native clCreateEventFromG...
Definition: CLImpl11.java:1781
int clRetainProgram(long program)
Entry point (through function pointer) to C language function: cl_int {@native clRetainProgram}(cl_...
Definition: CLImpl11.java:584
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...
Definition: CLImpl11.java:1345
long clCreateFromGLRenderbuffer(long context, long flags, int renderbuffer, IntBuffer errcode_ret)
Entry point (through function pointer) to C language function: cl_mem {@native clCreateFromGLRender...
Definition: CLImpl11.java:1611
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...
Definition: CLImpl11.java:1375
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...
Definition: CLImpl11.java:1570
int clEnqueueWaitForEvents(long command_queue, int num_events, PointerBuffer event_list)
Entry point (through function pointer) to C language function: cl_int {@native clEnqueueWaitForEven...
Definition: CLImpl11.java:1412
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...
Definition: CLImpl11.java:229
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...
Definition: CLImpl11.java:1016
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...
Definition: CLImpl11.java:1555
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...
Definition: CLImpl11.java:247
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...
Definition: CLImpl11.java:401
int clReleaseContext(final long context)
Interface to C language function: cl_int {@native clReleaseContext}(cl_context context)
Definition: CLImpl11.java:1929
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...
Definition: CLImpl11.java:280
int clRetainMemObject(long memobj)
Entry point (through function pointer) to C language function: cl_int {@native clRetainMemObject}(c...
Definition: CLImpl11.java:359
int clEnqueueMarker(long command_queue, PointerBuffer event)
Entry point (through function pointer) to C language function: cl_int {@native clEnqueueMarker}(cl_...
Definition: CLImpl11.java:1395
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...
Definition: CLImpl11.java:780
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...
Definition: CLImpl11.java:153
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...
Definition: CLImpl11.java:262
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...
Definition: CLImpl11.java:532
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...
Definition: CLImpl11.java:646
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...
Definition: CLImpl11.java:57
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...