cl_gl_ext.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /**********************************************************************************
  2. * Copyright (c) 2008-2012 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. * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  16. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  17. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  18. * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  19. * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  20. * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  21. * MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
  22. **********************************************************************************/
  23. /* $Revision: 11708 $ on $Date: 2010-06-13 23:36:24 -0700 (Sun, 13 Jun 2010) $ */
  24. /* cl_gl_ext.h contains vendor (non-KHR) OpenCL extensions which have */
  25. /* OpenGL dependencies. */
  26. #ifndef __OPENCL_CL_GL_EXT_H
  27. #define __OPENCL_CL_GL_EXT_H
  28. #ifdef __cplusplus
  29. extern "C" {
  30. #endif
  31. #ifdef __APPLE__
  32. #include <OpenCL/cl_gl.h>
  33. #else
  34. #include <CL/cl_gl.h>
  35. #endif
  36. /*
  37. * For each extension, follow this template
  38. * cl_VEN_extname extension */
  39. /* #define cl_VEN_extname 1
  40. * ... define new types, if any
  41. * ... define new tokens, if any
  42. * ... define new APIs, if any
  43. *
  44. * If you need GLtypes here, mirror them with a cl_GLtype, rather than including a GL header
  45. * This allows us to avoid having to decide whether to include GL headers or GLES here.
  46. */
  47. /*
  48. * cl_khr_gl_event extension
  49. * See section 9.9 in the OpenCL 1.1 spec for more information
  50. */
  51. #define CL_COMMAND_GL_FENCE_SYNC_OBJECT_KHR 0x200D
  52. extern CL_API_ENTRY cl_event CL_API_CALL
  53. clCreateEventFromGLsyncKHR(cl_context /* context */,
  54. cl_GLsync /* cl_GLsync */,
  55. cl_int * /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_1;
  56. #ifdef __cplusplus
  57. }
  58. #endif
  59. #endif /* __OPENCL_CL_GL_EXT_H */