Hi all,

To create and load a memory buffer I call the following functions:

clInputBuffer := clCreateBuffer(clContext, CL_MEM_READ_WRITE or CL_MEM_USE_HOST_PTR, 4 {sizeof(cl_uint)}*720*576, src.bits, errNum);
errNum := clEnqueueWriteBuffer(clCommandQueue, clInputBuffer, CL_TRUE, 0, 720*576*{sizeof(cl_uint)}4, src.bits, 0, NULL, NULL);

why must the host pointer be initialised twice.? It works correctly but the duplication makes me think I am doing something wrong.

Any info on the logic would be helpfull helpfull.

thanks,
Robert