IHolographicCameraRenderingParametersInterop interface (windows.graphics.holographic.interop.h)

The IHolographicCameraRenderingParametersInterop interface is a nano-COM interface, used to commit Direct3D 12 buffer resources for presentation during the corresponding HolographicFrame.

The interface allows COM interop with the HolographicCameraRenderingParameters Windows Runtime class for applications that use Direct3D 12 for holographic rendering. Nano-COM allows Direct3D 12 objects to be used directly as parameters for API calls, rather than going through a container object.

Inheritance

The IHolographicCameraRenderingParametersInterop interface inherits from the IInspectable interface.

Methods

The IHolographicCameraRenderingParametersInterop interface has these methods.

 
IHolographicCameraRenderingParametersInterop::CommitDirect3D12Resource

The IHolographicCameraRenderingParametersInterop::CommitDirect3D12Resource function commits a Direct3D 12 buffer for presentation on HolographicCamera outputs.
IHolographicCameraRenderingParametersInterop::CommitDirect3D12ResourceWithDepthData

The IHolographicCameraRenderingParametersInterop::CommitDirect3D12ResourceWithDepthData function commits a Direct3D 12 buffer for HolographicCamera outputs.

Remarks

To use this interface in C++/WinRT, retrieve the HolographicCameraRenderingParameters object from the HolographicFrame, and then QueryInterface for the IHolographicCameraRenderingParametersInterop interface.

auto holographicCameraRenderingParameters { holographicFrame.GetRenderingParameters(m_cameraPose) };
winrt::com_ptr<IHolographicCameraRenderingParametersInterop> holographicCameraRenderingParametersInterop
{
    holographicCameraRenderingParameters.as<IHolographicCameraRenderingParametersInterop>();
};

To use this interface in C++/CX, first cast the HolographicCameraRenderingParameters object (after retrieving it from the HolographicFrame) to IInspectable*. Then QueryInterface for the IHolographicCameraRenderingParametersInterop interface from the IInspectable pointer.

auto holographicCameraRenderingParameters = 
    holographicFrame->GetRenderingParameters(m_cameraPose);
Microsoft::WRL::ComPtr<IHolographicCameraRenderingParametersInterop> 
    holographicCameraRenderingParametersInterop;
{
    Microsoft::WRL::ComPtr<IInspectable> iInspectable = reinterpret_cast<IInspectable*>(holographicCameraRenderingParameters);
    DX::ThrowIfFailed(iInspectable.As(&holographicCameraRenderingParametersInterop));
}

Requirements

Requirement Value
Minimum supported client Windows 10, version 2004 (10.0; Build 19041)
Minimum supported server Windows Server, version 2004 (10.0; Build 19041)
Header windows.graphics.holographic.interop.h