Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/angle
Path: blob/main_old/src/libGLESv2/cl_stubs_autogen.h
1693 views
1
// GENERATED FILE - DO NOT EDIT.
2
// Generated by generate_entry_points.py using data from cl.xml.
3
//
4
// Copyright 2021 The ANGLE Project Authors. All rights reserved.
5
// Use of this source code is governed by a BSD-style license that can be
6
// found in the LICENSE file.
7
//
8
// cl_stubs_autogen.h: Stubs for CL entry points.
9
10
#ifndef LIBGLESV2_CL_STUBS_AUTOGEN_H_
11
#define LIBGLESV2_CL_STUBS_AUTOGEN_H_
12
13
#include "libANGLE/CLtypes.h"
14
15
namespace cl
16
{
17
cl_int IcdGetPlatformIDsKHR(cl_uint num_entries, cl_platform_id *platforms, cl_uint *num_platforms);
18
cl_int GetPlatformIDs(cl_uint num_entries, cl_platform_id *platforms, cl_uint *num_platforms);
19
cl_int GetPlatformInfo(cl_platform_id platform,
20
PlatformInfo param_namePacked,
21
size_t param_value_size,
22
void *param_value,
23
size_t *param_value_size_ret);
24
cl_int GetDeviceIDs(cl_platform_id platform,
25
DeviceType device_typePacked,
26
cl_uint num_entries,
27
cl_device_id *devices,
28
cl_uint *num_devices);
29
cl_int GetDeviceInfo(cl_device_id device,
30
DeviceInfo param_namePacked,
31
size_t param_value_size,
32
void *param_value,
33
size_t *param_value_size_ret);
34
cl_int CreateSubDevices(cl_device_id in_device,
35
const cl_device_partition_property *properties,
36
cl_uint num_devices,
37
cl_device_id *out_devices,
38
cl_uint *num_devices_ret);
39
cl_int RetainDevice(cl_device_id device);
40
cl_int ReleaseDevice(cl_device_id device);
41
cl_int SetDefaultDeviceCommandQueue(cl_context context,
42
cl_device_id device,
43
cl_command_queue command_queue);
44
cl_int GetDeviceAndHostTimer(cl_device_id device,
45
cl_ulong *device_timestamp,
46
cl_ulong *host_timestamp);
47
cl_int GetHostTimer(cl_device_id device, cl_ulong *host_timestamp);
48
cl_context CreateContext(const cl_context_properties *properties,
49
cl_uint num_devices,
50
const cl_device_id *devices,
51
void(CL_CALLBACK *pfn_notify)(const char *errinfo,
52
const void *private_info,
53
size_t cb,
54
void *user_data),
55
void *user_data,
56
cl_int &errorCode);
57
cl_context CreateContextFromType(const cl_context_properties *properties,
58
DeviceType device_typePacked,
59
void(CL_CALLBACK *pfn_notify)(const char *errinfo,
60
const void *private_info,
61
size_t cb,
62
void *user_data),
63
void *user_data,
64
cl_int &errorCode);
65
cl_int RetainContext(cl_context context);
66
cl_int ReleaseContext(cl_context context);
67
cl_int GetContextInfo(cl_context context,
68
ContextInfo param_namePacked,
69
size_t param_value_size,
70
void *param_value,
71
size_t *param_value_size_ret);
72
cl_int SetContextDestructorCallback(cl_context context,
73
void(CL_CALLBACK *pfn_notify)(cl_context context,
74
void *user_data),
75
void *user_data);
76
cl_command_queue CreateCommandQueueWithProperties(cl_context context,
77
cl_device_id device,
78
const cl_queue_properties *properties,
79
cl_int &errorCode);
80
cl_int RetainCommandQueue(cl_command_queue command_queue);
81
cl_int ReleaseCommandQueue(cl_command_queue command_queue);
82
cl_int GetCommandQueueInfo(cl_command_queue command_queue,
83
CommandQueueInfo param_namePacked,
84
size_t param_value_size,
85
void *param_value,
86
size_t *param_value_size_ret);
87
cl_mem CreateBuffer(cl_context context,
88
MemFlags flagsPacked,
89
size_t size,
90
void *host_ptr,
91
cl_int &errorCode);
92
cl_mem CreateBufferWithProperties(cl_context context,
93
const cl_mem_properties *properties,
94
MemFlags flagsPacked,
95
size_t size,
96
void *host_ptr,
97
cl_int &errorCode);
98
cl_mem CreateSubBuffer(cl_mem buffer,
99
MemFlags flagsPacked,
100
cl_buffer_create_type buffer_create_type,
101
const void *buffer_create_info,
102
cl_int &errorCode);
103
cl_mem CreateImage(cl_context context,
104
MemFlags flagsPacked,
105
const cl_image_format *image_format,
106
const cl_image_desc *image_desc,
107
void *host_ptr,
108
cl_int &errorCode);
109
cl_mem CreateImageWithProperties(cl_context context,
110
const cl_mem_properties *properties,
111
MemFlags flagsPacked,
112
const cl_image_format *image_format,
113
const cl_image_desc *image_desc,
114
void *host_ptr,
115
cl_int &errorCode);
116
cl_mem CreatePipe(cl_context context,
117
MemFlags flagsPacked,
118
cl_uint pipe_packet_size,
119
cl_uint pipe_max_packets,
120
const cl_pipe_properties *properties,
121
cl_int &errorCode);
122
cl_int RetainMemObject(cl_mem memobj);
123
cl_int ReleaseMemObject(cl_mem memobj);
124
cl_int GetSupportedImageFormats(cl_context context,
125
MemFlags flagsPacked,
126
MemObjectType image_typePacked,
127
cl_uint num_entries,
128
cl_image_format *image_formats,
129
cl_uint *num_image_formats);
130
cl_int GetMemObjectInfo(cl_mem memobj,
131
MemInfo param_namePacked,
132
size_t param_value_size,
133
void *param_value,
134
size_t *param_value_size_ret);
135
cl_int GetImageInfo(cl_mem image,
136
ImageInfo param_namePacked,
137
size_t param_value_size,
138
void *param_value,
139
size_t *param_value_size_ret);
140
cl_int GetPipeInfo(cl_mem pipe,
141
PipeInfo param_namePacked,
142
size_t param_value_size,
143
void *param_value,
144
size_t *param_value_size_ret);
145
cl_int SetMemObjectDestructorCallback(cl_mem memobj,
146
void(CL_CALLBACK *pfn_notify)(cl_mem memobj, void *user_data),
147
void *user_data);
148
void *SVMAlloc(cl_context context, SVM_MemFlags flagsPacked, size_t size, cl_uint alignment);
149
void SVMFree(cl_context context, void *svm_pointer);
150
cl_sampler CreateSamplerWithProperties(cl_context context,
151
const cl_sampler_properties *sampler_properties,
152
cl_int &errorCode);
153
cl_int RetainSampler(cl_sampler sampler);
154
cl_int ReleaseSampler(cl_sampler sampler);
155
cl_int GetSamplerInfo(cl_sampler sampler,
156
SamplerInfo param_namePacked,
157
size_t param_value_size,
158
void *param_value,
159
size_t *param_value_size_ret);
160
cl_program CreateProgramWithSource(cl_context context,
161
cl_uint count,
162
const char **strings,
163
const size_t *lengths,
164
cl_int &errorCode);
165
cl_program CreateProgramWithBinary(cl_context context,
166
cl_uint num_devices,
167
const cl_device_id *device_list,
168
const size_t *lengths,
169
const unsigned char **binaries,
170
cl_int *binary_status,
171
cl_int &errorCode);
172
cl_program CreateProgramWithBuiltInKernels(cl_context context,
173
cl_uint num_devices,
174
const cl_device_id *device_list,
175
const char *kernel_names,
176
cl_int &errorCode);
177
cl_program CreateProgramWithIL(cl_context context,
178
const void *il,
179
size_t length,
180
cl_int &errorCode);
181
cl_int RetainProgram(cl_program program);
182
cl_int ReleaseProgram(cl_program program);
183
cl_int BuildProgram(cl_program program,
184
cl_uint num_devices,
185
const cl_device_id *device_list,
186
const char *options,
187
void(CL_CALLBACK *pfn_notify)(cl_program program, void *user_data),
188
void *user_data);
189
cl_int CompileProgram(cl_program program,
190
cl_uint num_devices,
191
const cl_device_id *device_list,
192
const char *options,
193
cl_uint num_input_headers,
194
const cl_program *input_headers,
195
const char **header_include_names,
196
void(CL_CALLBACK *pfn_notify)(cl_program program, void *user_data),
197
void *user_data);
198
cl_program LinkProgram(cl_context context,
199
cl_uint num_devices,
200
const cl_device_id *device_list,
201
const char *options,
202
cl_uint num_input_programs,
203
const cl_program *input_programs,
204
void(CL_CALLBACK *pfn_notify)(cl_program program, void *user_data),
205
void *user_data,
206
cl_int &errorCode);
207
cl_int SetProgramReleaseCallback(cl_program program,
208
void(CL_CALLBACK *pfn_notify)(cl_program program, void *user_data),
209
void *user_data);
210
cl_int SetProgramSpecializationConstant(cl_program program,
211
cl_uint spec_id,
212
size_t spec_size,
213
const void *spec_value);
214
cl_int UnloadPlatformCompiler(cl_platform_id platform);
215
cl_int GetProgramInfo(cl_program program,
216
ProgramInfo param_namePacked,
217
size_t param_value_size,
218
void *param_value,
219
size_t *param_value_size_ret);
220
cl_int GetProgramBuildInfo(cl_program program,
221
cl_device_id device,
222
ProgramBuildInfo param_namePacked,
223
size_t param_value_size,
224
void *param_value,
225
size_t *param_value_size_ret);
226
cl_kernel CreateKernel(cl_program program, const char *kernel_name, cl_int &errorCode);
227
cl_int CreateKernelsInProgram(cl_program program,
228
cl_uint num_kernels,
229
cl_kernel *kernels,
230
cl_uint *num_kernels_ret);
231
cl_kernel CloneKernel(cl_kernel source_kernel, cl_int &errorCode);
232
cl_int RetainKernel(cl_kernel kernel);
233
cl_int ReleaseKernel(cl_kernel kernel);
234
cl_int SetKernelArg(cl_kernel kernel, cl_uint arg_index, size_t arg_size, const void *arg_value);
235
cl_int SetKernelArgSVMPointer(cl_kernel kernel, cl_uint arg_index, const void *arg_value);
236
cl_int SetKernelExecInfo(cl_kernel kernel,
237
KernelExecInfo param_namePacked,
238
size_t param_value_size,
239
const void *param_value);
240
cl_int GetKernelInfo(cl_kernel kernel,
241
KernelInfo param_namePacked,
242
size_t param_value_size,
243
void *param_value,
244
size_t *param_value_size_ret);
245
cl_int GetKernelArgInfo(cl_kernel kernel,
246
cl_uint arg_index,
247
KernelArgInfo param_namePacked,
248
size_t param_value_size,
249
void *param_value,
250
size_t *param_value_size_ret);
251
cl_int GetKernelWorkGroupInfo(cl_kernel kernel,
252
cl_device_id device,
253
KernelWorkGroupInfo param_namePacked,
254
size_t param_value_size,
255
void *param_value,
256
size_t *param_value_size_ret);
257
cl_int GetKernelSubGroupInfo(cl_kernel kernel,
258
cl_device_id device,
259
KernelSubGroupInfo param_namePacked,
260
size_t input_value_size,
261
const void *input_value,
262
size_t param_value_size,
263
void *param_value,
264
size_t *param_value_size_ret);
265
cl_int WaitForEvents(cl_uint num_events, const cl_event *event_list);
266
cl_int GetEventInfo(cl_event event,
267
EventInfo param_namePacked,
268
size_t param_value_size,
269
void *param_value,
270
size_t *param_value_size_ret);
271
cl_event CreateUserEvent(cl_context context, cl_int &errorCode);
272
cl_int RetainEvent(cl_event event);
273
cl_int ReleaseEvent(cl_event event);
274
cl_int SetUserEventStatus(cl_event event, cl_int execution_status);
275
cl_int SetEventCallback(cl_event event,
276
cl_int command_exec_callback_type,
277
void(CL_CALLBACK *pfn_notify)(cl_event event,
278
cl_int event_command_status,
279
void *user_data),
280
void *user_data);
281
cl_int GetEventProfilingInfo(cl_event event,
282
ProfilingInfo param_namePacked,
283
size_t param_value_size,
284
void *param_value,
285
size_t *param_value_size_ret);
286
cl_int Flush(cl_command_queue command_queue);
287
cl_int Finish(cl_command_queue command_queue);
288
cl_int EnqueueReadBuffer(cl_command_queue command_queue,
289
cl_mem buffer,
290
cl_bool blocking_read,
291
size_t offset,
292
size_t size,
293
void *ptr,
294
cl_uint num_events_in_wait_list,
295
const cl_event *event_wait_list,
296
cl_event *event);
297
cl_int EnqueueReadBufferRect(cl_command_queue command_queue,
298
cl_mem buffer,
299
cl_bool blocking_read,
300
const size_t *buffer_origin,
301
const size_t *host_origin,
302
const size_t *region,
303
size_t buffer_row_pitch,
304
size_t buffer_slice_pitch,
305
size_t host_row_pitch,
306
size_t host_slice_pitch,
307
void *ptr,
308
cl_uint num_events_in_wait_list,
309
const cl_event *event_wait_list,
310
cl_event *event);
311
cl_int EnqueueWriteBuffer(cl_command_queue command_queue,
312
cl_mem buffer,
313
cl_bool blocking_write,
314
size_t offset,
315
size_t size,
316
const void *ptr,
317
cl_uint num_events_in_wait_list,
318
const cl_event *event_wait_list,
319
cl_event *event);
320
cl_int EnqueueWriteBufferRect(cl_command_queue command_queue,
321
cl_mem buffer,
322
cl_bool blocking_write,
323
const size_t *buffer_origin,
324
const size_t *host_origin,
325
const size_t *region,
326
size_t buffer_row_pitch,
327
size_t buffer_slice_pitch,
328
size_t host_row_pitch,
329
size_t host_slice_pitch,
330
const void *ptr,
331
cl_uint num_events_in_wait_list,
332
const cl_event *event_wait_list,
333
cl_event *event);
334
cl_int EnqueueFillBuffer(cl_command_queue command_queue,
335
cl_mem buffer,
336
const void *pattern,
337
size_t pattern_size,
338
size_t offset,
339
size_t size,
340
cl_uint num_events_in_wait_list,
341
const cl_event *event_wait_list,
342
cl_event *event);
343
cl_int EnqueueCopyBuffer(cl_command_queue command_queue,
344
cl_mem src_buffer,
345
cl_mem dst_buffer,
346
size_t src_offset,
347
size_t dst_offset,
348
size_t size,
349
cl_uint num_events_in_wait_list,
350
const cl_event *event_wait_list,
351
cl_event *event);
352
cl_int EnqueueCopyBufferRect(cl_command_queue command_queue,
353
cl_mem src_buffer,
354
cl_mem dst_buffer,
355
const size_t *src_origin,
356
const size_t *dst_origin,
357
const size_t *region,
358
size_t src_row_pitch,
359
size_t src_slice_pitch,
360
size_t dst_row_pitch,
361
size_t dst_slice_pitch,
362
cl_uint num_events_in_wait_list,
363
const cl_event *event_wait_list,
364
cl_event *event);
365
cl_int EnqueueReadImage(cl_command_queue command_queue,
366
cl_mem image,
367
cl_bool blocking_read,
368
const size_t *origin,
369
const size_t *region,
370
size_t row_pitch,
371
size_t slice_pitch,
372
void *ptr,
373
cl_uint num_events_in_wait_list,
374
const cl_event *event_wait_list,
375
cl_event *event);
376
cl_int EnqueueWriteImage(cl_command_queue command_queue,
377
cl_mem image,
378
cl_bool blocking_write,
379
const size_t *origin,
380
const size_t *region,
381
size_t input_row_pitch,
382
size_t input_slice_pitch,
383
const void *ptr,
384
cl_uint num_events_in_wait_list,
385
const cl_event *event_wait_list,
386
cl_event *event);
387
cl_int EnqueueFillImage(cl_command_queue command_queue,
388
cl_mem image,
389
const void *fill_color,
390
const size_t *origin,
391
const size_t *region,
392
cl_uint num_events_in_wait_list,
393
const cl_event *event_wait_list,
394
cl_event *event);
395
cl_int EnqueueCopyImage(cl_command_queue command_queue,
396
cl_mem src_image,
397
cl_mem dst_image,
398
const size_t *src_origin,
399
const size_t *dst_origin,
400
const size_t *region,
401
cl_uint num_events_in_wait_list,
402
const cl_event *event_wait_list,
403
cl_event *event);
404
cl_int EnqueueCopyImageToBuffer(cl_command_queue command_queue,
405
cl_mem src_image,
406
cl_mem dst_buffer,
407
const size_t *src_origin,
408
const size_t *region,
409
size_t dst_offset,
410
cl_uint num_events_in_wait_list,
411
const cl_event *event_wait_list,
412
cl_event *event);
413
cl_int EnqueueCopyBufferToImage(cl_command_queue command_queue,
414
cl_mem src_buffer,
415
cl_mem dst_image,
416
size_t src_offset,
417
const size_t *dst_origin,
418
const size_t *region,
419
cl_uint num_events_in_wait_list,
420
const cl_event *event_wait_list,
421
cl_event *event);
422
void *EnqueueMapBuffer(cl_command_queue command_queue,
423
cl_mem buffer,
424
cl_bool blocking_map,
425
MapFlags map_flagsPacked,
426
size_t offset,
427
size_t size,
428
cl_uint num_events_in_wait_list,
429
const cl_event *event_wait_list,
430
cl_event *event,
431
cl_int &errorCode);
432
void *EnqueueMapImage(cl_command_queue command_queue,
433
cl_mem image,
434
cl_bool blocking_map,
435
MapFlags map_flagsPacked,
436
const size_t *origin,
437
const size_t *region,
438
size_t *image_row_pitch,
439
size_t *image_slice_pitch,
440
cl_uint num_events_in_wait_list,
441
const cl_event *event_wait_list,
442
cl_event *event,
443
cl_int &errorCode);
444
cl_int EnqueueUnmapMemObject(cl_command_queue command_queue,
445
cl_mem memobj,
446
void *mapped_ptr,
447
cl_uint num_events_in_wait_list,
448
const cl_event *event_wait_list,
449
cl_event *event);
450
cl_int EnqueueMigrateMemObjects(cl_command_queue command_queue,
451
cl_uint num_mem_objects,
452
const cl_mem *mem_objects,
453
MemMigrationFlags flagsPacked,
454
cl_uint num_events_in_wait_list,
455
const cl_event *event_wait_list,
456
cl_event *event);
457
cl_int EnqueueNDRangeKernel(cl_command_queue command_queue,
458
cl_kernel kernel,
459
cl_uint work_dim,
460
const size_t *global_work_offset,
461
const size_t *global_work_size,
462
const size_t *local_work_size,
463
cl_uint num_events_in_wait_list,
464
const cl_event *event_wait_list,
465
cl_event *event);
466
cl_int EnqueueNativeKernel(cl_command_queue command_queue,
467
void(CL_CALLBACK *user_func)(void *),
468
void *args,
469
size_t cb_args,
470
cl_uint num_mem_objects,
471
const cl_mem *mem_list,
472
const void **args_mem_loc,
473
cl_uint num_events_in_wait_list,
474
const cl_event *event_wait_list,
475
cl_event *event);
476
cl_int EnqueueMarkerWithWaitList(cl_command_queue command_queue,
477
cl_uint num_events_in_wait_list,
478
const cl_event *event_wait_list,
479
cl_event *event);
480
cl_int EnqueueBarrierWithWaitList(cl_command_queue command_queue,
481
cl_uint num_events_in_wait_list,
482
const cl_event *event_wait_list,
483
cl_event *event);
484
cl_int EnqueueSVMFree(cl_command_queue command_queue,
485
cl_uint num_svm_pointers,
486
void *svm_pointers[],
487
void(CL_CALLBACK *pfn_free_func)(cl_command_queue queue,
488
cl_uint num_svm_pointers,
489
void *svm_pointers[],
490
void *user_data),
491
void *user_data,
492
cl_uint num_events_in_wait_list,
493
const cl_event *event_wait_list,
494
cl_event *event);
495
cl_int EnqueueSVMMemcpy(cl_command_queue command_queue,
496
cl_bool blocking_copy,
497
void *dst_ptr,
498
const void *src_ptr,
499
size_t size,
500
cl_uint num_events_in_wait_list,
501
const cl_event *event_wait_list,
502
cl_event *event);
503
cl_int EnqueueSVMMemFill(cl_command_queue command_queue,
504
void *svm_ptr,
505
const void *pattern,
506
size_t pattern_size,
507
size_t size,
508
cl_uint num_events_in_wait_list,
509
const cl_event *event_wait_list,
510
cl_event *event);
511
cl_int EnqueueSVMMap(cl_command_queue command_queue,
512
cl_bool blocking_map,
513
MapFlags flagsPacked,
514
void *svm_ptr,
515
size_t size,
516
cl_uint num_events_in_wait_list,
517
const cl_event *event_wait_list,
518
cl_event *event);
519
cl_int EnqueueSVMUnmap(cl_command_queue command_queue,
520
void *svm_ptr,
521
cl_uint num_events_in_wait_list,
522
const cl_event *event_wait_list,
523
cl_event *event);
524
cl_int EnqueueSVMMigrateMem(cl_command_queue command_queue,
525
cl_uint num_svm_pointers,
526
const void **svm_pointers,
527
const size_t *sizes,
528
MemMigrationFlags flagsPacked,
529
cl_uint num_events_in_wait_list,
530
const cl_event *event_wait_list,
531
cl_event *event);
532
void *GetExtensionFunctionAddressForPlatform(cl_platform_id platform, const char *func_name);
533
cl_int SetCommandQueueProperty(cl_command_queue command_queue,
534
CommandQueueProperties propertiesPacked,
535
cl_bool enable,
536
cl_command_queue_properties *old_properties);
537
cl_mem CreateImage2D(cl_context context,
538
MemFlags flagsPacked,
539
const cl_image_format *image_format,
540
size_t image_width,
541
size_t image_height,
542
size_t image_row_pitch,
543
void *host_ptr,
544
cl_int &errorCode);
545
cl_mem CreateImage3D(cl_context context,
546
MemFlags flagsPacked,
547
const cl_image_format *image_format,
548
size_t image_width,
549
size_t image_height,
550
size_t image_depth,
551
size_t image_row_pitch,
552
size_t image_slice_pitch,
553
void *host_ptr,
554
cl_int &errorCode);
555
cl_int EnqueueMarker(cl_command_queue command_queue, cl_event *event);
556
cl_int EnqueueWaitForEvents(cl_command_queue command_queue,
557
cl_uint num_events,
558
const cl_event *event_list);
559
cl_int EnqueueBarrier(cl_command_queue command_queue);
560
cl_int UnloadCompiler();
561
void *GetExtensionFunctionAddress(const char *func_name);
562
cl_command_queue CreateCommandQueue(cl_context context,
563
cl_device_id device,
564
CommandQueueProperties propertiesPacked,
565
cl_int &errorCode);
566
cl_sampler CreateSampler(cl_context context,
567
cl_bool normalized_coords,
568
AddressingMode addressing_modePacked,
569
FilterMode filter_modePacked,
570
cl_int &errorCode);
571
cl_int EnqueueTask(cl_command_queue command_queue,
572
cl_kernel kernel,
573
cl_uint num_events_in_wait_list,
574
const cl_event *event_wait_list,
575
cl_event *event);
576
} // namespace cl
577
#endif // LIBGLESV2_CL_STUBS_AUTOGEN_H_
578
579