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

Method enqueueReadBufferRect

include/internal/CL/cl.hpp:5764–5801  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5762 }
5763
5764 cl_int enqueueReadBufferRect(
5765 const Buffer& buffer,
5766 cl_bool blocking,
5767 const size_t<3>& buffer_offset,
5768 const size_t<3>& host_offset,
5769 const size_t<3>& region,
5770 ::size_t buffer_row_pitch,
5771 ::size_t buffer_slice_pitch,
5772 ::size_t host_row_pitch,
5773 ::size_t host_slice_pitch,
5774 void *ptr,
5775 const VECTOR_CLASS<Event>* events = NULL,
5776 Event* event = NULL) const
5777 {
5778 cl_event tmp;
5779 cl_int err = detail::errHandler(
5780 ::clEnqueueReadBufferRect(
5781 object_,
5782 buffer(),
5783 blocking,
5784 (const ::size_t *)buffer_offset,
5785 (const ::size_t *)host_offset,
5786 (const ::size_t *)region,
5787 buffer_row_pitch,
5788 buffer_slice_pitch,
5789 host_row_pitch,
5790 host_slice_pitch,
5791 ptr,
5792 (events != NULL) ? (cl_uint) events->size() : 0,
5793 (events != NULL && events->size() > 0) ? (cl_event*) &events->front() : NULL,
5794 (event != NULL) ? &tmp : NULL),
5795 __ENQUEUE_READ_BUFFER_RECT_ERR);
5796
5797 if (event != NULL && err == CL_SUCCESS)
5798 *event = tmp;
5799
5800 return err;
5801 }
5802
5803 cl_int enqueueWriteBufferRect(
5804 const Buffer& buffer,

Callers 1

enqueueReadBufferRectFunction · 0.80

Calls 2

errHandlerFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected