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

Function enqueueReadBufferRect

include/internal/CL/cl.hpp:6924–6958  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6922
6923#if defined(CL_VERSION_1_1)
6924inline 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
6960inline cl_int enqueueWriteBufferRect(
6961 const Buffer& buffer,

Callers

nothing calls this directly

Calls 1

enqueueReadBufferRectMethod · 0.80

Tested by

no test coverage detected