IHolographicQuadLayerUpdateParametersInterop インターフェイス (windows.graphics.holographic.interop.h)

IHolographicQuadLayerUpdateParametersInterop インターフェイスは nano-COM インターフェイスであり、対応する HolographicFrame でクワッド レイヤー レンダリング用のバッファー リソースDirect3D 12コミットするために使用されます。

インターフェイスを使用すると、ホログラフィック レンダリングにDirect3D 12を使用するアプリケーションの HolographicQuadLayerUpdateParameters クラスとの COM 相互運用が可能になります。 Nano-COM を使用すると、コンテナー オブジェクトを経由するのではなく、Direct3D 12 オブジェクトを API 呼び出しのパラメーターとして直接使用できます。

継承

IHolographicQuadLayerUpdateParametersInterop インターフェイスは、IInspectable インターフェイスから継承します。

メソッド

IHolographicQuadLayerUpdateParametersInterop インターフェイスには、これらのメソッドがあります。

 
IHolographicQuadLayerUpdateParametersInterop::CommitDirect3D12Resource

四角形レイヤーがアタッチされている HolographicCamera に関連付けられている出力でプレゼンテーション用のDirect3D 12 バッファーをコミットします。

解説

C++/WinRT でこのインターフェイスを使用するには、HolographicFrame から HolographicQuadLayerUpdateParameters オブジェクトを取得し、IHolographicQuadLayerUpdateParametersInterop インターフェイスの QueryInterface を取得します。

auto quadLayerParameters{ holographicFrame.GetQuadLayerUpdateParameters(m_quadLayer) };
winrt::com_ptr<IHolographicQuadLayerUpdateParametersInterop> quadLayerParametersInterop{
    quadLayerParameters.as<IHolographicQuadLayerUpdateParametersInterop>() };

C++/CX でこのインターフェイスを使用するには、最初に HolographicQuadLayerUpdateParameters オブジェクト ( HolographicFrame から取得した後) を IInspectable* にキャストします。 次に、IInspectable ポインターからの IHolographicQuadLayerUpdateParametersInterop インターフェイスの QueryInterface。

auto quadLayerParameters = holographicFrame->GetQuadLayerUpdateParameters(m_quadLayer);
Microsoft::WRL::ComPtr<IHolographicQuadLayerUpdateParametersInterop> quadLayerParametersInterop;
{
    Microsoft::WRL::ComPtr<IInspectable> iInspectable = reinterpret_cast<IInspectable*>(quadLayerParameters);
    DX::ThrowIfFailed(iInspectable.As(&quadLayerParamsInterop));
}

要件

   
サポートされている最小のクライアント Windows 10バージョン 2004 (10.0;ビルド 19041)
サポートされている最小のサーバー Windows Server バージョン 2004 (10.0;ビルド 19041)
Header windows.graphics.holographic.interop.h