| 6922 | |
| 6923 | #if defined(CL_VERSION_1_1) |
| 6924 | inline cl_int enqueueReadBufferRect( |
| 6925 | const Buffer& buffer, |
| 6926 | cl_bool blocking, |
| 6927 | const size_t<3>& buffer_offset, |
| 6928 | const size_t<3>& host_offset, |
| 6929 | const size_t<3>& region, |
| 6930 | ::size_t buffer_row_pitch, |
| 6931 | ::size_t buffer_slice_pitch, |
| 6932 | ::size_t host_row_pitch, |
| 6933 | ::size_t host_slice_pitch, |
| 6934 | void *ptr, |
| 6935 | const VECTOR_CLASS<Event>* events = NULL, |
| 6936 | Event* event = NULL) |
| 6937 | { |
| 6938 | cl_int error; |
| 6939 | CommandQueue queue = CommandQueue::getDefault(&error); |
| 6940 | |
| 6941 | if (error != CL_SUCCESS) { |
| 6942 | return error; |
| 6943 | } |
| 6944 | |
| 6945 | return queue.enqueueReadBufferRect( |
| 6946 | buffer, |
| 6947 | blocking, |
| 6948 | buffer_offset, |
| 6949 | host_offset, |
| 6950 | region, |
| 6951 | buffer_row_pitch, |
| 6952 | buffer_slice_pitch, |
| 6953 | host_row_pitch, |
| 6954 | host_slice_pitch, |
| 6955 | ptr, |
| 6956 | events, |
| 6957 | event); |
| 6958 | } |
| 6959 | |
| 6960 | inline cl_int enqueueWriteBufferRect( |
| 6961 | const Buffer& buffer, |
nothing calls this directly
no test coverage detected