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