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

Function enqueueCopyBuffer

include/internal/CL/cl.hpp:6802–6819  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6800}
6801
6802inline cl_int enqueueCopyBuffer(
6803 const Buffer& src,
6804 const Buffer& dst,
6805 ::size_t src_offset,
6806 ::size_t dst_offset,
6807 ::size_t size,
6808 const VECTOR_CLASS<Event>* events = NULL,
6809 Event* event = NULL)
6810{
6811 cl_int error;
6812 CommandQueue queue = CommandQueue::getDefault(&error);
6813
6814 if (error != CL_SUCCESS) {
6815 return error;
6816 }
6817
6818 return queue.enqueueCopyBuffer(src, dst, src_offset, dst_offset, size, events, event);
6819}
6820
6821/**
6822 * Blocking copy operation between iterators and a buffer.

Callers

nothing calls this directly

Calls 1

enqueueCopyBufferMethod · 0.80

Tested by

no test coverage detected