1 module dcompute.driver.ocl.raw.functions; 2 3 //This is an autogenerated file, do not edit 4 5 6 import dcompute.driver.ocl; 7 //nothrow: @nogc: 8 9 /* 10 auto getEventProfilingInfo(event a, profiling_info b, size_t c, void* d, size_t* e) 11 { 12 debug assert(clGetEventProfilingInfo); 13 auto ret = cast(int)clGetEventProfilingInfo(cast(cl_event)a, cast(cl_profiling_info)b, cast(size_t)c, cast(void*)d, cast(size_t*)e); 14 return ret; 15 } 16 17 auto enqueueCopyBuffer(command_queue a, mem b, mem c, size_t d, size_t e, size_t f, uint g, const(event*) h, event* i) 18 { 19 debug assert(clEnqueueCopyBuffer); 20 auto ret = cast(int)clEnqueueCopyBuffer(cast(cl_command_queue)a, cast(cl_mem)b, cast(cl_mem)c, cast(size_t)d, cast(size_t)e, cast(size_t)f, cast(cl_uint)g, cast(const(cl_event*))h, cast(cl_event*)i); 21 return ret; 22 } 23 24 auto enqueueReadImage(command_queue a, mem b, bool c, const(size_t*) d, const(size_t*) e, size_t f, size_t g, void* h, uint i, const(event*) j, event* k) 25 { 26 debug assert(clEnqueueReadImage); 27 auto ret = cast(int)clEnqueueReadImage(cast(cl_command_queue)a, cast(cl_mem)b, cast(cl_bool)c, cast(const(size_t*))d, cast(const(size_t*))e, cast(size_t)f, cast(size_t)g, cast(void*)h, cast(cl_uint)i, cast(const(cl_event*))j, cast(cl_event*)k); 28 return ret; 29 } 30 31 auto enqueueWriteImage(command_queue a, mem b, bool c, const(size_t*) d, const(size_t*) e, size_t f, size_t g, const(void*) h, uint i, const(event*) j, event* k) 32 { 33 debug assert(clEnqueueWriteImage); 34 auto ret = cast(int)clEnqueueWriteImage(cast(cl_command_queue)a, cast(cl_mem)b, cast(cl_bool)c, cast(const(size_t*))d, cast(const(size_t*))e, cast(size_t)f, cast(size_t)g, cast(const(void*))h, cast(cl_uint)i, cast(const(cl_event*))j, cast(cl_event*)k); 35 return ret; 36 } 37 38 auto enqueueCopyImage(command_queue a, mem b, mem c, const(size_t*) d, const(size_t*) e, const(size_t*) f, uint g, const(event*) h, event* i) 39 { 40 debug assert(clEnqueueCopyImage); 41 auto ret = cast(int)clEnqueueCopyImage(cast(cl_command_queue)a, cast(cl_mem)b, cast(cl_mem)c, cast(const(size_t*))d, cast(const(size_t*))e, cast(const(size_t*))f, cast(cl_uint)g, cast(const(cl_event*))h, cast(cl_event*)i); 42 return ret; 43 } 44 45 auto enqueueCopyImageToBuffer(command_queue a, mem b, mem c, const(size_t*) d, const(size_t*) e, size_t f, uint g, const(event*) h, event* i) 46 { 47 debug assert(clEnqueueCopyImageToBuffer); 48 auto ret = cast(int)clEnqueueCopyImageToBuffer(cast(cl_command_queue)a, cast(cl_mem)b, cast(cl_mem)c, cast(const(size_t*))d, cast(const(size_t*))e, cast(size_t)f, cast(cl_uint)g, cast(const(cl_event*))h, cast(cl_event*)i); 49 return ret; 50 } 51 52 auto enqueueCopyBufferToImage(command_queue a, mem b, mem c, size_t d, const(size_t*) e, const(size_t*) f, uint g, const(event*) h, event* i) 53 { 54 debug assert(clEnqueueCopyBufferToImage); 55 auto ret = cast(int)clEnqueueCopyBufferToImage(cast(cl_command_queue)a, cast(cl_mem)b, cast(cl_mem)c, cast(size_t)d, cast(const(size_t*))e, cast(const(size_t*))f, cast(cl_uint)g, cast(const(cl_event*))h, cast(cl_event*)i); 56 return ret; 57 } 58 59 auto enqueueMapBuffer(command_queue a, mem b, bool c, map_flags d, size_t e, size_t f, uint g, const(event*) h, event* i, int* j) 60 { 61 debug assert(clEnqueueMapBuffer); 62 auto ret = cast(void*)clEnqueueMapBuffer(cast(cl_command_queue)a, cast(cl_mem)b, cast(cl_bool)c, cast(cl_map_flags)d, cast(size_t)e, cast(size_t)f, cast(cl_uint)g, cast(const(cl_event*))h, cast(cl_event*)i, cast(cl_int*)j); 63 return ret; 64 } 65 66 auto enqueueMapImage(command_queue a, mem b, bool c, map_flags d, const(size_t*) e, const(size_t*) f, size_t* g, size_t* h, uint i, const(event*) j, event* k, int* l) 67 { 68 debug assert(clEnqueueMapImage); 69 auto ret = cast(void*)clEnqueueMapImage(cast(cl_command_queue)a, cast(cl_mem)b, cast(cl_bool)c, cast(cl_map_flags)d, cast(const(size_t*))e, cast(const(size_t*))f, cast(size_t*)g, cast(size_t*)h, cast(cl_uint)i, cast(const(cl_event*))j, cast(cl_event*)k, cast(cl_int*)l); 70 return ret; 71 } 72 73 auto enqueueUnmapMemObject(command_queue a, mem b, void* c, uint d, const(event*) e, event* f) 74 { 75 debug assert(clEnqueueUnmapMemObject); 76 auto ret = cast(int)clEnqueueUnmapMemObject(cast(cl_command_queue)a, cast(cl_mem)b, cast(void*)c, cast(cl_uint)d, cast(const(cl_event*))e, cast(cl_event*)f); 77 return ret; 78 } 79 80 auto enqueueNDRangeKernel(command_queue a, kernel b, uint c, const(size_t*) d, const(size_t*) e, const(size_t*) f, uint g, const(event*) h, event* i) 81 { 82 debug assert(clEnqueueNDRangeKernel); 83 auto ret = cast(int)clEnqueueNDRangeKernel(cast(cl_command_queue)a, cast(cl_kernel)b, cast(cl_uint)c, cast(const(size_t*))d, cast(const(size_t*))e, cast(const(size_t*))f, cast(cl_uint)g, cast(const(cl_event*))h, cast(cl_event*)i); 84 return ret; 85 } 86 87 auto enqueueTask(command_queue a, kernel b, uint c, const(event*) d, event* e) 88 { 89 debug assert(clEnqueueTask); 90 auto ret = cast(int)clEnqueueTask(cast(cl_command_queue)a, cast(cl_kernel)b, cast(cl_uint)c, cast(const(cl_event*))d, cast(cl_event*)e); 91 return ret; 92 } 93 94 extern(System) alias enqueueNativeKernel_FuncAlias = void function(void*); 95 auto enqueueNativeKernel(command_queue a, enqueueNativeKernel_FuncAlias b, void* c, size_t d, uint e, const(mem*) f, const(void*)* g, uint h, const(event*) i, event* j) 96 { 97 debug assert(clEnqueueNativeKernel); 98 auto ret = cast(int)clEnqueueNativeKernel(cast(cl_command_queue)a, cast(enqueueNativeKernel_FuncAlias)b, cast(void*)c, cast(size_t)d, cast(cl_uint)e, cast(const(cl_mem*))f, cast(const(void*)*)g, cast(cl_uint)h, cast(const(cl_event*))i, cast(cl_event*)j); 99 return ret; 100 } 101 102 auto setCommandQueueProperty(command_queue a, command_queue_properties b, bool c, command_queue_properties* d) 103 { 104 debug assert(clSetCommandQueueProperty); 105 auto ret = cast(int)clSetCommandQueueProperty(cast(cl_command_queue)a, cast(cl_command_queue_properties)b, cast(cl_bool)c, cast(cl_command_queue_properties*)d); 106 return ret; 107 } 108 109 auto createSubBuffer(mem a, mem_flags b, buffer_create_type c, const(void*) d, int* e) 110 { 111 debug assert(clCreateSubBuffer); 112 auto ret = cast(mem)clCreateSubBuffer(cast(cl_mem)a, cast(cl_mem_flags)b, cast(cl_buffer_create_type)c, cast(const(void*))d, cast(cl_int*)e); 113 return ret; 114 } 115 116 extern(System) alias setMemObjectDestructorCallback_FuncAlias = void function(cl_mem, void*); 117 auto setMemObjectDestructorCallback(mem a, setMemObjectDestructorCallback_FuncAlias b, void* c) 118 { 119 debug assert(clSetMemObjectDestructorCallback); 120 auto ret = cast(int)clSetMemObjectDestructorCallback(cast(cl_mem)a, cast(setMemObjectDestructorCallback_FuncAlias)b, cast(void*)c); 121 return ret; 122 } 123 124 auto createUserEvent(context a, int* b) 125 { 126 debug assert(clCreateUserEvent); 127 auto ret = cast(event)clCreateUserEvent(cast(cl_context)a, cast(cl_int*)b); 128 return ret; 129 } 130 131 auto setUserEventStatus(event a, int b) 132 { 133 debug assert(clSetUserEventStatus); 134 auto ret = cast(int)clSetUserEventStatus(cast(cl_event)a, cast(cl_int)b); 135 return ret; 136 } 137 138 extern(System) alias setEventCallback_FuncAlias = void function(cl_event, cl_int, void*); 139 auto setEventCallback(event a, int b, setEventCallback_FuncAlias c, void* d) 140 { 141 debug assert(clSetEventCallback); 142 auto ret = cast(int)clSetEventCallback(cast(cl_event)a, cast(cl_int)b, cast(setEventCallback_FuncAlias)c, cast(void*)d); 143 return ret; 144 } 145 146 auto enqueueReadBufferRect(command_queue a, mem b, bool c, const(size_t*) d, const(size_t*) e, const(size_t*) f, size_t g, size_t h, size_t i, size_t j, void* k, uint l, const(event*) m, event* n) 147 { 148 debug assert(clEnqueueReadBufferRect); 149 auto ret = cast(int)clEnqueueReadBufferRect(cast(cl_command_queue)a, cast(cl_mem)b, cast(cl_bool)c, cast(const(size_t*))d, cast(const(size_t*))e, cast(const(size_t*))f, cast(size_t)g, cast(size_t)h, cast(size_t)i, cast(size_t)j, cast(void*)k, cast(cl_uint)l, cast(const(cl_event*))m, cast(cl_event*)n); 150 return ret; 151 } 152 153 auto enqueueWriteBufferRect(command_queue a, mem b, bool c, const(size_t*) d, const(size_t*) e, const(size_t*) f, size_t g, size_t h, size_t i, size_t j, const(void*) k, uint l, const(event*) m, event* n) 154 { 155 debug assert(clEnqueueWriteBufferRect); 156 auto ret = cast(int)clEnqueueWriteBufferRect(cast(cl_command_queue)a, cast(cl_mem)b, cast(cl_bool)c, cast(const(size_t*))d, cast(const(size_t*))e, cast(const(size_t*))f, cast(size_t)g, cast(size_t)h, cast(size_t)i, cast(size_t)j, cast(const(void*))k, cast(cl_uint)l, cast(const(cl_event*))m, cast(cl_event*)n); 157 return ret; 158 } 159 160 auto enqueueCopyBufferRect(command_queue a, mem b, mem c, const(size_t*) d, const(size_t*) e, const(size_t*) f, size_t g, size_t h, size_t i, size_t j, uint k, const(event*) l, event* m) 161 { 162 debug assert(clEnqueueCopyBufferRect); 163 auto ret = cast(int)clEnqueueCopyBufferRect(cast(cl_command_queue)a, cast(cl_mem)b, cast(cl_mem)c, cast(const(size_t*))d, cast(const(size_t*))e, cast(const(size_t*))f, cast(size_t)g, cast(size_t)h, cast(size_t)i, cast(size_t)j, cast(cl_uint)k, cast(const(cl_event*))l, cast(cl_event*)m); 164 return ret; 165 } 166 167 auto createImage2D(context a, mem_flags b, const(image_format*) c, size_t d, size_t e, size_t f, void* g, int* h) 168 { 169 debug assert(clCreateImage2D); 170 auto ret = cast(mem)clCreateImage2D(cast(cl_context)a, cast(cl_mem_flags)b, cast(const(cl_image_format*))c, cast(size_t)d, cast(size_t)e, cast(size_t)f, cast(void*)g, cast(cl_int*)h); 171 return ret; 172 } 173 174 auto createImage3D(context a, mem_flags b, const(image_format*) c, size_t d, size_t e, size_t f, size_t g, size_t h, void* i, int* j) 175 { 176 debug assert(clCreateImage3D); 177 auto ret = cast(mem)clCreateImage3D(cast(cl_context)a, cast(cl_mem_flags)b, cast(const(cl_image_format*))c, cast(size_t)d, cast(size_t)e, cast(size_t)f, cast(size_t)g, cast(size_t)h, cast(void*)i, cast(cl_int*)j); 178 return ret; 179 } 180 181 auto enqueueMarker(command_queue a, event* b) 182 { 183 debug assert(clEnqueueMarker); 184 auto ret = cast(int)clEnqueueMarker(cast(cl_command_queue)a, cast(cl_event*)b); 185 return ret; 186 } 187 188 auto enqueueWaitForEvents(command_queue a, uint b, const(event*) c) 189 { 190 debug assert(clEnqueueWaitForEvents); 191 auto ret = cast(int)clEnqueueWaitForEvents(cast(cl_command_queue)a, cast(cl_uint)b, cast(const(cl_event*))c); 192 return ret; 193 } 194 195 auto enqueueBarrier(command_queue a) 196 { 197 debug assert(clEnqueueBarrier); 198 auto ret = cast(int)clEnqueueBarrier(cast(cl_command_queue)a); 199 return ret; 200 } 201 202 auto unloadCompiler() 203 { 204 debug assert(clUnloadCompiler); 205 auto ret = cast(int)clUnloadCompiler(); 206 return ret; 207 } 208 209 auto getExtensionFunctionAddress(const(char*) a) 210 { 211 debug assert(clGetExtensionFunctionAddress); 212 auto ret = cast(void*)clGetExtensionFunctionAddress(cast(const(char*))a); 213 return ret; 214 } 215 216 auto createSubDevices(device_id a, const(device_partition_property*) b, uint c, device_id* d, uint* e) 217 { 218 debug assert(clCreateSubDevices); 219 auto ret = cast(int)clCreateSubDevices(cast(cl_device_id)a, cast(const(cl_device_partition_property*))b, cast(cl_uint)c, cast(cl_device_id*)d, cast(cl_uint*)e); 220 return ret; 221 } 222 223 auto retainDevice(device_id a) 224 { 225 debug assert(clRetainDevice); 226 auto ret = cast(int)clRetainDevice(cast(cl_device_id)a); 227 return ret; 228 } 229 230 auto releaseDevice(device_id a) 231 { 232 debug assert(clReleaseDevice); 233 auto ret = cast(int)clReleaseDevice(cast(cl_device_id)a); 234 return ret; 235 } 236 237 auto createImage(context a, mem_flags b, const(image_format*) c, const(image_desc*) d, void* e, int* f) 238 { 239 debug assert(clCreateImage); 240 auto ret = cast(mem)clCreateImage(cast(cl_context)a, cast(cl_mem_flags)b, cast(const(cl_image_format*))c, cast(const(cl_image_desc*))d, cast(void*)e, cast(cl_int*)f); 241 return ret; 242 } 243 244 extern(System) alias compileProgram_FuncAlias = void function(cl_program, void*); 245 auto compileProgram(program a, uint b, const(device_id*) c, const(char*) d, uint e, const(program*) f, const(char*)* g, compileProgram_FuncAlias h, void* i) 246 { 247 debug assert(clCompileProgram); 248 auto ret = cast(int)clCompileProgram(cast(cl_program)a, cast(cl_uint)b, cast(const(cl_device_id*))c, cast(const(char*))d, cast(cl_uint)e, cast(const(cl_program*))f, cast(const(char*)*)g, cast(compileProgram_FuncAlias)h, cast(void*)i); 249 return ret; 250 } 251 252 extern(System) alias linkProgram_FuncAlias = void function(cl_program, void*); 253 auto linkProgram(context a, uint b, const(device_id*) c, const(char*) d, uint e, const(program*) f, linkProgram_FuncAlias g, void* h, int* i) 254 { 255 debug assert(clLinkProgram); 256 auto ret = cast(program)clLinkProgram(cast(cl_context)a, cast(cl_uint)b, cast(const(cl_device_id*))c, cast(const(char*))d, cast(cl_uint)e, cast(const(cl_program*))f, cast(linkProgram_FuncAlias)g, cast(void*)h, cast(cl_int*)i); 257 return ret; 258 } 259 260 auto unloadPlatformCompiler(platform_id a) 261 { 262 debug assert(clUnloadPlatformCompiler); 263 auto ret = cast(int)clUnloadPlatformCompiler(cast(cl_platform_id)a); 264 return ret; 265 } 266 267 auto enqueueFillBuffer(command_queue a, mem b, const(void*) c, size_t d, size_t e, size_t f, uint g, const(event*) h, event* i) 268 { 269 debug assert(clEnqueueFillBuffer); 270 auto ret = cast(int)clEnqueueFillBuffer(cast(cl_command_queue)a, cast(cl_mem)b, cast(const(void*))c, cast(size_t)d, cast(size_t)e, cast(size_t)f, cast(cl_uint)g, cast(const(cl_event*))h, cast(cl_event*)i); 271 return ret; 272 } 273 274 auto enqueueFillImage(command_queue a, mem b, const(void*) c, const(size_t*) d, const(size_t*) e, uint f, const(event*) g, event* h) 275 { 276 debug assert(clEnqueueFillImage); 277 auto ret = cast(int)clEnqueueFillImage(cast(cl_command_queue)a, cast(cl_mem)b, cast(const(void*))c, cast(const(size_t*))d, cast(const(size_t*))e, cast(cl_uint)f, cast(const(cl_event*))g, cast(cl_event*)h); 278 return ret; 279 } 280 281 auto enqueueMigrateMemObjects(command_queue a, uint b, const(mem*) c, mem_migration_flags d, uint e, const(event*) f, event* g) 282 { 283 debug assert(clEnqueueMigrateMemObjects); 284 auto ret = cast(int)clEnqueueMigrateMemObjects(cast(cl_command_queue)a, cast(cl_uint)b, cast(const(cl_mem*))c, cast(cl_mem_migration_flags)d, cast(cl_uint)e, cast(const(cl_event*))f, cast(cl_event*)g); 285 return ret; 286 } 287 288 auto enqueueMarkerWithWaitList(command_queue a, uint b, const(event*) c, event* d) 289 { 290 debug assert(clEnqueueMarkerWithWaitList); 291 auto ret = cast(int)clEnqueueMarkerWithWaitList(cast(cl_command_queue)a, cast(cl_uint)b, cast(const(cl_event*))c, cast(cl_event*)d); 292 return ret; 293 } 294 295 auto enqueueBarrierWithWaitList(command_queue a, uint b, const(event*) c, event* d) 296 { 297 debug assert(clEnqueueBarrierWithWaitList); 298 auto ret = cast(int)clEnqueueBarrierWithWaitList(cast(cl_command_queue)a, cast(cl_uint)b, cast(const(cl_event*))c, cast(cl_event*)d); 299 return ret; 300 } 301 302 auto getExtensionFunctionAddressForPlatform(platform_id a, const(char*) b) 303 { 304 debug assert(clGetExtensionFunctionAddressForPlatform); 305 auto ret = cast(void*)clGetExtensionFunctionAddressForPlatform(cast(cl_platform_id)a, cast(const(char*))b); 306 return ret; 307 } 308 */