ntdll: Connect syscall frames across user callbacks on x86-64.
[wine.git] / dlls / opencl / unixlib.h
blob5a9b1556a04b32faf18e1b691e2dd900de3faaef
1 /* Automatically generated from OpenCL registry files; DO NOT EDIT! */
3 struct clBuildProgram_params
5 cl_program program;
6 uint32_t num_devices;
7 const cl_device_id* device_list;
8 const char* options;
9 void (WINAPI* pfn_notify)(cl_program program, void* user_data);
10 void* user_data;
13 struct clCompileProgram_params
15 cl_program program;
16 uint32_t num_devices;
17 const cl_device_id* device_list;
18 const char* options;
19 uint32_t num_input_headers;
20 const cl_program* input_headers;
21 const char** header_include_names;
22 void (WINAPI* pfn_notify)(cl_program program, void* user_data);
23 void* user_data;
26 struct clCreateBuffer_params
28 cl_mem* __retval;
29 cl_context context;
30 ULONGLONG flags;
31 SIZE_T size;
32 void* host_ptr;
33 cl_int* errcode_ret;
36 struct clCreateCommandQueue_params
38 cl_command_queue* __retval;
39 cl_context context;
40 cl_device_id device;
41 ULONGLONG properties;
42 cl_int* errcode_ret;
45 struct clCreateContext_params
47 cl_context* __retval;
48 const cl_context_properties* properties;
49 uint32_t num_devices;
50 const cl_device_id* devices;
51 void (WINAPI* pfn_notify)(const char* errinfo, const void* private_info, size_t cb, void* user_data);
52 void* user_data;
53 cl_int* errcode_ret;
56 struct clCreateContextFromType_params
58 cl_context* __retval;
59 const cl_context_properties* properties;
60 ULONGLONG device_type;
61 void (WINAPI* pfn_notify)(const char* errinfo, const void* private_info, size_t cb, void* user_data);
62 void* user_data;
63 cl_int* errcode_ret;
66 struct clCreateImage_params
68 cl_mem* __retval;
69 cl_context context;
70 ULONGLONG flags;
71 const cl_image_format* image_format;
72 const cl_image_desc* image_desc;
73 void* host_ptr;
74 cl_int* errcode_ret;
77 struct clCreateImage2D_params
79 cl_mem* __retval;
80 cl_context context;
81 ULONGLONG flags;
82 const cl_image_format* image_format;
83 SIZE_T image_width;
84 SIZE_T image_height;
85 SIZE_T image_row_pitch;
86 void* host_ptr;
87 cl_int* errcode_ret;
90 struct clCreateImage3D_params
92 cl_mem* __retval;
93 cl_context context;
94 ULONGLONG flags;
95 const cl_image_format* image_format;
96 SIZE_T image_width;
97 SIZE_T image_height;
98 SIZE_T image_depth;
99 SIZE_T image_row_pitch;
100 SIZE_T image_slice_pitch;
101 void* host_ptr;
102 cl_int* errcode_ret;
105 struct clCreateKernel_params
107 cl_kernel* __retval;
108 cl_program program;
109 const char* kernel_name;
110 cl_int* errcode_ret;
113 struct clCreateKernelsInProgram_params
115 cl_program program;
116 uint32_t num_kernels;
117 cl_kernel* kernels;
118 cl_uint* num_kernels_ret;
121 struct clCreateProgramWithBinary_params
123 cl_program* __retval;
124 cl_context context;
125 uint32_t num_devices;
126 const cl_device_id* device_list;
127 const size_t* lengths;
128 const unsigned char** binaries;
129 cl_int* binary_status;
130 cl_int* errcode_ret;
133 struct clCreateProgramWithBuiltInKernels_params
135 cl_program* __retval;
136 cl_context context;
137 uint32_t num_devices;
138 const cl_device_id* device_list;
139 const char* kernel_names;
140 cl_int* errcode_ret;
143 struct clCreateProgramWithSource_params
145 cl_program* __retval;
146 cl_context context;
147 uint32_t count;
148 const char** strings;
149 const size_t* lengths;
150 cl_int* errcode_ret;
153 struct clCreateSampler_params
155 cl_sampler* __retval;
156 cl_context context;
157 uint32_t normalized_coords;
158 uint32_t addressing_mode;
159 uint32_t filter_mode;
160 cl_int* errcode_ret;
163 struct clCreateSubBuffer_params
165 cl_mem* __retval;
166 cl_mem buffer;
167 ULONGLONG flags;
168 uint32_t buffer_create_type;
169 const void* buffer_create_info;
170 cl_int* errcode_ret;
173 struct clCreateSubDevices_params
175 cl_device_id in_device;
176 const cl_device_partition_property* properties;
177 uint32_t num_devices;
178 cl_device_id* out_devices;
179 cl_uint* num_devices_ret;
182 struct clCreateUserEvent_params
184 cl_event* __retval;
185 cl_context context;
186 cl_int* errcode_ret;
189 struct clEnqueueBarrier_params
191 cl_command_queue command_queue;
194 struct clEnqueueBarrierWithWaitList_params
196 cl_command_queue command_queue;
197 uint32_t num_events_in_wait_list;
198 const cl_event* event_wait_list;
199 cl_event* event;
202 struct clEnqueueCopyBuffer_params
204 cl_command_queue command_queue;
205 cl_mem src_buffer;
206 cl_mem dst_buffer;
207 SIZE_T src_offset;
208 SIZE_T dst_offset;
209 SIZE_T size;
210 uint32_t num_events_in_wait_list;
211 const cl_event* event_wait_list;
212 cl_event* event;
215 struct clEnqueueCopyBufferRect_params
217 cl_command_queue command_queue;
218 cl_mem src_buffer;
219 cl_mem dst_buffer;
220 const size_t* src_origin;
221 const size_t* dst_origin;
222 const size_t* region;
223 SIZE_T src_row_pitch;
224 SIZE_T src_slice_pitch;
225 SIZE_T dst_row_pitch;
226 SIZE_T dst_slice_pitch;
227 uint32_t num_events_in_wait_list;
228 const cl_event* event_wait_list;
229 cl_event* event;
232 struct clEnqueueCopyBufferToImage_params
234 cl_command_queue command_queue;
235 cl_mem src_buffer;
236 cl_mem dst_image;
237 SIZE_T src_offset;
238 const size_t* dst_origin;
239 const size_t* region;
240 uint32_t num_events_in_wait_list;
241 const cl_event* event_wait_list;
242 cl_event* event;
245 struct clEnqueueCopyImage_params
247 cl_command_queue command_queue;
248 cl_mem src_image;
249 cl_mem dst_image;
250 const size_t* src_origin;
251 const size_t* dst_origin;
252 const size_t* region;
253 uint32_t num_events_in_wait_list;
254 const cl_event* event_wait_list;
255 cl_event* event;
258 struct clEnqueueCopyImageToBuffer_params
260 cl_command_queue command_queue;
261 cl_mem src_image;
262 cl_mem dst_buffer;
263 const size_t* src_origin;
264 const size_t* region;
265 SIZE_T dst_offset;
266 uint32_t num_events_in_wait_list;
267 const cl_event* event_wait_list;
268 cl_event* event;
271 struct clEnqueueFillBuffer_params
273 cl_command_queue command_queue;
274 cl_mem buffer;
275 const void* pattern;
276 SIZE_T pattern_size;
277 SIZE_T offset;
278 SIZE_T size;
279 uint32_t num_events_in_wait_list;
280 const cl_event* event_wait_list;
281 cl_event* event;
284 struct clEnqueueFillImage_params
286 cl_command_queue command_queue;
287 cl_mem image;
288 const void* fill_color;
289 const size_t* origin;
290 const size_t* region;
291 uint32_t num_events_in_wait_list;
292 const cl_event* event_wait_list;
293 cl_event* event;
296 struct clEnqueueMapBuffer_params
298 void** __retval;
299 cl_command_queue command_queue;
300 cl_mem buffer;
301 uint32_t blocking_map;
302 ULONGLONG map_flags;
303 SIZE_T offset;
304 SIZE_T size;
305 uint32_t num_events_in_wait_list;
306 const cl_event* event_wait_list;
307 cl_event* event;
308 cl_int* errcode_ret;
311 struct clEnqueueMapImage_params
313 void** __retval;
314 cl_command_queue command_queue;
315 cl_mem image;
316 uint32_t blocking_map;
317 ULONGLONG map_flags;
318 const size_t* origin;
319 const size_t* region;
320 size_t* image_row_pitch;
321 size_t* image_slice_pitch;
322 uint32_t num_events_in_wait_list;
323 const cl_event* event_wait_list;
324 cl_event* event;
325 cl_int* errcode_ret;
328 struct clEnqueueMarker_params
330 cl_command_queue command_queue;
331 cl_event* event;
334 struct clEnqueueMarkerWithWaitList_params
336 cl_command_queue command_queue;
337 uint32_t num_events_in_wait_list;
338 const cl_event* event_wait_list;
339 cl_event* event;
342 struct clEnqueueMigrateMemObjects_params
344 cl_command_queue command_queue;
345 uint32_t num_mem_objects;
346 const cl_mem* mem_objects;
347 ULONGLONG flags;
348 uint32_t num_events_in_wait_list;
349 const cl_event* event_wait_list;
350 cl_event* event;
353 struct clEnqueueNDRangeKernel_params
355 cl_command_queue command_queue;
356 cl_kernel kernel;
357 uint32_t work_dim;
358 const size_t* global_work_offset;
359 const size_t* global_work_size;
360 const size_t* local_work_size;
361 uint32_t num_events_in_wait_list;
362 const cl_event* event_wait_list;
363 cl_event* event;
366 struct clEnqueueNativeKernel_params
368 cl_command_queue command_queue;
369 void (WINAPI* user_func)(void*);
370 void* args;
371 SIZE_T cb_args;
372 uint32_t num_mem_objects;
373 const cl_mem* mem_list;
374 const void** args_mem_loc;
375 uint32_t num_events_in_wait_list;
376 const cl_event* event_wait_list;
377 cl_event* event;
380 struct clEnqueueReadBuffer_params
382 cl_command_queue command_queue;
383 cl_mem buffer;
384 uint32_t blocking_read;
385 SIZE_T offset;
386 SIZE_T size;
387 void* ptr;
388 uint32_t num_events_in_wait_list;
389 const cl_event* event_wait_list;
390 cl_event* event;
393 struct clEnqueueReadBufferRect_params
395 cl_command_queue command_queue;
396 cl_mem buffer;
397 uint32_t blocking_read;
398 const size_t* buffer_origin;
399 const size_t* host_origin;
400 const size_t* region;
401 SIZE_T buffer_row_pitch;
402 SIZE_T buffer_slice_pitch;
403 SIZE_T host_row_pitch;
404 SIZE_T host_slice_pitch;
405 void* ptr;
406 uint32_t num_events_in_wait_list;
407 const cl_event* event_wait_list;
408 cl_event* event;
411 struct clEnqueueReadImage_params
413 cl_command_queue command_queue;
414 cl_mem image;
415 uint32_t blocking_read;
416 const size_t* origin;
417 const size_t* region;
418 SIZE_T row_pitch;
419 SIZE_T slice_pitch;
420 void* ptr;
421 uint32_t num_events_in_wait_list;
422 const cl_event* event_wait_list;
423 cl_event* event;
426 struct clEnqueueTask_params
428 cl_command_queue command_queue;
429 cl_kernel kernel;
430 uint32_t num_events_in_wait_list;
431 const cl_event* event_wait_list;
432 cl_event* event;
435 struct clEnqueueUnmapMemObject_params
437 cl_command_queue command_queue;
438 cl_mem memobj;
439 void* mapped_ptr;
440 uint32_t num_events_in_wait_list;
441 const cl_event* event_wait_list;
442 cl_event* event;
445 struct clEnqueueWaitForEvents_params
447 cl_command_queue command_queue;
448 uint32_t num_events;
449 const cl_event* event_list;
452 struct clEnqueueWriteBuffer_params
454 cl_command_queue command_queue;
455 cl_mem buffer;
456 uint32_t blocking_write;
457 SIZE_T offset;
458 SIZE_T size;
459 const void* ptr;
460 uint32_t num_events_in_wait_list;
461 const cl_event* event_wait_list;
462 cl_event* event;
465 struct clEnqueueWriteBufferRect_params
467 cl_command_queue command_queue;
468 cl_mem buffer;
469 uint32_t blocking_write;
470 const size_t* buffer_origin;
471 const size_t* host_origin;
472 const size_t* region;
473 SIZE_T buffer_row_pitch;
474 SIZE_T buffer_slice_pitch;
475 SIZE_T host_row_pitch;
476 SIZE_T host_slice_pitch;
477 const void* ptr;
478 uint32_t num_events_in_wait_list;
479 const cl_event* event_wait_list;
480 cl_event* event;
483 struct clEnqueueWriteImage_params
485 cl_command_queue command_queue;
486 cl_mem image;
487 uint32_t blocking_write;
488 const size_t* origin;
489 const size_t* region;
490 SIZE_T input_row_pitch;
491 SIZE_T input_slice_pitch;
492 const void* ptr;
493 uint32_t num_events_in_wait_list;
494 const cl_event* event_wait_list;
495 cl_event* event;
498 struct clFinish_params
500 cl_command_queue command_queue;
503 struct clFlush_params
505 cl_command_queue command_queue;
508 struct clGetCommandQueueInfo_params
510 cl_command_queue command_queue;
511 uint32_t param_name;
512 SIZE_T param_value_size;
513 void* param_value;
514 size_t* param_value_size_ret;
517 struct clGetContextInfo_params
519 cl_context context;
520 uint32_t param_name;
521 SIZE_T param_value_size;
522 void* param_value;
523 size_t* param_value_size_ret;
526 struct clGetDeviceIDs_params
528 cl_platform_id platform;
529 ULONGLONG device_type;
530 uint32_t num_entries;
531 cl_device_id* devices;
532 cl_uint* num_devices;
535 struct clGetDeviceInfo_params
537 cl_device_id device;
538 uint32_t param_name;
539 SIZE_T param_value_size;
540 void* param_value;
541 size_t* param_value_size_ret;
544 struct clGetEventInfo_params
546 cl_event event;
547 uint32_t param_name;
548 SIZE_T param_value_size;
549 void* param_value;
550 size_t* param_value_size_ret;
553 struct clGetEventProfilingInfo_params
555 cl_event event;
556 uint32_t param_name;
557 SIZE_T param_value_size;
558 void* param_value;
559 size_t* param_value_size_ret;
562 struct clGetImageInfo_params
564 cl_mem image;
565 uint32_t param_name;
566 SIZE_T param_value_size;
567 void* param_value;
568 size_t* param_value_size_ret;
571 struct clGetKernelArgInfo_params
573 cl_kernel kernel;
574 uint32_t arg_index;
575 uint32_t param_name;
576 SIZE_T param_value_size;
577 void* param_value;
578 size_t* param_value_size_ret;
581 struct clGetKernelInfo_params
583 cl_kernel kernel;
584 uint32_t param_name;
585 SIZE_T param_value_size;
586 void* param_value;
587 size_t* param_value_size_ret;
590 struct clGetKernelWorkGroupInfo_params
592 cl_kernel kernel;
593 cl_device_id device;
594 uint32_t param_name;
595 SIZE_T param_value_size;
596 void* param_value;
597 size_t* param_value_size_ret;
600 struct clGetMemObjectInfo_params
602 cl_mem memobj;
603 uint32_t param_name;
604 SIZE_T param_value_size;
605 void* param_value;
606 size_t* param_value_size_ret;
609 struct clGetPlatformIDs_params
611 uint32_t num_entries;
612 cl_platform_id* platforms;
613 cl_uint* num_platforms;
616 struct clGetPlatformInfo_params
618 cl_platform_id platform;
619 uint32_t param_name;
620 SIZE_T param_value_size;
621 void* param_value;
622 size_t* param_value_size_ret;
625 struct clGetProgramBuildInfo_params
627 cl_program program;
628 cl_device_id device;
629 uint32_t param_name;
630 SIZE_T param_value_size;
631 void* param_value;
632 size_t* param_value_size_ret;
635 struct clGetProgramInfo_params
637 cl_program program;
638 uint32_t param_name;
639 SIZE_T param_value_size;
640 void* param_value;
641 size_t* param_value_size_ret;
644 struct clGetSamplerInfo_params
646 cl_sampler sampler;
647 uint32_t param_name;
648 SIZE_T param_value_size;
649 void* param_value;
650 size_t* param_value_size_ret;
653 struct clGetSupportedImageFormats_params
655 cl_context context;
656 ULONGLONG flags;
657 uint32_t image_type;
658 uint32_t num_entries;
659 cl_image_format* image_formats;
660 cl_uint* num_image_formats;
663 struct clLinkProgram_params
665 cl_program* __retval;
666 cl_context context;
667 uint32_t num_devices;
668 const cl_device_id* device_list;
669 const char* options;
670 uint32_t num_input_programs;
671 const cl_program* input_programs;
672 void (WINAPI* pfn_notify)(cl_program program, void* user_data);
673 void* user_data;
674 cl_int* errcode_ret;
677 struct clReleaseCommandQueue_params
679 cl_command_queue command_queue;
682 struct clReleaseContext_params
684 cl_context context;
687 struct clReleaseDevice_params
689 cl_device_id device;
692 struct clReleaseEvent_params
694 cl_event event;
697 struct clReleaseKernel_params
699 cl_kernel kernel;
702 struct clReleaseMemObject_params
704 cl_mem memobj;
707 struct clReleaseProgram_params
709 cl_program program;
712 struct clReleaseSampler_params
714 cl_sampler sampler;
717 struct clRetainCommandQueue_params
719 cl_command_queue command_queue;
722 struct clRetainContext_params
724 cl_context context;
727 struct clRetainDevice_params
729 cl_device_id device;
732 struct clRetainEvent_params
734 cl_event event;
737 struct clRetainKernel_params
739 cl_kernel kernel;
742 struct clRetainMemObject_params
744 cl_mem memobj;
747 struct clRetainProgram_params
749 cl_program program;
752 struct clRetainSampler_params
754 cl_sampler sampler;
757 struct clSetEventCallback_params
759 cl_event event;
760 int32_t command_exec_callback_type;
761 void (WINAPI* pfn_notify)(cl_event event, cl_int event_command_status, void *user_data);
762 void* user_data;
765 struct clSetKernelArg_params
767 cl_kernel kernel;
768 uint32_t arg_index;
769 SIZE_T arg_size;
770 const void* arg_value;
773 struct clSetMemObjectDestructorCallback_params
775 cl_mem memobj;
776 void (WINAPI* pfn_notify)(cl_mem memobj, void* user_data);
777 void* user_data;
780 struct clSetUserEventStatus_params
782 cl_event event;
783 int32_t execution_status;
786 struct clUnloadCompiler_params
790 struct clUnloadPlatformCompiler_params
792 cl_platform_id platform;
795 struct clWaitForEvents_params
797 uint32_t num_events;
798 const cl_event* event_list;
801 enum opencl_funcs
803 unix_clBuildProgram,
804 unix_clCompileProgram,
805 unix_clCreateBuffer,
806 unix_clCreateCommandQueue,
807 unix_clCreateContext,
808 unix_clCreateContextFromType,
809 unix_clCreateImage,
810 unix_clCreateImage2D,
811 unix_clCreateImage3D,
812 unix_clCreateKernel,
813 unix_clCreateKernelsInProgram,
814 unix_clCreateProgramWithBinary,
815 unix_clCreateProgramWithBuiltInKernels,
816 unix_clCreateProgramWithSource,
817 unix_clCreateSampler,
818 unix_clCreateSubBuffer,
819 unix_clCreateSubDevices,
820 unix_clCreateUserEvent,
821 unix_clEnqueueBarrier,
822 unix_clEnqueueBarrierWithWaitList,
823 unix_clEnqueueCopyBuffer,
824 unix_clEnqueueCopyBufferRect,
825 unix_clEnqueueCopyBufferToImage,
826 unix_clEnqueueCopyImage,
827 unix_clEnqueueCopyImageToBuffer,
828 unix_clEnqueueFillBuffer,
829 unix_clEnqueueFillImage,
830 unix_clEnqueueMapBuffer,
831 unix_clEnqueueMapImage,
832 unix_clEnqueueMarker,
833 unix_clEnqueueMarkerWithWaitList,
834 unix_clEnqueueMigrateMemObjects,
835 unix_clEnqueueNDRangeKernel,
836 unix_clEnqueueNativeKernel,
837 unix_clEnqueueReadBuffer,
838 unix_clEnqueueReadBufferRect,
839 unix_clEnqueueReadImage,
840 unix_clEnqueueTask,
841 unix_clEnqueueUnmapMemObject,
842 unix_clEnqueueWaitForEvents,
843 unix_clEnqueueWriteBuffer,
844 unix_clEnqueueWriteBufferRect,
845 unix_clEnqueueWriteImage,
846 unix_clFinish,
847 unix_clFlush,
848 unix_clGetCommandQueueInfo,
849 unix_clGetContextInfo,
850 unix_clGetDeviceIDs,
851 unix_clGetDeviceInfo,
852 unix_clGetEventInfo,
853 unix_clGetEventProfilingInfo,
854 unix_clGetImageInfo,
855 unix_clGetKernelArgInfo,
856 unix_clGetKernelInfo,
857 unix_clGetKernelWorkGroupInfo,
858 unix_clGetMemObjectInfo,
859 unix_clGetPlatformIDs,
860 unix_clGetPlatformInfo,
861 unix_clGetProgramBuildInfo,
862 unix_clGetProgramInfo,
863 unix_clGetSamplerInfo,
864 unix_clGetSupportedImageFormats,
865 unix_clLinkProgram,
866 unix_clReleaseCommandQueue,
867 unix_clReleaseContext,
868 unix_clReleaseDevice,
869 unix_clReleaseEvent,
870 unix_clReleaseKernel,
871 unix_clReleaseMemObject,
872 unix_clReleaseProgram,
873 unix_clReleaseSampler,
874 unix_clRetainCommandQueue,
875 unix_clRetainContext,
876 unix_clRetainDevice,
877 unix_clRetainEvent,
878 unix_clRetainKernel,
879 unix_clRetainMemObject,
880 unix_clRetainProgram,
881 unix_clRetainSampler,
882 unix_clSetEventCallback,
883 unix_clSetKernelArg,
884 unix_clSetMemObjectDestructorCallback,
885 unix_clSetUserEventStatus,
886 unix_clUnloadCompiler,
887 unix_clUnloadPlatformCompiler,
888 unix_clWaitForEvents,