diff options
Diffstat (limited to 'src/api_memory.c')
-rw-r--r-- | src/api_memory.c | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/src/api_memory.c b/src/api_memory.c new file mode 100644 index 0000000..19d4095 --- /dev/null +++ b/src/api_memory.c @@ -0,0 +1,84 @@ +#include <OpenCL/cl.h> + + +// Memory Object APIs +cl_mem +clCreateBuffer(cl_context context, + cl_mem_flags flags, + size_t size, + void * host_ptr, + cl_int * errcode_ret) +{ + return 0; +} + +cl_mem +clCreateImage2D(cl_context context, + cl_mem_flags flags, + const cl_image_format * image_format, + size_t image_width, + size_t image_height, + size_t image_row_pitch, + void * host_ptr, + cl_int * errcode_ret) +{ + return 0; +} + +cl_mem +clCreateImage3D(cl_context context, + cl_mem_flags flags, + const cl_image_format * image_format, + size_t image_width, + size_t image_height, + size_t image_depth, + size_t image_row_pitch, + size_t image_slice_pitch, + void * host_ptr, + cl_int * errcode_ret) +{ + return 0; +} + +cl_int +clRetainMemObject(cl_mem memobj) +{ + return 0; +} + +cl_int +clReleaseMemObject(cl_mem memobj) +{ + return 0; +} + +cl_int +clGetSupportedImageFormats(cl_context context, + cl_mem_flags flags, + cl_mem_object_type image_type, + cl_uint num_entries, + cl_image_format * image_formats, + cl_uint * num_image_formats) +{ + return 0; +} + +cl_int +clGetMemObjectInfo(cl_mem memobj, + cl_mem_info param_name, + size_t param_value_size, + void * param_value, + size_t * param_value_size_ret) +{ + return 0; +} + +cl_int +clGetImageInfo(cl_mem image, + cl_image_info param_name, + size_t param_value_size, + void * param_value, + size_t * param_value_size_ret) +{ + return 0; +} |