diff options
Diffstat (limited to 'src/cl_mem.h')
-rw-r--r-- | src/cl_mem.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cl_mem.h b/src/cl_mem.h index 1641dcc4..fd502203 100644 --- a/src/cl_mem.h +++ b/src/cl_mem.h @@ -72,6 +72,7 @@ enum cl_mem_type { CL_MEM_SUBBUFFER_TYPE, CL_MEM_IMAGE_TYPE, CL_MEM_GL_IMAGE_TYPE, + CL_MEM_BUFFER1D_IMAGE_TYPE }; #define IS_IMAGE(mem) (mem->type >= CL_MEM_IMAGE_TYPE) #define IS_GL_IMAGE(mem) (mem->type == CL_MEM_GL_IMAGE_TYPE) @@ -117,6 +118,11 @@ struct _cl_mem_gl_image { uint32_t texture; }; +struct _cl_mem_buffer1d_image { + struct _cl_mem_image base; + uint32_t size; +}; + inline static void cl_mem_image_init(struct _cl_mem_image *image, size_t w, size_t h, cl_mem_object_type image_type, |