Clover Git
OpenCL 1.1 software implementation

api_gl.cpp

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2011, Denis Steckelmacher <steckdenis@yahoo.fr>
00003  * All rights reserved.
00004  *
00005  * Redistribution and use in source and binary forms, with or without
00006  * modification, are permitted provided that the following conditions are met:
00007  *     * Redistributions of source code must retain the above copyright
00008  *       notice, this list of conditions and the following disclaimer.
00009  *     * Redistributions in binary form must reproduce the above copyright
00010  *       notice, this list of conditions and the following disclaimer in the
00011  *       documentation and/or other materials provided with the distribution.
00012  *     * Neither the name of the copyright holder nor the
00013  *       names of its contributors may be used to endorse or promote products
00014  *       derived from this software without specific prior written permission.
00015  *
00016  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
00017  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
00018  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
00019  * DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
00020  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
00021  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
00022  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
00023  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00024  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
00025  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00026  */
00027 
00033 #define GL_GLEXT_PROTOTYPES
00034 #include "GL/gl.h"
00035 #include "GL/glext.h"
00036 
00037 #include "CL/cl.h"
00038 #include "CL/cl_gl.h"
00039 
00040 cl_mem
00041 clCreateFromGLBuffer(cl_context     context,
00042                      cl_mem_flags   flags,
00043                      GLuint         bufobj,
00044                      int *          errcode_ret)
00045 {
00046    return 0;
00047 }
00048 
00049 cl_mem
00050 clCreateFromGLTexture2D(cl_context      context,
00051                         cl_mem_flags    flags,
00052                         GLenum          target,
00053                         GLint           miplevel,
00054                         GLuint          texture,
00055                         int *           errcode_ret)
00056 {
00057    return 0;
00058 }
00059 
00060 cl_mem
00061 clCreateFromGLTexture3D(cl_context      context,
00062                         cl_mem_flags    flags,
00063                         GLenum          target,
00064                         GLint           miplevel,
00065                         GLuint          texture,
00066                         int *           errcode_ret)
00067 {
00068    return 0;
00069 }
00070 
00071 cl_mem
00072 clCreateFromGLRenderbuffer(cl_context   context,
00073                            cl_mem_flags flags,
00074                            GLuint       renderbuffer,
00075                            int *        errcode_ret)
00076 {
00077    return 0;
00078 }
00079 
00080 cl_int
00081 clGetGLObjectInfo(cl_mem                memobj,
00082                   cl_gl_object_type *   gl_object_type,
00083                   GLuint *              gl_object_name)
00084 {
00085    return 0;
00086 }
00087 
00088 cl_int
00089 clGetGLTextureInfo(cl_mem               memobj,
00090                    cl_gl_texture_info   param_name,
00091                    size_t               param_value_size,
00092                    void *               param_value,
00093                    size_t *             param_value_size_ret)
00094 {
00095    return 0;
00096 }
00097 
00098 cl_int
00099 clEnqueueAcquireGLObjects(cl_command_queue      command_queue,
00100                           cl_uint               num_objects,
00101                           const cl_mem *        mem_objects,
00102                           cl_uint               num_events_in_wait_list,
00103                           const cl_event *      event_wait_list,
00104                           cl_event *            event)
00105 {
00106    return 0;
00107 }
00108 
00109 cl_int
00110 clEnqueueReleaseGLObjects(cl_command_queue      command_queue,
00111                           cl_uint               num_objects,
00112                           const cl_mem *        mem_objects,
00113                           cl_uint               num_events_in_wait_list,
00114                           const cl_event *      event_wait_list,
00115                           cl_event *            event)
00116 {
00117    return 0;
00118 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines