1; 2; Copyright (c) 2022 The Khronos Group Inc. 3; 4; Licensed under the Apache License, Version 2.0 (the "License"); 5; you may not use this file except in compliance with the License. 6; You may obtain a copy of the License at 7; 8; http://www.apache.org/licenses/LICENSE-2.0 9; 10; Unless required by applicable law or agreed to in writing, software 11; distributed under the License is distributed on an "AS IS" BASIS, 12; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13; See the License for the specific language governing permissions and 14; limitations under the License. 15; 16; OpenCL is a trademark of Apple Inc. used under license by Khronos. 17 18EXPORTS 19 20; 21; Note: This is a special .def file that should only be needed for i686 22; (32-bit) mingw builds. In this case we need to export the stdcall- 23; decorated functions. In all other cases we can use the standard .def 24; file that does not have decorated functions. 25; 26 27; OpenCL 1.0 API 28clBuildProgram@24 == clBuildProgram 29clCreateBuffer@24 == clCreateBuffer 30clCreateCommandQueue@20 == clCreateCommandQueue 31clCreateContext@24 == clCreateContext 32clCreateContextFromType@24 == clCreateContextFromType 33clCreateFromGLBuffer@20 == clCreateFromGLBuffer 34clCreateFromGLRenderbuffer@20 == clCreateFromGLRenderbuffer 35clCreateFromGLTexture2D@28 == clCreateFromGLTexture2D 36clCreateFromGLTexture3D@28 == clCreateFromGLTexture3D 37clCreateImage2D@36 == clCreateImage2D 38clCreateImage3D@44 == clCreateImage3D 39clCreateKernel@12 == clCreateKernel 40clCreateKernelsInProgram@16 == clCreateKernelsInProgram 41clCreateProgramWithBinary@28 == clCreateProgramWithBinary 42clCreateProgramWithSource@20 == clCreateProgramWithSource 43clCreateSampler@20 == clCreateSampler 44clEnqueueAcquireGLObjects@24 == clEnqueueAcquireGLObjects 45clEnqueueBarrier@4 == clEnqueueBarrier 46clEnqueueCopyBuffer@36 == clEnqueueCopyBuffer 47clEnqueueCopyBufferToImage@36 == clEnqueueCopyBufferToImage 48clEnqueueCopyImage@36 == clEnqueueCopyImage 49clEnqueueCopyImageToBuffer@36 == clEnqueueCopyImageToBuffer 50clEnqueueMapBuffer@44 == clEnqueueMapBuffer 51clEnqueueMapImage@52 == clEnqueueMapImage 52clEnqueueMarker@8 == clEnqueueMarker 53clEnqueueNDRangeKernel@36 == clEnqueueNDRangeKernel 54clEnqueueNativeKernel@40 == clEnqueueNativeKernel 55clEnqueueReadBuffer@36 == clEnqueueReadBuffer 56clEnqueueReadImage@44 == clEnqueueReadImage 57clEnqueueReleaseGLObjects@24 == clEnqueueReleaseGLObjects 58clEnqueueTask@20 == clEnqueueTask 59clEnqueueUnmapMemObject@24 == clEnqueueUnmapMemObject 60clEnqueueWaitForEvents@12 == clEnqueueWaitForEvents 61clEnqueueWriteBuffer@36 == clEnqueueWriteBuffer 62clEnqueueWriteImage@44 == clEnqueueWriteImage 63clFinish@4 == clFinish 64clFlush@4 == clFlush 65clGetCommandQueueInfo@20 == clGetCommandQueueInfo 66clGetContextInfo@20 == clGetContextInfo 67clGetDeviceIDs@24 == clGetDeviceIDs 68clGetDeviceInfo@20 == clGetDeviceInfo 69clGetEventInfo@20 == clGetEventInfo 70clGetEventProfilingInfo@20 == clGetEventProfilingInfo 71clGetExtensionFunctionAddress@4 == clGetExtensionFunctionAddress 72clGetGLObjectInfo@12 == clGetGLObjectInfo 73clGetGLTextureInfo@20 == clGetGLTextureInfo 74clGetImageInfo@20 == clGetImageInfo 75clGetKernelInfo@20 == clGetKernelInfo 76clGetKernelWorkGroupInfo@24 == clGetKernelWorkGroupInfo 77clGetMemObjectInfo@20 == clGetMemObjectInfo 78clGetPlatformIDs@12 == clGetPlatformIDs 79clGetPlatformInfo@20 == clGetPlatformInfo 80clGetProgramBuildInfo@24 == clGetProgramBuildInfo 81clGetProgramInfo@20 == clGetProgramInfo 82clGetSamplerInfo@20 == clGetSamplerInfo 83clGetSupportedImageFormats@28 == clGetSupportedImageFormats 84clReleaseCommandQueue@4 == clReleaseCommandQueue 85clReleaseContext@4 == clReleaseContext 86clReleaseEvent@4 == clReleaseEvent 87clReleaseKernel@4 == clReleaseKernel 88clReleaseMemObject@4 == clReleaseMemObject 89clReleaseProgram@4 == clReleaseProgram 90clReleaseSampler@4 == clReleaseSampler 91clRetainCommandQueue@4 == clRetainCommandQueue 92clRetainContext@4 == clRetainContext 93clRetainEvent@4 == clRetainEvent 94clRetainKernel@4 == clRetainKernel 95clRetainMemObject@4 == clRetainMemObject 96clRetainProgram@4 == clRetainProgram 97clRetainSampler@4 == clRetainSampler 98clSetCommandQueueProperty@20 == clSetCommandQueueProperty 99clSetKernelArg@16 == clSetKernelArg 100clUnloadCompiler@0 == clUnloadCompiler 101clWaitForEvents@8 == clWaitForEvents 102 103; OpenCL 1.1 API 104clCreateSubBuffer@24 == clCreateSubBuffer 105clCreateUserEvent@8 == clCreateUserEvent 106clEnqueueCopyBufferRect@52 == clEnqueueCopyBufferRect 107clEnqueueReadBufferRect@56 == clEnqueueReadBufferRect 108clEnqueueWriteBufferRect@56 == clEnqueueWriteBufferRect 109clSetEventCallback@16 == clSetEventCallback 110clSetMemObjectDestructorCallback@12 == clSetMemObjectDestructorCallback 111clSetUserEventStatus@8 == clSetUserEventStatus 112 113; OpenCL 1.2 API 114clCompileProgram@36 == clCompileProgram 115clCreateFromGLTexture@28 == clCreateFromGLTexture 116clCreateImage@28 == clCreateImage 117clCreateProgramWithBuiltInKernels@20 == clCreateProgramWithBuiltInKernels 118clCreateSubDevices@20 == clCreateSubDevices 119clEnqueueBarrierWithWaitList@16 == clEnqueueBarrierWithWaitList 120clEnqueueFillBuffer@36 == clEnqueueFillBuffer 121clEnqueueFillImage@32 == clEnqueueFillImage 122clEnqueueMarkerWithWaitList@16 == clEnqueueMarkerWithWaitList 123clEnqueueMigrateMemObjects@32 == clEnqueueMigrateMemObjects 124clGetExtensionFunctionAddressForPlatform@8 == clGetExtensionFunctionAddressForPlatform 125clGetKernelArgInfo@24 == clGetKernelArgInfo 126clLinkProgram@36 == clLinkProgram 127clReleaseDevice@4 == clReleaseDevice 128clRetainDevice@4 == clRetainDevice 129clUnloadPlatformCompiler@4 == clUnloadPlatformCompiler 130 131; OpenCL 2.0 API 132clCreateCommandQueueWithProperties@16 == clCreateCommandQueueWithProperties 133clCreatePipe@28 == clCreatePipe 134clCreateSamplerWithProperties@12 == clCreateSamplerWithProperties 135clEnqueueSVMFree@32 == clEnqueueSVMFree 136clEnqueueSVMMap@36 == clEnqueueSVMMap 137clEnqueueSVMMemcpy@32 == clEnqueueSVMMemcpy 138clEnqueueSVMMemFill@32 == clEnqueueSVMMemFill 139clEnqueueSVMUnmap@20 == clEnqueueSVMUnmap 140clGetPipeInfo@20 == clGetPipeInfo 141clSetKernelArgSVMPointer@12 == clSetKernelArgSVMPointer 142clSetKernelExecInfo@16 == clSetKernelExecInfo 143clSVMAlloc@20 == clSVMAlloc 144clSVMFree@8 == clSVMFree 145 146; OpenCL 2.1 API 147clCloneKernel@8 == clCloneKernel 148clCreateProgramWithIL@16 == clCreateProgramWithIL 149clEnqueueSVMMigrateMem@36 == clEnqueueSVMMigrateMem 150clGetDeviceAndHostTimer@12 == clGetDeviceAndHostTimer 151clGetHostTimer@8 == clGetHostTimer 152clGetKernelSubGroupInfo@32 == clGetKernelSubGroupInfo 153clSetDefaultDeviceCommandQueue@12 == clSetDefaultDeviceCommandQueue 154 155; OpenCL 2.2 API 156clSetProgramReleaseCallback@12 == clSetProgramReleaseCallback 157clSetProgramSpecializationConstant@16 == clSetProgramSpecializationConstant 158 159; OpenCL 3.0 API 160clCreateBufferWithProperties@28 == clCreateBufferWithProperties 161clCreateImageWithProperties@32 == clCreateImageWithProperties 162clSetContextDestructorCallback@12 == clSetContextDestructorCallback 163