通常 clCreateImage2D 中的第二个参数是标志 CL_MEM_READ 等。但我在其中一个示例代码中发现它为 0(P. no: 80, Heterogeneous Computing using openCL ):
//Create space for the source image on the device
cl_mem bufferSourceImage = clCreateImage2D(
context,0,&format, width,height,0,NULL,NULL);
为什么会这样?