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

Method enqueueWriteBufferRect

include/internal/CL/cl.hpp:5803–5840  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5801 }
5802
5803 cl_int enqueueWriteBufferRect(
5804 const Buffer& buffer,
5805 cl_bool blocking,
5806 const size_t<3>& buffer_offset,
5807 const size_t<3>& host_offset,
5808 const size_t<3>& region,
5809 ::size_t buffer_row_pitch,
5810 ::size_t buffer_slice_pitch,
5811 ::size_t host_row_pitch,
5812 ::size_t host_slice_pitch,
5813 void *ptr,
5814 const VECTOR_CLASS<Event>* events = NULL,
5815 Event* event = NULL) const
5816 {
5817 cl_event tmp;
5818 cl_int err = detail::errHandler(
5819 ::clEnqueueWriteBufferRect(
5820 object_,
5821 buffer(),
5822 blocking,
5823 (const ::size_t *)buffer_offset,
5824 (const ::size_t *)host_offset,
5825 (const ::size_t *)region,
5826 buffer_row_pitch,
5827 buffer_slice_pitch,
5828 host_row_pitch,
5829 host_slice_pitch,
5830 ptr,
5831 (events != NULL) ? (cl_uint) events->size() : 0,
5832 (events != NULL && events->size() > 0) ? (cl_event*) &events->front() : NULL,
5833 (event != NULL) ? &tmp : NULL),
5834 __ENQUEUE_WRITE_BUFFER_RECT_ERR);
5835
5836 if (event != NULL && err == CL_SUCCESS)
5837 *event = tmp;
5838
5839 return err;
5840 }
5841
5842 cl_int enqueueCopyBufferRect(
5843 const Buffer& src,

Callers 1

enqueueWriteBufferRectFunction · 0.80

Calls 2

errHandlerFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected