Path: blob/master/3rdparty/include/opencl/1.2/CL/cl_gl_ext.h
16348 views
/**********************************************************************************1* Copyright (c) 2008-2012 The Khronos Group Inc.2*3* Permission is hereby granted, free of charge, to any person obtaining a4* copy of this software and/or associated documentation files (the5* "Materials"), to deal in the Materials without restriction, including6* without limitation the rights to use, copy, modify, merge, publish,7* distribute, sublicense, and/or sell copies of the Materials, and to8* permit persons to whom the Materials are furnished to do so, subject to9* the following conditions:10*11* The above copyright notice and this permission notice shall be included12* in all copies or substantial portions of the Materials.13*14* THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,15* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF16* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.17* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY18* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,19* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE20* MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.21**********************************************************************************/2223/* $Revision: 11708 $ on $Date: 2010-06-13 23:36:24 -0700 (Sun, 13 Jun 2010) $ */2425/* cl_gl_ext.h contains vendor (non-KHR) OpenCL extensions which have */26/* OpenGL dependencies. */2728#ifndef __OPENCL_CL_GL_EXT_H29#define __OPENCL_CL_GL_EXT_H3031#ifdef __cplusplus32extern "C" {33#endif3435#ifdef __APPLE__36#include <OpenCL/cl_gl.h>37#else38#include <CL/cl_gl.h>39#endif4041/*42* For each extension, follow this template43* cl_VEN_extname extension */44/* #define cl_VEN_extname 145* ... define new types, if any46* ... define new tokens, if any47* ... define new APIs, if any48*49* If you need GLtypes here, mirror them with a cl_GLtype, rather than including a GL header50* This allows us to avoid having to decide whether to include GL headers or GLES here.51*/5253/*54* cl_khr_gl_event extension55* See section 9.9 in the OpenCL 1.1 spec for more information56*/57#define CL_COMMAND_GL_FENCE_SYNC_OBJECT_KHR 0x200D5859extern CL_API_ENTRY cl_event CL_API_CALL60clCreateEventFromGLsyncKHR(cl_context /* context */,61cl_GLsync /* cl_GLsync */,62cl_int * /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_1;6364#ifdef __cplusplus65}66#endif6768#endif /* __OPENCL_CL_GL_EXT_H */697071