Hi Forum Gurus,
I'm new to openCL programming, I have a question about how to write to a particular slice of 2D image in openCL
for example, I have a image type of CL_MEM_OBJECT_IMAGE2D_ARRAY, with width 1902, height 1088, and array_size 4
and I want to write to the 4th slice of 2D image
I had lookup the api and see clEnqueueWriteImage (clEnqueueWriteImage)
but didn't quite get the idea of how to do this
I have tried set the the 5th parameter region[3] = {1920, 1088, 4}, but seems not working
Did I do it write or I had misunderstood the API ?
Thanks a lot in advance : ))
with that region you are writing to four slices and not one. also you may try working with simple 2D image first. also what exactly doesn't work?