windows.graphics.holographic.interop.h header

The APIs in the Windows.Graphics.Holographic.Interop.h header allow Windows Mixed Reality apps to use Direct3D 12. The interfaces specified in this header use COM interface pointers to pass DirectX COM objects as parameters to methods on Windows Runtime objects in the Windows.Graphics.Holographic namespace, allowing Windows Mixed Reality apps to create and use Direct3D 12 buffer resources with no additional overhead.

Sample code for this API set is included in the Windows Mixed Reality Direct3D 12 app template. The Windows Mixed Reality Direct3D 12 app template includes boilerplate code for most APIs that are provided in the Windows.Graphics.Holographic.Interop.h header, and renders a spinning cube on a Windows Mixed Reality PC, a HoloLens 2, and the HoloLens 2 emulator.

This header is used by Direct3D 12 Graphics. For more information, see:

windows.graphics.holographic.interop.h contains the following programming interfaces:

Interfaces

Title Description
graphics::holographic::interop::IHolographicCameraInterop Extends HolographicCamera to allow 2D texture resources to be created and used as back buffers for holographic rendering in Direct3D 12.
graphics::holographic::interop::IHolographicCameraRenderingParametersInterop A nano-COM interface that allows COM interop with the HolographicCameraRenderingParameters class for applications that use Direct3D 12 for holographic rendering.
graphics::holographic::interop::IHolographicQuadLayerInterop A nano-COM interface that allows COM interop with the HolographicQuadLayer Windows Runtime class for apps that use Direct3D 12 for holographic rendering.
graphics::holographic::interop::IHolographicQuadLayerUpdateParametersInterop A nano-COM interface that allows COM interop with the HolographicQuadLayerUpdateParameters class for applications that use Direct3D 12 for holographic rendering.