I’m trying to do postprocessing of a DirectX 10 scene in OpenCL
Right now I’m creating the DX10 texture from the back buffer like so
swapChain->GetBuffer(0, __uuidof( ID3D10Texture2D ), (LPVOID*)&pBackBuffer );
and then creating the cl resource using
cl_tex2DScreenTex = clCreateFromD3D10Texture2DKHR(context, CL_MEM_READ_ONLY, pBackBuffer, 0, &status)
and status returns error code for CL_INVALID_OPERATION.
According to the documentation (clCreateFromD3D10Texture2DKHR), this error code shouldn’t even come up. Also, this same code worked fine for clCreateFromD3D10BufferKHR.
I’m on an ATI 5870 with the Stream SDK (cl_khr_d3d10_sharing verified as a valid extension )