Simultaneous OpenGL and Direct3D OpenCL interop in context creation..

Simultaneous OpenGL and Direct3D OpenCL interop in context creation..

Hi one simple question it's possible to create a OpenCL context with simultaneous OpenGL and D3D interop possible say using:cl_context_properties akProperties[] = {
CL_GL_CONTEXT_KHR,
(cl_context_properties)wglGetCurrentContext(),
CL_WGL_HDC_KHR,
(cl_context_properties)wglGetCurrentDC(),CL_CONTEXT_ADAPTER_D3D9_KHR,gd3ddev
};One usage case is clear using Quicksync for encoding OpenGL frames.. as Intel shows there is OpenCL interop with Media SDK via some d3d9,dxva interop extension.. I would love to be able to encode output of a OpenGL app via Media SDK and seems simultaneous OpenGL and D3D9 interop would solve the problem.. if not what's the recommended way of getting GL frames to OpenCL postprocessing and then sending to Media SDK for encoding all while the buffers remain in GPU mem?

1 contenuto / 0 nuovi
Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione