2 Replies Latest reply on Dec 7, 2010 5:26 PM by himanshu.gautam

    Simultaneous creation of OpenCL with OpenGL and D3D interop..

    oscarbarenys1

       

      Hi,

       

      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:

      http://www.opentk.com/node/2120

      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..

       

      Thanks.