Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef __OPENCL_CL_GL_H
00025 #define __OPENCL_CL_GL_H
00026
00027 #ifdef __APPLE__
00028 #include <OpenCL/cl_platform.h>
00029 #else
00030 #include <MiniCL/cl_platform.h>
00031 #endif
00032
00033 #ifdef __cplusplus
00034 extern "C" {
00035 #endif
00036
00037
00038
00039 typedef cl_uint cl_gl_object_type;
00040 typedef cl_uint cl_gl_texture_info;
00041 typedef cl_uint cl_gl_platform_info;
00042
00043
00044 #define CL_GL_OBJECT_BUFFER 0x2000
00045 #define CL_GL_OBJECT_TEXTURE2D 0x2001
00046 #define CL_GL_OBJECT_TEXTURE3D 0x2002
00047 #define CL_GL_OBJECT_RENDERBUFFER 0x2003
00048
00049
00050 #define CL_GL_TEXTURE_TARGET 0x2004
00051 #define CL_GL_MIPMAP_LEVEL 0x2005
00052
00053 extern CL_API_ENTRY cl_mem CL_API_CALL
00054 clCreateFromGLBuffer(cl_context ,
00055 cl_mem_flags ,
00056 GLuint ,
00057 int * ) CL_API_SUFFIX__VERSION_1_0;
00058
00059 extern CL_API_ENTRY cl_mem CL_API_CALL
00060 clCreateFromGLTexture2D(cl_context ,
00061 cl_mem_flags ,
00062 GLenum ,
00063 GLint ,
00064 GLuint ,
00065 cl_int * ) CL_API_SUFFIX__VERSION_1_0;
00066
00067 extern CL_API_ENTRY cl_mem CL_API_CALL
00068 clCreateFromGLTexture3D(cl_context ,
00069 cl_mem_flags ,
00070 GLenum ,
00071 GLint ,
00072 GLuint ,
00073 cl_int * ) CL_API_SUFFIX__VERSION_1_0;
00074
00075 extern CL_API_ENTRY cl_mem CL_API_CALL
00076 clCreateFromGLRenderbuffer(cl_context ,
00077 cl_mem_flags ,
00078 GLuint ,
00079 cl_int * ) CL_API_SUFFIX__VERSION_1_0;
00080
00081 extern CL_API_ENTRY cl_int CL_API_CALL
00082 clGetGLObjectInfo(cl_mem ,
00083 cl_gl_object_type * ,
00084 GLuint * ) CL_API_SUFFIX__VERSION_1_0;
00085
00086 extern CL_API_ENTRY cl_int CL_API_CALL
00087 clGetGLTextureInfo(cl_mem ,
00088 cl_gl_texture_info ,
00089 size_t ,
00090 void * ,
00091 size_t * ) CL_API_SUFFIX__VERSION_1_0;
00092
00093 extern CL_API_ENTRY cl_int CL_API_CALL
00094 clEnqueueAcquireGLObjects(cl_command_queue ,
00095 cl_uint ,
00096 const cl_mem * ,
00097 cl_uint ,
00098 const cl_event * ,
00099 cl_event * ) CL_API_SUFFIX__VERSION_1_0;
00100
00101 extern CL_API_ENTRY cl_int CL_API_CALL
00102 clEnqueueReleaseGLObjects(cl_command_queue ,
00103 cl_uint ,
00104 const cl_mem * ,
00105 cl_uint ,
00106 const cl_event * ,
00107 cl_event * ) CL_API_SUFFIX__VERSION_1_0;
00108
00109 #ifdef __cplusplus
00110 }
00111 #endif
00112
00113 #endif // __OPENCL_CL_GL_H