1// 2// Copyright 2021 The ANGLE Project Authors. All rights reserved. 3// Use of this source code is governed by a BSD-style license that can be 4// found in the LICENSE file. 5// 6// dispatch.h: Declares a function to fetch the ANGLE OpenCL dispatch table. 7 8#ifndef LIBOPENCL_DISPATCH_H_ 9#define LIBOPENCL_DISPATCH_H_ 10 11#include "export.h" 12 13#ifndef CL_API_ENTRY 14# define CL_API_ENTRY ANGLE_EXPORT 15#endif 16#include "angle_cl.h" 17 18namespace cl 19{ 20 21struct IcdDispatch : public _cl_icd_dispatch 22{ 23 clIcdGetPlatformIDsKHR_fn clIcdGetPlatformIDsKHR; 24}; 25 26const IcdDispatch &GetDispatch(); 27 28} // namespace cl 29 30#endif // LIBOPENCL_DISPATCH_H_ 31