Interoperability with Media and Graphics APIs for Windows* OS

Installed with the Intel® Graphics driver, the OpenCL™ Runtime for Windows* OS provides interoperability with other graphics and media APIs such as Microsoft DirectX*, OpenGL*, and the Intel Media SDK. Graphics and Media interoperability enables the applications that use these APIs to benefit from true surface sharing and zero copy on the Intel Graphics OpenCL device, when using according to condition in the table below:

Extension

Condition

DirectX 9 Media
SurfaceSharing

Provide a non-NULL pSharedHandle to clCreateFromDX9MediaSurfaceKHR to implement true sharing.

DirectX 10 and 11
Sharing Memory Objects

Create a resource with D3D10_RESOURCE_MISC_SHARED and D3D11_RESOURCE_MISC_SHARED flag specified to implement true sharing.

OpenGL Sharing
Memory Objects

Depends on your hardware state. No specific way for the application to implement true sharing.

For information on pSharedHandle, see the “Feature Summary (Direct3D* 9 for Windows Vista*)” article.

Use the DirectX 9 API also for interoperability with Intel Media SDK.

For more details on how to take advantage of the interoperability between OpenCL and Intel Media SDK, see the Intel Media SDK Interoperability code sample.

For more information on D3D10_RESOURCE_MISC_SHARED and D3D11_RESOURCE_MISC_SHARED, see “Feature Summary (Direct3D 9 for Windows Vista)” article.

See Also

Intel Media SDK website
Interoperability with Intel Media SDK sample
Feature Summary (Direct3D 9 for Windows Vista) at http://msdn.microsoft.com/en-us/library/windows/desktop/bb219800(v=vs.85).aspx

For more complete information about compiler optimizations, see our Optimization Notice.