OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.
1667 Discussions

Simultaneous OpenGL and Direct3D OpenCL interop in context creation..

rtfss1gmail_com
Beginner
225 Views
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?
0 Kudos
0 Replies
Reply