Simultaneous creation of OpenCL with OpenGL and D3D interop..

Discussion created by oscarbarenys1 on Nov 3, 2010
Latest reply on Dec 7, 2010 by himanshu.gautam




Nvidia has been speaking about OGL-DX interop since last year GTC 2009 and now has just released WGL_NV_DX_interop spec and drivers supporting it..

Seems an interesting extension which useful cases as:


also could be good for an OpenGL video player using DXVA GPU video decode and mapping d3d texture with video frames to OGL textures all without the host to comunicate..

If not implement in OGL drivers you could enable similar functionality via OpenCL allowing to create an OpenCL context with simultaneous OpenGL and Direct3D interop..  This would allow avoiding going through host in these scenarios although still require a device copy.. Your OpenCL driver allows for OGL and D3D10 interop but not simultaneously and that could be supported by using current API using in clCreateContext both CL_GL_CONTEXT_KHR, CL_WGL_HDC_KHR and CL_CONTEXT_D3D10_DEVICE_KHR ..

So are you interested in implementing in future releases?

PS: Don't allow Nvidia to be one step ahead in GPU computing

currently OpenCL seems to use only first info..