Originally posted by: jasno
When I read the docs for region at
"The (width, height, depth) in bytes of the 2D or 3D rectangle being read or written. For a 2D rectangle copy, the
depthvalue given by
region should be 1." but I don't understand how to describe the rectangle width, height and depth "in bytes", surely it should be in terms of numbers of entries ? I can just about think about describing one of the dimension in bytes, but surely not all three?
Try downloading the pdf of the OpenCL specification (Version: 1.1, Revision: 44). In there you'll find this issue has been clarified:
"region defines the (width in bytes, height in rows, depth in slices) of the 2D or 3D rectangle being read or written. For a 2D rectangle copy, the depth value given by region should be 1."