OpenCL enqueueWriteImage no const void* ptr in C++ wrapper but in C function -
in cl2.hpp
enqueuewriteimage takes void* ptr
calls c function clenqueuewriteimage
takes const void* ptr
. why that?
cl_int enqueuewriteimage( const image& image, cl_bool blocking, const array<size_type, 3>& origin, const array<size_type, 3>& region, size_type row_pitch, size_type slice_pitch, void* ptr, const vector<event>* events = null, event* event = null) const { cl_event tmp; cl_int err = detail::errhandler( ::clenqueuewriteimage(//... here const void* ptr appears
is intended or typo? because calling function accepts const void* ptr
const, too.
you correct; bug in opencl c++ bindings. there few other enqueuewrite*
functions same issue. i've pushed fix khronos github repository these headers - included in next release.
Comments
Post a Comment