1bf215546Sopenharmony_ci/**********************************************************************************
2bf215546Sopenharmony_ci * Copyright (c) 2008-2019 The Khronos Group Inc.
3bf215546Sopenharmony_ci *
4bf215546Sopenharmony_ci * Permission is hereby granted, free of charge, to any person obtaining a
5bf215546Sopenharmony_ci * copy of this software and/or associated documentation files (the
6bf215546Sopenharmony_ci * "Materials"), to deal in the Materials without restriction, including
7bf215546Sopenharmony_ci * without limitation the rights to use, copy, modify, merge, publish,
8bf215546Sopenharmony_ci * distribute, sublicense, and/or sell copies of the Materials, and to
9bf215546Sopenharmony_ci * permit persons to whom the Materials are furnished to do so, subject to
10bf215546Sopenharmony_ci * the following conditions:
11bf215546Sopenharmony_ci *
12bf215546Sopenharmony_ci * The above copyright notice and this permission notice shall be included
13bf215546Sopenharmony_ci * in all copies or substantial portions of the Materials.
14bf215546Sopenharmony_ci *
15bf215546Sopenharmony_ci * MODIFICATIONS TO THIS FILE MAY MEAN IT NO LONGER ACCURATELY REFLECTS
16bf215546Sopenharmony_ci * KHRONOS STANDARDS. THE UNMODIFIED, NORMATIVE VERSIONS OF KHRONOS
17bf215546Sopenharmony_ci * SPECIFICATIONS AND HEADER INFORMATION ARE LOCATED AT
18bf215546Sopenharmony_ci *    https://www.khronos.org/registry/
19bf215546Sopenharmony_ci *
20bf215546Sopenharmony_ci * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21bf215546Sopenharmony_ci * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22bf215546Sopenharmony_ci * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23bf215546Sopenharmony_ci * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
24bf215546Sopenharmony_ci * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
25bf215546Sopenharmony_ci * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
26bf215546Sopenharmony_ci * MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
27bf215546Sopenharmony_ci **********************************************************************************/
28bf215546Sopenharmony_ci
29bf215546Sopenharmony_ci#ifndef __OPENCL_CL_GL_EXT_H
30bf215546Sopenharmony_ci#define __OPENCL_CL_GL_EXT_H
31bf215546Sopenharmony_ci
32bf215546Sopenharmony_ci#ifdef __cplusplus
33bf215546Sopenharmony_ciextern "C" {
34bf215546Sopenharmony_ci#endif
35bf215546Sopenharmony_ci
36bf215546Sopenharmony_ci#include <CL/cl_gl.h>
37bf215546Sopenharmony_ci
38bf215546Sopenharmony_ci/*
39bf215546Sopenharmony_ci *  cl_khr_gl_event extension
40bf215546Sopenharmony_ci */
41bf215546Sopenharmony_ci#define CL_COMMAND_GL_FENCE_SYNC_OBJECT_KHR     0x200D
42bf215546Sopenharmony_ci
43bf215546Sopenharmony_ciextern CL_API_ENTRY cl_event CL_API_CALL
44bf215546Sopenharmony_ciclCreateEventFromGLsyncKHR(cl_context context,
45bf215546Sopenharmony_ci                           cl_GLsync  cl_GLsync,
46bf215546Sopenharmony_ci                           cl_int *   errcode_ret) CL_EXT_SUFFIX__VERSION_1_1;
47bf215546Sopenharmony_ci
48bf215546Sopenharmony_ci#ifdef __cplusplus
49bf215546Sopenharmony_ci}
50bf215546Sopenharmony_ci#endif
51bf215546Sopenharmony_ci
52bf215546Sopenharmony_ci#endif	/* __OPENCL_CL_GL_EXT_H  */
53