Khronos public bugtracker – Bug 501
Consolidate buffer<...>pitch and host<...>pitch in clEnqueue<...>BufferRect and clEnqueueImage<...>
Last modified: 2011-07-26 23:25:20 PDT
Currently, for example in clEnqueueWriteBufferRect, users must specify two separate arguments for buffer pitches (buffer_row_pitch and buffer_slice_pitch) and similarly two for host pitches. I suggest adding a buffer_element_pitch which is equivalent to a stride in a 1D array. Then combine these three buffer pitches into one argument, const size_t buffer_pitch, and similarly const size_t buffer_host. This adds some useful functionality and completes the established pattern observed with const size_t buffer_origin, const size_t host_origin, and const size_t region.