summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJunyan He <junyan.he@intel.com>2016-03-22 20:48:06 +0800
committerJunyan He <junyan.he@intel.com>2016-03-22 20:48:06 +0800
commitc277fcddc826ce69a92f5bdf684e4d083a80db68 (patch)
tree1265741e0080b605b4bc33a45c12fc4c33ef7daf /include
parentb6c342b4db15e4c942d39e9ef551952f4a2c9df3 (diff)
arg
Diffstat (limited to 'include')
-rw-r--r--include/cl_kernel.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/cl_kernel.h b/include/cl_kernel.h
index d70a8901..4890a427 100644
--- a/include/cl_kernel.h
+++ b/include/cl_kernel.h
@@ -21,6 +21,14 @@
#include <stdint.h>
#include "CL/cl.h"
+typedef cl_uint cl_kernel_arg_type;
+#define CL_KERNEL_ARG_NONE 0
+#define CL_KERNEL_ARG_VALUE 1
+#define CL_KERNEL_ARG_PTR 2
+#define CL_KERNEL_ARG_SAMPLER 3
+#define CL_KERNEL_ARG_IMAGE 4
+
+
typedef struct _cl_argument {
union {
cl_mem mem; /* For image and regular buffers */
@@ -30,7 +38,8 @@ typedef struct _cl_argument {
cl_uint index; /* The arg number within one kernel. */
cl_kernel_arg_address_qualifier qualifier;
cl_kernel_arg_access_qualifier access;
- cl_kernel_arg_type_qualifier type;
+ cl_kernel_arg_type_qualifier type_qualifier;
+ cl_kernel_arg_type type;
char* name;
uint32_t local_sz:31; /* For __local size specification */
uint32_t is_set:1; /* All args must be set before NDRange */