|
Packit |
bc1512 |
/**********************************************************************************
|
|
Packit |
bc1512 |
* Copyright (c) 2008-2010 The Khronos Group Inc.
|
|
Packit |
bc1512 |
*
|
|
Packit |
bc1512 |
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
Packit |
bc1512 |
* copy of this software and/or associated documentation files (the
|
|
Packit |
bc1512 |
* "Materials"), to deal in the Materials without restriction, including
|
|
Packit |
bc1512 |
* without limitation the rights to use, copy, modify, merge, publish,
|
|
Packit |
bc1512 |
* distribute, sublicense, and/or sell copies of the Materials, and to
|
|
Packit |
bc1512 |
* permit persons to whom the Materials are furnished to do so, subject to
|
|
Packit |
bc1512 |
* the following conditions:
|
|
Packit |
bc1512 |
*
|
|
Packit |
bc1512 |
* The above copyright notice and this permission notice shall be included
|
|
Packit |
bc1512 |
* in all copies or substantial portions of the Materials.
|
|
Packit |
bc1512 |
*
|
|
Packit |
bc1512 |
* THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
Packit |
bc1512 |
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
Packit |
bc1512 |
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
Packit |
bc1512 |
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
Packit |
bc1512 |
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
Packit |
bc1512 |
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
Packit |
bc1512 |
* MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
|
Packit |
bc1512 |
**********************************************************************************/
|
|
Packit |
bc1512 |
|
|
Packit |
bc1512 |
/* $Revision: 11708 $ on $Date: 2010-06-13 23:36:24 -0700 (Sun, 13 Jun 2010) $ */
|
|
Packit |
bc1512 |
|
|
Packit |
bc1512 |
/* cl_gl_ext.h contains vendor (non-KHR) OpenCL extensions which have */
|
|
Packit |
bc1512 |
/* OpenGL dependencies. */
|
|
Packit |
bc1512 |
|
|
Packit |
bc1512 |
#ifndef __OPENCL_CL_GL_EXT_H
|
|
Packit |
bc1512 |
#define __OPENCL_CL_GL_EXT_H
|
|
Packit |
bc1512 |
|
|
Packit |
bc1512 |
#ifdef __cplusplus
|
|
Packit |
bc1512 |
extern "C" {
|
|
Packit |
bc1512 |
#endif
|
|
Packit |
bc1512 |
|
|
Packit |
bc1512 |
#ifdef __APPLE__
|
|
Packit |
bc1512 |
#include <OpenCL/cl_gl.h>
|
|
Packit |
bc1512 |
#else
|
|
Packit |
bc1512 |
#include "cl_gl.h"
|
|
Packit |
bc1512 |
#endif
|
|
Packit |
bc1512 |
|
|
Packit |
bc1512 |
/*
|
|
Packit |
bc1512 |
* For each extension, follow this template
|
|
Packit |
bc1512 |
* cl_VEN_extname extension */
|
|
Packit |
bc1512 |
/* #define cl_VEN_extname 1
|
|
Packit |
bc1512 |
* ... define new types, if any
|
|
Packit |
bc1512 |
* ... define new tokens, if any
|
|
Packit |
bc1512 |
* ... define new APIs, if any
|
|
Packit |
bc1512 |
*
|
|
Packit |
bc1512 |
* If you need GLtypes here, mirror them with a cl_GLtype, rather than including a GL header
|
|
Packit |
bc1512 |
* This allows us to avoid having to decide whether to include GL headers or GLES here.
|
|
Packit |
bc1512 |
*/
|
|
Packit |
bc1512 |
|
|
Packit |
bc1512 |
/*
|
|
Packit |
bc1512 |
* cl_khr_gl_event extension
|
|
Packit |
bc1512 |
* See section 9.9 in the OpenCL 1.1 spec for more information
|
|
Packit |
bc1512 |
*/
|
|
Packit |
bc1512 |
#define CL_COMMAND_GL_FENCE_SYNC_OBJECT_KHR 0x200D
|
|
Packit |
bc1512 |
|
|
Packit |
bc1512 |
extern CL_API_ENTRY cl_event CL_API_CALL
|
|
Packit |
bc1512 |
clCreateEventFromGLsyncKHR(cl_context /* context */,
|
|
Packit |
bc1512 |
cl_GLsync /* cl_GLsync */,
|
|
Packit |
bc1512 |
cl_int * /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_1;
|
|
Packit |
bc1512 |
|
|
Packit |
bc1512 |
#ifdef __cplusplus
|
|
Packit |
bc1512 |
}
|
|
Packit |
bc1512 |
#endif
|
|
Packit |
bc1512 |
|
|
Packit |
bc1512 |
#endif /* __OPENCL_CL_GL_EXT_H */
|