blob: 52107b111e736fb9933bdd716243b43da473a1ae [file] [log] [blame]
Sheri Zhang79cb9452021-09-07 14:51:49 +01001/*******************************************************************************
2 * Copyright (c) 2008-2020 The Khronos Group Inc.
Anthony Barbier6ff3b192017-09-04 18:44:23 +01003 *
Sheri Zhang79cb9452021-09-07 14:51:49 +01004 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
Anthony Barbier6ff3b192017-09-04 18:44:23 +01007 *
Sheri Zhang79cb9452021-09-07 14:51:49 +01008 * http://www.apache.org/licenses/LICENSE-2.0
Anthony Barbier6ff3b192017-09-04 18:44:23 +01009 *
Sheri Zhang79cb9452021-09-07 14:51:49 +010010 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 ******************************************************************************/
Anthony Barbier6ff3b192017-09-04 18:44:23 +010016
Anthony Barbier6ff3b192017-09-04 18:44:23 +010017#ifndef __OPENCL_CL_GL_EXT_H
18#define __OPENCL_CL_GL_EXT_H
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
Sheri Zhang67354e02021-06-30 16:08:29 +010024#include <CL/cl_gl.h>
Anthony Barbier6ff3b192017-09-04 18:44:23 +010025
26/*
Sheri Zhang67354e02021-06-30 16:08:29 +010027 * cl_khr_gl_event extension
Anthony Barbier6ff3b192017-09-04 18:44:23 +010028 */
29#define CL_COMMAND_GL_FENCE_SYNC_OBJECT_KHR 0x200D
30
31extern CL_API_ENTRY cl_event CL_API_CALL
Sheri Zhang67354e02021-06-30 16:08:29 +010032clCreateEventFromGLsyncKHR(cl_context context,
Sheri Zhang79cb9452021-09-07 14:51:49 +010033 cl_GLsync sync,
Sheri Zhang67354e02021-06-30 16:08:29 +010034 cl_int * errcode_ret) CL_EXT_SUFFIX__VERSION_1_1;
Anthony Barbier6ff3b192017-09-04 18:44:23 +010035
36#ifdef __cplusplus
37}
38#endif
39
40#endif /* __OPENCL_CL_GL_EXT_H */