Clover Git
OpenCL 1.1 software implementation
Defines | Functions

api_gl.cpp File Reference

OpenGL bindings (unimplemented) More...

#include "GL/gl.h"
#include "GL/glext.h"
#include "CL/cl.h"
#include "CL/cl_gl.h"
Include dependency graph for api_gl.cpp:

Go to the source code of this file.

Defines

#define GL_GLEXT_PROTOTYPES

Functions

cl_mem clCreateFromGLBuffer (cl_context context, cl_mem_flags flags, GLuint bufobj, int *errcode_ret)
cl_mem clCreateFromGLTexture2D (cl_context context, cl_mem_flags flags, GLenum target, GLint miplevel, GLuint texture, int *errcode_ret)
cl_mem clCreateFromGLTexture3D (cl_context context, cl_mem_flags flags, GLenum target, GLint miplevel, GLuint texture, int *errcode_ret)
cl_mem clCreateFromGLRenderbuffer (cl_context context, cl_mem_flags flags, GLuint renderbuffer, int *errcode_ret)
cl_int clGetGLObjectInfo (cl_mem memobj, cl_gl_object_type *gl_object_type, GLuint *gl_object_name)
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)
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)
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)

Detailed Description

OpenGL bindings (unimplemented)

Definition in file api_gl.cpp.


Define Documentation

#define GL_GLEXT_PROTOTYPES

Definition at line 33 of file api_gl.cpp.


Function Documentation

cl_mem clCreateFromGLBuffer ( cl_context  context,
cl_mem_flags  flags,
GLuint  bufobj,
int *  errcode_ret 
)

Definition at line 41 of file api_gl.cpp.

cl_mem clCreateFromGLRenderbuffer ( cl_context  context,
cl_mem_flags  flags,
GLuint  renderbuffer,
int *  errcode_ret 
)

Definition at line 72 of file api_gl.cpp.

cl_mem clCreateFromGLTexture2D ( cl_context  context,
cl_mem_flags  flags,
GLenum  target,
GLint  miplevel,
GLuint  texture,
int *  errcode_ret 
)

Definition at line 50 of file api_gl.cpp.

cl_mem clCreateFromGLTexture3D ( cl_context  context,
cl_mem_flags  flags,
GLenum  target,
GLint  miplevel,
GLuint  texture,
int *  errcode_ret 
)

Definition at line 61 of file api_gl.cpp.

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 
)

Definition at line 99 of file api_gl.cpp.

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 
)

Definition at line 110 of file api_gl.cpp.

cl_int clGetGLObjectInfo ( cl_mem  memobj,
cl_gl_object_type *  gl_object_type,
GLuint *  gl_object_name 
)

Definition at line 81 of file api_gl.cpp.

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 
)

Definition at line 89 of file api_gl.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines