the code :AMD APP SDK\2.9\samples\openclSimpleDX9.exe error's here:
status = pfn_clGetDeviceIDsFromDX9MediaAdapterKHR(platform, numAdapters,&type,
(void *)m_pD3DDevice9,
CL_PREFERRED_DEVICES_FOR_DX9_MEDIA_ADAPTER_KHR, 1,devices, &num);
change the code like this is OK!!
status = pfn_clGetDeviceIDsFromDX9MediaAdapterKHR(platform, numAdapters,&type,
&m_pD3DDevice9,
CL_PREFERRED_DEVICES_FOR_DX9_MEDIA_ADAPTER_KHR, 1,&device, &num);
the latest APP SDK 2.9-1 openclSimpleDX9.exe change is to much!
and another question why i use interop with d3d9 to rendering image only 60 fps is so slow. the wite_imagef is cost much time; or my code is so slow?