Sorry to tell you that I have not used clEnqueueReleaseD3D10ObjectsKHR , instead I used clEnqueueReleaseD3D9ObjectsNV_fn when I use d3d9ex intergration with OpenCL. I find that clEnqueueReleaseD3D9ObjectsNV_fn can not reduce the reference count of the d3d9 texture even its return value is success. First I think maybe my code is wrong. So I checked the sample code Nvidia provided(its name is oclSimpleD3D9Texture, and can be found on Nvidia sample code download page). But the same problem also exists, clEnqueueReleaseD3D9ObjectsNV_fn return cl_success, but the reference count is not reduced. so I want to know whether clEnqueueReleaseD3D10ObjectsKHR has the same problem? It will take me some time to change my code to d3d10 & OpenCL, so I am here and ask you for help. thank you!
I just used some test codes and found clEnqueueReleaseD3D10ObjectsKHR has the same problem. Is this a bug?