summaryrefslogtreecommitdiff
path: root/src/core/api_gl.cpp
blob: 757df6a920159bc3ff9a799be5cd6042c16be882 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#define GL_GLEXT_PROTOTYPES
#include "GL/gl.h"
#include "GL/glext.h"

#include "OpenCL/cl.h"
#include "OpenCL/cl_gl.h"

cl_mem
clCreateFromGLBuffer(cl_context     context,
                     cl_mem_flags   flags,
                     GLuint         bufobj,
                     int *          errcode_ret)
{
   return 0;
}

cl_mem
clCreateFromGLTexture2D(cl_context      context,
                        cl_mem_flags    flags,
                        GLenum          target,
                        GLint           miplevel,
                        GLuint          texture,
                        int *           errcode_ret)
{
   return 0;
}

cl_mem
clCreateFromGLTexture3D(cl_context      context,
                        cl_mem_flags    flags,
                        GLenum          target,
                        GLint           miplevel,
                        GLuint          texture,
                        int *           errcode_ret)
{
   return 0;
}

cl_mem
clCreateFromGLRenderbuffer(cl_context   context,
                           cl_mem_flags flags,
                           GLuint       renderbuffer,
                           int *        errcode_ret)
{
   return 0;
}

cl_int
clGetGLObjectInfo(cl_mem                memobj,
                  cl_gl_object_type *   gl_object_type,
                  GLuint *              gl_object_name)
{
   return 0;
}

cl_int
clGetGLTextureInfo(cl_mem               memobj,
                   cl_gl_texture_info   param_name,
                   size_t               param_value_size,
                   void *               param_value,
                   size_t *             param_value_size_ret)
{
   return 0;
}

cl_int
clEnqueueAcquireGLObjects(cl_command_queue      command_queue,
                          cl_uint               num_objects,
                          const cl_mem *        mem_objects,
                          cl_uint               num_events_in_wait_list,
                          const cl_event *      event_wait_list,
                          cl_event *            event)
{
   return 0;
}

cl_int
clEnqueueReleaseGLObjects(cl_command_queue      command_queue,
                          cl_uint               num_objects,
                          const cl_mem *        mem_objects,
                          cl_uint               num_events_in_wait_list,
                          const cl_event *      event_wait_list,
                          cl_event *            event)
{
   return 0;
}