PDA

View Full Version : Can i use clEnqueueReadBufferRect to copy the column



apankratovantonp
01-30-2013, 03:19 AM
Hi,

I have 4x4 matrix:


1 2 3 4
1 2 3 4
1 2 3 4
1 2 3 4

Can I copy the forth column from the matrix using clEnqueueReadBufferRect, so that the result array would contain:

4 4 4 4
?

And can I copy this column to other 4x4 matrix using this function:


1 2 3 4 0 0 0 4
1 2 3 4 -> 0 0 0 4
1 2 3 4 0 0 0 4
1 2 3 4 0 0 0 4

?