HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cl_gl_ext.h
Go to the documentation of this file.
1 /**********************************************************************************
2  * Copyright (c) 2008-2015 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 /* $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
38 extern "C" {
39 #endif
40 
41 #include <CL/cl_gl.h>
42 
43 /*
44  * For each extension, follow this template
45  * cl_VEN_extname extension */
46 /* #define cl_VEN_extname 1
47  * ... define new types, if any
48  * ... define new tokens, if any
49  * ... define new APIs, if any
50  *
51  * If you need GLtypes here, mirror them with a cl_GLtype, rather than including a GL header
52  * This allows us to avoid having to decide whether to include GL headers or GLES here.
53  */
54 
55 /*
56  * cl_khr_gl_event extension
57  * See section 9.9 in the OpenCL 1.1 spec for more information
58  */
59 #define CL_COMMAND_GL_FENCE_SYNC_OBJECT_KHR 0x200D
60 
63  cl_GLsync /* cl_GLsync */,
64  cl_int * /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_1;
65 
66 #ifdef __cplusplus
67 }
68 #endif
69 
70 #endif /* __OPENCL_CL_GL_EXT_H */
struct _cl_context * cl_context
Definition: cl.h:43
#define CL_API_ENTRY
Definition: cl_platform.h:43
#define CL_EXT_SUFFIX__VERSION_1_1
Definition: cl_platform.h:60
struct _cl_event * cl_event
Definition: cl.h:48
struct __GLsync * cl_GLsync
Definition: cl_gl.h:41
CL_API_ENTRY cl_event CL_API_CALL clCreateEventFromGLsyncKHR(cl_context, cl_GLsync, cl_int *) CL_EXT_SUFFIX__VERSION_1_1
#define CL_API_CALL
Definition: cl_platform.h:44