MCPcopy Create free account
hub / github.com/OpenKinect/libfreenect2 / enqueueReadImage

Function enqueueReadImage

include/internal/CL/cl.hpp:7031–7059  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7029#endif
7030
7031inline cl_int enqueueReadImage(
7032 const Image& image,
7033 cl_bool blocking,
7034 const size_t<3>& origin,
7035 const size_t<3>& region,
7036 ::size_t row_pitch,
7037 ::size_t slice_pitch,
7038 void* ptr,
7039 const VECTOR_CLASS<Event>* events = NULL,
7040 Event* event = NULL)
7041{
7042 cl_int error;
7043 CommandQueue queue = CommandQueue::getDefault(&error);
7044
7045 if (error != CL_SUCCESS) {
7046 return error;
7047 }
7048
7049 return queue.enqueueReadImage(
7050 image,
7051 blocking,
7052 origin,
7053 region,
7054 row_pitch,
7055 slice_pitch,
7056 ptr,
7057 events,
7058 event);
7059}
7060
7061inline cl_int enqueueWriteImage(
7062 const Image& image,

Callers

nothing calls this directly

Calls 1

enqueueReadImageMethod · 0.80

Tested by

no test coverage detected