1848b8605Smrg/**********************************************************************************
2b8e80941Smrg * Copyright (c) 2008-2019 The Khronos Group Inc.
3848b8605Smrg *
4848b8605Smrg * Permission is hereby granted, free of charge, to any person obtaining a
5848b8605Smrg * copy of this software and/or associated documentation files (the
6848b8605Smrg * "Materials"), to deal in the Materials without restriction, including
7848b8605Smrg * without limitation the rights to use, copy, modify, merge, publish,
8848b8605Smrg * distribute, sublicense, and/or sell copies of the Materials, and to
9848b8605Smrg * permit persons to whom the Materials are furnished to do so, subject to
10848b8605Smrg * the following conditions:
11848b8605Smrg *
12848b8605Smrg * The above copyright notice and this permission notice shall be included
13848b8605Smrg * in all copies or substantial portions of the Materials.
14848b8605Smrg *
15b8e80941Smrg * MODIFICATIONS TO THIS FILE MAY MEAN IT NO LONGER ACCURATELY REFLECTS
16b8e80941Smrg * KHRONOS STANDARDS. THE UNMODIFIED, NORMATIVE VERSIONS OF KHRONOS
17b8e80941Smrg * SPECIFICATIONS AND HEADER INFORMATION ARE LOCATED AT
18b8e80941Smrg *    https://www.khronos.org/registry/
19b8e80941Smrg *
20848b8605Smrg * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21848b8605Smrg * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22848b8605Smrg * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23848b8605Smrg * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
24848b8605Smrg * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
25848b8605Smrg * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
26848b8605Smrg * MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
27848b8605Smrg **********************************************************************************/
28848b8605Smrg
29848b8605Smrg#ifndef __OPENCL_CL_GL_EXT_H
30848b8605Smrg#define __OPENCL_CL_GL_EXT_H
31848b8605Smrg
32848b8605Smrg#ifdef __cplusplus
33848b8605Smrgextern "C" {
34848b8605Smrg#endif
35848b8605Smrg
36b8e80941Smrg#include <CL/cl_gl.h>
37848b8605Smrg
38848b8605Smrg/*
39b8e80941Smrg *  cl_khr_gl_event extension
40848b8605Smrg */
41848b8605Smrg#define CL_COMMAND_GL_FENCE_SYNC_OBJECT_KHR     0x200D
42848b8605Smrg
43848b8605Smrgextern CL_API_ENTRY cl_event CL_API_CALL
44b8e80941SmrgclCreateEventFromGLsyncKHR(cl_context context,
45b8e80941Smrg                           cl_GLsync  cl_GLsync,
46b8e80941Smrg                           cl_int *   errcode_ret) CL_EXT_SUFFIX__VERSION_1_1;
47848b8605Smrg
48848b8605Smrg#ifdef __cplusplus
49848b8605Smrg}
50848b8605Smrg#endif
51848b8605Smrg
52848b8605Smrg#endif	/* __OPENCL_CL_GL_EXT_H  */
53