tree: a8b674707a2aff79e767da999347e2cb96bfffd1
  1. .clang-format
  2. cl.h
  3. cl_d3d10.h
  4. cl_d3d11.h
  5. cl_dx9_media_sharing.h
  6. cl_dx9_media_sharing_intel.h
  7. cl_egl.h
  8. cl_ext.h
  9. cl_ext_intel.h
  10. cl_gl.h
  11. cl_gl_ext.h
  12. cl_half.h
  13. cl_icd.h
  14. cl_layer.h
  15. cl_platform.h
  16. cl_va_api_media_sharing_intel.h
  17. cl_version.h
  18. opencl.h
  19. README.md
include/CL/README.md

ANGLE OpenCL Headers

The OpenCL headers ANGLE uses are the original headers from Khronos, but they are modified to allow the macro CL_API_ENTRY to be overridden externally.

The modifications have been submitted to Khronos, and this document should be updated after they are merged.

Regenerating headers

  1. Clone https://github.com/KhronosGroup/OpenCL-Headers.git.

  2. Copy all headers from OpenCL-Headers/CL/ over to this folder.

  3. Edit the headers:

    • Change all occurences of typedef CL_API_ENTRY to typedef.

    • In cl_platform.h change both #define CL_API_ENTRY to

          #if !defined(CL_API_ENTRY)
              #define CL_API_ENTRY
          #endif