Forum Discussion
Altera_Forum
Honored Contributor
7 years agoIn both the cases, the buffer is created and initialized with data.
You could choose first case if you want create buffer and initialize only once in whole program. You could use clEnqueueWriteBuffer if you want to update the buffer values with new data set more than once. I see a size difference in both the cases. You have intialized the buffer with 3968 * 2272 and the you are writing the buffer with 3968 * 2272 *size(pixel). May be you are getting out of order error because of that