blob: e3c14c6408c44160103bcb4c0dcd230a674643a5 [file] [log] [blame]
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001/**********************************************************************************
Pablo Telloe86a09f2018-01-11 15:44:48 +00002 * Copyright (c) 2008-2015 The Khronos Group Inc.
Anthony Barbier6ff3b192017-09-04 18:44:23 +01003 *
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 *
Pablo Telloe86a09f2018-01-11 15:44:48 +000015 * 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 *
Anthony Barbier6ff3b192017-09-04 18:44:23 +010020 * 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/* $Revision: 11708 $ on $Date: 2010-06-13 23:36:24 -0700 (Sun, 13 Jun 2010) $ */
30
31/* cl_gl_ext.h contains vendor (non-KHR) OpenCL extensions which have */
32/* OpenGL dependencies. */
33
34#ifndef __OPENCL_CL_GL_EXT_H
35#define __OPENCL_CL_GL_EXT_H
36
37#ifdef __cplusplus
38extern "C" {
39#endif
40
41#ifdef __APPLE__
42 #include <OpenCL/cl_gl.h>
43#else
44 #include <CL/cl_gl.h>
45#endif
46
47/*
48 * For each extension, follow this template
49 * cl_VEN_extname extension */
50/* #define cl_VEN_extname 1
51 * ... define new types, if any
52 * ... define new tokens, if any
53 * ... define new APIs, if any
54 *
55 * If you need GLtypes here, mirror them with a cl_GLtype, rather than including a GL header
56 * This allows us to avoid having to decide whether to include GL headers or GLES here.
57 */
58
59/*
60 * cl_khr_gl_event extension
61 * See section 9.9 in the OpenCL 1.1 spec for more information
62 */
63#define CL_COMMAND_GL_FENCE_SYNC_OBJECT_KHR 0x200D
64
65extern CL_API_ENTRY cl_event CL_API_CALL
66clCreateEventFromGLsyncKHR(cl_context /* context */,
67 cl_GLsync /* cl_GLsync */,
68 cl_int * /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_1;
69
70#ifdef __cplusplus
71}
72#endif
73
74#endif /* __OPENCL_CL_GL_EXT_H */