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