Skip to content

Commit

Permalink
Move CL/GL type declarations from cl_platform.h to cl_gl.h
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Petit <kevin.petit@arm.com>
  • Loading branch information
kpet committed Jul 10, 2024
1 parent f6f5aa5 commit 0659f7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CL/cl_gl.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ extern "C" {
#define CL_KHR_GL_SHARING_EXTENSION_NAME \
"cl_khr_gl_sharing"

/* Mirror types to GL types. Mirror types allow us to avoid deciding which 87s to load based on whether we are using GL or GLES here. */
typedef unsigned int cl_GLuint;
typedef int cl_GLint;
typedef unsigned int cl_GLenum;

typedef cl_uint cl_gl_context_info;

/* Error codes */
Expand Down
5 changes: 0 additions & 5 deletions CL/cl_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -361,11 +361,6 @@ typedef double cl_double;

#include <stddef.h>

/* Mirror types to GL types. Mirror types allow us to avoid deciding which 87s to load based on whether we are using GL or GLES here. */
typedef unsigned int cl_GLuint;
typedef int cl_GLint;
typedef unsigned int cl_GLenum;

/*
* Vector types
*
Expand Down

0 comments on commit 0659f7e

Please sign in to comment.