Path: blob/main_old/src/libGLESv2/entry_points_cl_autogen.h
1693 views
// GENERATED FILE - DO NOT EDIT.1// Generated by generate_entry_points.py using data from cl.xml.2//3// Copyright 2020 The ANGLE Project Authors. All rights reserved.4// Use of this source code is governed by a BSD-style license that can be5// found in the LICENSE file.6//7// entry_points_cl_autogen.h:8// Defines the CL entry points.910#ifndef LIBGLESV2_ENTRY_POINTS_CL_AUTOGEN_H_11#define LIBGLESV2_ENTRY_POINTS_CL_AUTOGEN_H_1213#include "angle_cl.h"1415namespace cl16{1718// CL 1.019cl_int CL_API_CALL clGetPlatformIDs(cl_uint num_entries,20cl_platform_id *platforms,21cl_uint *num_platforms);22cl_int CL_API_CALL clGetPlatformInfo(cl_platform_id platform,23cl_platform_info param_name,24size_t param_value_size,25void *param_value,26size_t *param_value_size_ret);27cl_int CL_API_CALL clGetDeviceIDs(cl_platform_id platform,28cl_device_type device_type,29cl_uint num_entries,30cl_device_id *devices,31cl_uint *num_devices);32cl_int CL_API_CALL clGetDeviceInfo(cl_device_id device,33cl_device_info param_name,34size_t param_value_size,35void *param_value,36size_t *param_value_size_ret);37cl_context CL_API_CALL clCreateContext(const cl_context_properties *properties,38cl_uint num_devices,39const cl_device_id *devices,40void(CL_CALLBACK *pfn_notify)(const char *errinfo,41const void *private_info,42size_t cb,43void *user_data),44void *user_data,45cl_int *errcode_ret);46cl_context CL_API_CALL47clCreateContextFromType(const cl_context_properties *properties,48cl_device_type device_type,49void(CL_CALLBACK *pfn_notify)(const char *errinfo,50const void *private_info,51size_t cb,52void *user_data),53void *user_data,54cl_int *errcode_ret);55cl_int CL_API_CALL clRetainContext(cl_context context);56cl_int CL_API_CALL clReleaseContext(cl_context context);57cl_int CL_API_CALL clGetContextInfo(cl_context context,58cl_context_info param_name,59size_t param_value_size,60void *param_value,61size_t *param_value_size_ret);62cl_int CL_API_CALL clRetainCommandQueue(cl_command_queue command_queue);63cl_int CL_API_CALL clReleaseCommandQueue(cl_command_queue command_queue);64cl_int CL_API_CALL clGetCommandQueueInfo(cl_command_queue command_queue,65cl_command_queue_info param_name,66size_t param_value_size,67void *param_value,68size_t *param_value_size_ret);69cl_mem CL_API_CALL clCreateBuffer(cl_context context,70cl_mem_flags flags,71size_t size,72void *host_ptr,73cl_int *errcode_ret);74cl_int CL_API_CALL clRetainMemObject(cl_mem memobj);75cl_int CL_API_CALL clReleaseMemObject(cl_mem memobj);76cl_int CL_API_CALL clGetSupportedImageFormats(cl_context context,77cl_mem_flags flags,78cl_mem_object_type image_type,79cl_uint num_entries,80cl_image_format *image_formats,81cl_uint *num_image_formats);82cl_int CL_API_CALL clGetMemObjectInfo(cl_mem memobj,83cl_mem_info param_name,84size_t param_value_size,85void *param_value,86size_t *param_value_size_ret);87cl_int CL_API_CALL clGetImageInfo(cl_mem image,88cl_image_info param_name,89size_t param_value_size,90void *param_value,91size_t *param_value_size_ret);92cl_int CL_API_CALL clRetainSampler(cl_sampler sampler);93cl_int CL_API_CALL clReleaseSampler(cl_sampler sampler);94cl_int CL_API_CALL clGetSamplerInfo(cl_sampler sampler,95cl_sampler_info param_name,96size_t param_value_size,97void *param_value,98size_t *param_value_size_ret);99cl_program CL_API_CALL clCreateProgramWithSource(cl_context context,100cl_uint count,101const char **strings,102const size_t *lengths,103cl_int *errcode_ret);104cl_program CL_API_CALL clCreateProgramWithBinary(cl_context context,105cl_uint num_devices,106const cl_device_id *device_list,107const size_t *lengths,108const unsigned char **binaries,109cl_int *binary_status,110cl_int *errcode_ret);111cl_int CL_API_CALL clRetainProgram(cl_program program);112cl_int CL_API_CALL clReleaseProgram(cl_program program);113cl_int CL_API_CALL clBuildProgram(cl_program program,114cl_uint num_devices,115const cl_device_id *device_list,116const char *options,117void(CL_CALLBACK *pfn_notify)(cl_program program,118void *user_data),119void *user_data);120cl_int CL_API_CALL clGetProgramInfo(cl_program program,121cl_program_info param_name,122size_t param_value_size,123void *param_value,124size_t *param_value_size_ret);125cl_int CL_API_CALL clGetProgramBuildInfo(cl_program program,126cl_device_id device,127cl_program_build_info param_name,128size_t param_value_size,129void *param_value,130size_t *param_value_size_ret);131cl_kernel CL_API_CALL clCreateKernel(cl_program program,132const char *kernel_name,133cl_int *errcode_ret);134cl_int CL_API_CALL clCreateKernelsInProgram(cl_program program,135cl_uint num_kernels,136cl_kernel *kernels,137cl_uint *num_kernels_ret);138cl_int CL_API_CALL clRetainKernel(cl_kernel kernel);139cl_int CL_API_CALL clReleaseKernel(cl_kernel kernel);140cl_int CL_API_CALL clSetKernelArg(cl_kernel kernel,141cl_uint arg_index,142size_t arg_size,143const void *arg_value);144cl_int CL_API_CALL clGetKernelInfo(cl_kernel kernel,145cl_kernel_info param_name,146size_t param_value_size,147void *param_value,148size_t *param_value_size_ret);149cl_int CL_API_CALL clGetKernelWorkGroupInfo(cl_kernel kernel,150cl_device_id device,151cl_kernel_work_group_info param_name,152size_t param_value_size,153void *param_value,154size_t *param_value_size_ret);155cl_int CL_API_CALL clWaitForEvents(cl_uint num_events, const cl_event *event_list);156cl_int CL_API_CALL clGetEventInfo(cl_event event,157cl_event_info param_name,158size_t param_value_size,159void *param_value,160size_t *param_value_size_ret);161cl_int CL_API_CALL clRetainEvent(cl_event event);162cl_int CL_API_CALL clReleaseEvent(cl_event event);163cl_int CL_API_CALL clGetEventProfilingInfo(cl_event event,164cl_profiling_info param_name,165size_t param_value_size,166void *param_value,167size_t *param_value_size_ret);168cl_int CL_API_CALL clFlush(cl_command_queue command_queue);169cl_int CL_API_CALL clFinish(cl_command_queue command_queue);170cl_int CL_API_CALL clEnqueueReadBuffer(cl_command_queue command_queue,171cl_mem buffer,172cl_bool blocking_read,173size_t offset,174size_t size,175void *ptr,176cl_uint num_events_in_wait_list,177const cl_event *event_wait_list,178cl_event *event);179cl_int CL_API_CALL clEnqueueWriteBuffer(cl_command_queue command_queue,180cl_mem buffer,181cl_bool blocking_write,182size_t offset,183size_t size,184const void *ptr,185cl_uint num_events_in_wait_list,186const cl_event *event_wait_list,187cl_event *event);188cl_int CL_API_CALL clEnqueueCopyBuffer(cl_command_queue command_queue,189cl_mem src_buffer,190cl_mem dst_buffer,191size_t src_offset,192size_t dst_offset,193size_t size,194cl_uint num_events_in_wait_list,195const cl_event *event_wait_list,196cl_event *event);197cl_int CL_API_CALL clEnqueueReadImage(cl_command_queue command_queue,198cl_mem image,199cl_bool blocking_read,200const size_t *origin,201const size_t *region,202size_t row_pitch,203size_t slice_pitch,204void *ptr,205cl_uint num_events_in_wait_list,206const cl_event *event_wait_list,207cl_event *event);208cl_int CL_API_CALL clEnqueueWriteImage(cl_command_queue command_queue,209cl_mem image,210cl_bool blocking_write,211const size_t *origin,212const size_t *region,213size_t input_row_pitch,214size_t input_slice_pitch,215const void *ptr,216cl_uint num_events_in_wait_list,217const cl_event *event_wait_list,218cl_event *event);219cl_int CL_API_CALL clEnqueueCopyImage(cl_command_queue command_queue,220cl_mem src_image,221cl_mem dst_image,222const size_t *src_origin,223const size_t *dst_origin,224const size_t *region,225cl_uint num_events_in_wait_list,226const cl_event *event_wait_list,227cl_event *event);228cl_int CL_API_CALL clEnqueueCopyImageToBuffer(cl_command_queue command_queue,229cl_mem src_image,230cl_mem dst_buffer,231const size_t *src_origin,232const size_t *region,233size_t dst_offset,234cl_uint num_events_in_wait_list,235const cl_event *event_wait_list,236cl_event *event);237cl_int CL_API_CALL clEnqueueCopyBufferToImage(cl_command_queue command_queue,238cl_mem src_buffer,239cl_mem dst_image,240size_t src_offset,241const size_t *dst_origin,242const size_t *region,243cl_uint num_events_in_wait_list,244const cl_event *event_wait_list,245cl_event *event);246void *CL_API_CALL clEnqueueMapBuffer(cl_command_queue command_queue,247cl_mem buffer,248cl_bool blocking_map,249cl_map_flags map_flags,250size_t offset,251size_t size,252cl_uint num_events_in_wait_list,253const cl_event *event_wait_list,254cl_event *event,255cl_int *errcode_ret);256void *CL_API_CALL clEnqueueMapImage(cl_command_queue command_queue,257cl_mem image,258cl_bool blocking_map,259cl_map_flags map_flags,260const size_t *origin,261const size_t *region,262size_t *image_row_pitch,263size_t *image_slice_pitch,264cl_uint num_events_in_wait_list,265const cl_event *event_wait_list,266cl_event *event,267cl_int *errcode_ret);268cl_int CL_API_CALL clEnqueueUnmapMemObject(cl_command_queue command_queue,269cl_mem memobj,270void *mapped_ptr,271cl_uint num_events_in_wait_list,272const cl_event *event_wait_list,273cl_event *event);274cl_int CL_API_CALL clEnqueueNDRangeKernel(cl_command_queue command_queue,275cl_kernel kernel,276cl_uint work_dim,277const size_t *global_work_offset,278const size_t *global_work_size,279const size_t *local_work_size,280cl_uint num_events_in_wait_list,281const cl_event *event_wait_list,282cl_event *event);283cl_int CL_API_CALL clEnqueueNativeKernel(cl_command_queue command_queue,284void(CL_CALLBACK *user_func)(void *),285void *args,286size_t cb_args,287cl_uint num_mem_objects,288const cl_mem *mem_list,289const void **args_mem_loc,290cl_uint num_events_in_wait_list,291const cl_event *event_wait_list,292cl_event *event);293cl_int CL_API_CALL clSetCommandQueueProperty(cl_command_queue command_queue,294cl_command_queue_properties properties,295cl_bool enable,296cl_command_queue_properties *old_properties);297cl_mem CL_API_CALL clCreateImage2D(cl_context context,298cl_mem_flags flags,299const cl_image_format *image_format,300size_t image_width,301size_t image_height,302size_t image_row_pitch,303void *host_ptr,304cl_int *errcode_ret);305cl_mem CL_API_CALL clCreateImage3D(cl_context context,306cl_mem_flags flags,307const cl_image_format *image_format,308size_t image_width,309size_t image_height,310size_t image_depth,311size_t image_row_pitch,312size_t image_slice_pitch,313void *host_ptr,314cl_int *errcode_ret);315cl_int CL_API_CALL clEnqueueMarker(cl_command_queue command_queue, cl_event *event);316cl_int CL_API_CALL clEnqueueWaitForEvents(cl_command_queue command_queue,317cl_uint num_events,318const cl_event *event_list);319cl_int CL_API_CALL clEnqueueBarrier(cl_command_queue command_queue);320cl_int CL_API_CALL clUnloadCompiler();321void *CL_API_CALL clGetExtensionFunctionAddress(const char *func_name);322cl_command_queue CL_API_CALL clCreateCommandQueue(cl_context context,323cl_device_id device,324cl_command_queue_properties properties,325cl_int *errcode_ret);326cl_sampler CL_API_CALL clCreateSampler(cl_context context,327cl_bool normalized_coords,328cl_addressing_mode addressing_mode,329cl_filter_mode filter_mode,330cl_int *errcode_ret);331cl_int CL_API_CALL clEnqueueTask(cl_command_queue command_queue,332cl_kernel kernel,333cl_uint num_events_in_wait_list,334const cl_event *event_wait_list,335cl_event *event);336337// CL 1.1338cl_mem CL_API_CALL clCreateSubBuffer(cl_mem buffer,339cl_mem_flags flags,340cl_buffer_create_type buffer_create_type,341const void *buffer_create_info,342cl_int *errcode_ret);343cl_int CL_API_CALL clSetMemObjectDestructorCallback(cl_mem memobj,344void(CL_CALLBACK *pfn_notify)(cl_mem memobj,345void *user_data),346void *user_data);347cl_event CL_API_CALL clCreateUserEvent(cl_context context, cl_int *errcode_ret);348cl_int CL_API_CALL clSetUserEventStatus(cl_event event, cl_int execution_status);349cl_int CL_API_CALL clSetEventCallback(cl_event event,350cl_int command_exec_callback_type,351void(CL_CALLBACK *pfn_notify)(cl_event event,352cl_int event_command_status,353void *user_data),354void *user_data);355cl_int CL_API_CALL clEnqueueReadBufferRect(cl_command_queue command_queue,356cl_mem buffer,357cl_bool blocking_read,358const size_t *buffer_origin,359const size_t *host_origin,360const size_t *region,361size_t buffer_row_pitch,362size_t buffer_slice_pitch,363size_t host_row_pitch,364size_t host_slice_pitch,365void *ptr,366cl_uint num_events_in_wait_list,367const cl_event *event_wait_list,368cl_event *event);369cl_int CL_API_CALL clEnqueueWriteBufferRect(cl_command_queue command_queue,370cl_mem buffer,371cl_bool blocking_write,372const size_t *buffer_origin,373const size_t *host_origin,374const size_t *region,375size_t buffer_row_pitch,376size_t buffer_slice_pitch,377size_t host_row_pitch,378size_t host_slice_pitch,379const void *ptr,380cl_uint num_events_in_wait_list,381const cl_event *event_wait_list,382cl_event *event);383cl_int CL_API_CALL clEnqueueCopyBufferRect(cl_command_queue command_queue,384cl_mem src_buffer,385cl_mem dst_buffer,386const size_t *src_origin,387const size_t *dst_origin,388const size_t *region,389size_t src_row_pitch,390size_t src_slice_pitch,391size_t dst_row_pitch,392size_t dst_slice_pitch,393cl_uint num_events_in_wait_list,394const cl_event *event_wait_list,395cl_event *event);396397// CL 1.2398cl_int CL_API_CALL clCreateSubDevices(cl_device_id in_device,399const cl_device_partition_property *properties,400cl_uint num_devices,401cl_device_id *out_devices,402cl_uint *num_devices_ret);403cl_int CL_API_CALL clRetainDevice(cl_device_id device);404cl_int CL_API_CALL clReleaseDevice(cl_device_id device);405cl_mem CL_API_CALL clCreateImage(cl_context context,406cl_mem_flags flags,407const cl_image_format *image_format,408const cl_image_desc *image_desc,409void *host_ptr,410cl_int *errcode_ret);411cl_program CL_API_CALL clCreateProgramWithBuiltInKernels(cl_context context,412cl_uint num_devices,413const cl_device_id *device_list,414const char *kernel_names,415cl_int *errcode_ret);416cl_int CL_API_CALL clCompileProgram(cl_program program,417cl_uint num_devices,418const cl_device_id *device_list,419const char *options,420cl_uint num_input_headers,421const cl_program *input_headers,422const char **header_include_names,423void(CL_CALLBACK *pfn_notify)(cl_program program,424void *user_data),425void *user_data);426cl_program CL_API_CALL clLinkProgram(cl_context context,427cl_uint num_devices,428const cl_device_id *device_list,429const char *options,430cl_uint num_input_programs,431const cl_program *input_programs,432void(CL_CALLBACK *pfn_notify)(cl_program program,433void *user_data),434void *user_data,435cl_int *errcode_ret);436cl_int CL_API_CALL clUnloadPlatformCompiler(cl_platform_id platform);437cl_int CL_API_CALL clGetKernelArgInfo(cl_kernel kernel,438cl_uint arg_index,439cl_kernel_arg_info param_name,440size_t param_value_size,441void *param_value,442size_t *param_value_size_ret);443cl_int CL_API_CALL clEnqueueFillBuffer(cl_command_queue command_queue,444cl_mem buffer,445const void *pattern,446size_t pattern_size,447size_t offset,448size_t size,449cl_uint num_events_in_wait_list,450const cl_event *event_wait_list,451cl_event *event);452cl_int CL_API_CALL clEnqueueFillImage(cl_command_queue command_queue,453cl_mem image,454const void *fill_color,455const size_t *origin,456const size_t *region,457cl_uint num_events_in_wait_list,458const cl_event *event_wait_list,459cl_event *event);460cl_int CL_API_CALL clEnqueueMigrateMemObjects(cl_command_queue command_queue,461cl_uint num_mem_objects,462const cl_mem *mem_objects,463cl_mem_migration_flags flags,464cl_uint num_events_in_wait_list,465const cl_event *event_wait_list,466cl_event *event);467cl_int CL_API_CALL clEnqueueMarkerWithWaitList(cl_command_queue command_queue,468cl_uint num_events_in_wait_list,469const cl_event *event_wait_list,470cl_event *event);471cl_int CL_API_CALL clEnqueueBarrierWithWaitList(cl_command_queue command_queue,472cl_uint num_events_in_wait_list,473const cl_event *event_wait_list,474cl_event *event);475void *CL_API_CALL clGetExtensionFunctionAddressForPlatform(cl_platform_id platform,476const char *func_name);477478// CL 2.0479cl_command_queue CL_API_CALL480clCreateCommandQueueWithProperties(cl_context context,481cl_device_id device,482const cl_queue_properties *properties,483cl_int *errcode_ret);484cl_mem CL_API_CALL clCreatePipe(cl_context context,485cl_mem_flags flags,486cl_uint pipe_packet_size,487cl_uint pipe_max_packets,488const cl_pipe_properties *properties,489cl_int *errcode_ret);490cl_int CL_API_CALL clGetPipeInfo(cl_mem pipe,491cl_pipe_info param_name,492size_t param_value_size,493void *param_value,494size_t *param_value_size_ret);495void *CL_API_CALL clSVMAlloc(cl_context context,496cl_svm_mem_flags flags,497size_t size,498cl_uint alignment);499void CL_API_CALL clSVMFree(cl_context context, void *svm_pointer);500cl_sampler CL_API_CALL501clCreateSamplerWithProperties(cl_context context,502const cl_sampler_properties *sampler_properties,503cl_int *errcode_ret);504cl_int CL_API_CALL clSetKernelArgSVMPointer(cl_kernel kernel,505cl_uint arg_index,506const void *arg_value);507cl_int CL_API_CALL clSetKernelExecInfo(cl_kernel kernel,508cl_kernel_exec_info param_name,509size_t param_value_size,510const void *param_value);511cl_int CL_API_CALL clEnqueueSVMFree(cl_command_queue command_queue,512cl_uint num_svm_pointers,513void *svm_pointers[],514void(CL_CALLBACK *pfn_free_func)(cl_command_queue queue,515cl_uint num_svm_pointers,516void *svm_pointers[],517void *user_data),518void *user_data,519cl_uint num_events_in_wait_list,520const cl_event *event_wait_list,521cl_event *event);522cl_int CL_API_CALL clEnqueueSVMMemcpy(cl_command_queue command_queue,523cl_bool blocking_copy,524void *dst_ptr,525const void *src_ptr,526size_t size,527cl_uint num_events_in_wait_list,528const cl_event *event_wait_list,529cl_event *event);530cl_int CL_API_CALL clEnqueueSVMMemFill(cl_command_queue command_queue,531void *svm_ptr,532const void *pattern,533size_t pattern_size,534size_t size,535cl_uint num_events_in_wait_list,536const cl_event *event_wait_list,537cl_event *event);538cl_int CL_API_CALL clEnqueueSVMMap(cl_command_queue command_queue,539cl_bool blocking_map,540cl_map_flags flags,541void *svm_ptr,542size_t size,543cl_uint num_events_in_wait_list,544const cl_event *event_wait_list,545cl_event *event);546cl_int CL_API_CALL clEnqueueSVMUnmap(cl_command_queue command_queue,547void *svm_ptr,548cl_uint num_events_in_wait_list,549const cl_event *event_wait_list,550cl_event *event);551552// CL 2.1553cl_int CL_API_CALL clSetDefaultDeviceCommandQueue(cl_context context,554cl_device_id device,555cl_command_queue command_queue);556cl_int CL_API_CALL clGetDeviceAndHostTimer(cl_device_id device,557cl_ulong *device_timestamp,558cl_ulong *host_timestamp);559cl_int CL_API_CALL clGetHostTimer(cl_device_id device, cl_ulong *host_timestamp);560cl_program CL_API_CALL clCreateProgramWithIL(cl_context context,561const void *il,562size_t length,563cl_int *errcode_ret);564cl_kernel CL_API_CALL clCloneKernel(cl_kernel source_kernel, cl_int *errcode_ret);565cl_int CL_API_CALL clGetKernelSubGroupInfo(cl_kernel kernel,566cl_device_id device,567cl_kernel_sub_group_info param_name,568size_t input_value_size,569const void *input_value,570size_t param_value_size,571void *param_value,572size_t *param_value_size_ret);573cl_int CL_API_CALL clEnqueueSVMMigrateMem(cl_command_queue command_queue,574cl_uint num_svm_pointers,575const void **svm_pointers,576const size_t *sizes,577cl_mem_migration_flags flags,578cl_uint num_events_in_wait_list,579const cl_event *event_wait_list,580cl_event *event);581582// CL 2.2583cl_int CL_API_CALL clSetProgramReleaseCallback(cl_program program,584void(CL_CALLBACK *pfn_notify)(cl_program program,585void *user_data),586void *user_data);587cl_int CL_API_CALL clSetProgramSpecializationConstant(cl_program program,588cl_uint spec_id,589size_t spec_size,590const void *spec_value);591592// CL 3.0593cl_int CL_API_CALL clSetContextDestructorCallback(cl_context context,594void(CL_CALLBACK *pfn_notify)(cl_context context,595void *user_data),596void *user_data);597cl_mem CL_API_CALL clCreateBufferWithProperties(cl_context context,598const cl_mem_properties *properties,599cl_mem_flags flags,600size_t size,601void *host_ptr,602cl_int *errcode_ret);603cl_mem CL_API_CALL clCreateImageWithProperties(cl_context context,604const cl_mem_properties *properties,605cl_mem_flags flags,606const cl_image_format *image_format,607const cl_image_desc *image_desc,608void *host_ptr,609cl_int *errcode_ret);610611// cl_khr_icd612cl_int CL_API_CALL clIcdGetPlatformIDsKHR(cl_uint num_entries,613cl_platform_id *platforms,614cl_uint *num_platforms);615} // namespace cl616617#endif // LIBGLESV2_ENTRY_POINTS_CL_AUTOGEN_H_618619620