AnsweredAssumed Answered

OpenCL 2D image, write to a particular slice of 2D image

Question asked by bwrtjhp on Dec 25, 2013
Latest reply on Dec 26, 2013 by nou

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  : ))