| 6741 | } |
| 6742 | |
| 6743 | inline void* enqueueMapBuffer( |
| 6744 | const Buffer& buffer, |
| 6745 | cl_bool blocking, |
| 6746 | cl_map_flags flags, |
| 6747 | ::size_t offset, |
| 6748 | ::size_t size, |
| 6749 | const VECTOR_CLASS<Event>* events = NULL, |
| 6750 | Event* event = NULL, |
| 6751 | cl_int* err = NULL) |
| 6752 | { |
| 6753 | cl_int error; |
| 6754 | CommandQueue queue = CommandQueue::getDefault(&error); |
| 6755 | detail::errHandler(error, __ENQUEUE_MAP_BUFFER_ERR); |
| 6756 | if (err != NULL) { |
| 6757 | *err = error; |
| 6758 | } |
| 6759 | |
| 6760 | void * result = ::clEnqueueMapBuffer( |
| 6761 | queue(), buffer(), blocking, flags, offset, size, |
| 6762 | (events != NULL) ? (cl_uint) events->size() : 0, |
| 6763 | (events != NULL && events->size() > 0) ? (cl_event*) &events->front() : NULL, |
| 6764 | (cl_event*) event, |
| 6765 | &error); |
| 6766 | |
| 6767 | detail::errHandler(error, __ENQUEUE_MAP_BUFFER_ERR); |
| 6768 | if (err != NULL) { |
| 6769 | *err = error; |
| 6770 | } |
| 6771 | return result; |
| 6772 | } |
| 6773 | |
| 6774 | inline cl_int enqueueUnmapMemObject( |
| 6775 | const Memory& memory, |
nothing calls this directly
no test coverage detected