// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_Graphics_Holographic_H #define WINRT_Windows_Graphics_Holographic_H #include "winrt/base.h" static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); #define CPPWINRT_VERSION "2.0.240405.15" #include "winrt/Windows.Graphics.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.Foundation.Collections.2.h" #include "winrt/impl/Windows.Foundation.Numerics.2.h" #include "winrt/impl/Windows.Graphics.DirectX.2.h" #include "winrt/impl/Windows.Graphics.DirectX.Direct3D11.2.h" #include "winrt/impl/Windows.Perception.2.h" #include "winrt/impl/Windows.Perception.Spatial.2.h" #include "winrt/impl/Windows.UI.Core.2.h" #include "winrt/impl/Windows.Graphics.Holographic.2.h" namespace winrt::impl { template auto consume_Windows_Graphics_Holographic_IHolographicCamera::RenderTargetSize() const { winrt::Windows::Foundation::Size value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCamera)->get_RenderTargetSize(put_abi(value))); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicCamera::ViewportScaleFactor() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCamera)->get_ViewportScaleFactor(&value)); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicCamera::ViewportScaleFactor(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCamera)->put_ViewportScaleFactor(value)); } template auto consume_Windows_Graphics_Holographic_IHolographicCamera::IsStereo() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCamera)->get_IsStereo(&value)); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicCamera::Id() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCamera)->get_Id(&value)); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicCamera::SetNearPlaneDistance(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCamera)->SetNearPlaneDistance(value)); } template auto consume_Windows_Graphics_Holographic_IHolographicCamera::SetFarPlaneDistance(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCamera)->SetFarPlaneDistance(value)); } template auto consume_Windows_Graphics_Holographic_IHolographicCamera2::LeftViewportParameters() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCamera2)->get_LeftViewportParameters(&result)); return winrt::Windows::Graphics::Holographic::HolographicCameraViewportParameters{ result, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicCamera2::RightViewportParameters() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCamera2)->get_RightViewportParameters(&result)); return winrt::Windows::Graphics::Holographic::HolographicCameraViewportParameters{ result, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicCamera2::Display() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCamera2)->get_Display(&result)); return winrt::Windows::Graphics::Holographic::HolographicDisplay{ result, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicCamera3::IsPrimaryLayerEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCamera3)->get_IsPrimaryLayerEnabled(&value)); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicCamera3::IsPrimaryLayerEnabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCamera3)->put_IsPrimaryLayerEnabled(value)); } template auto consume_Windows_Graphics_Holographic_IHolographicCamera3::MaxQuadLayerCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCamera3)->get_MaxQuadLayerCount(&value)); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicCamera3::QuadLayers() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCamera3)->get_QuadLayers(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicCamera4::CanOverrideViewport() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCamera4)->get_CanOverrideViewport(&value)); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicCamera5::IsHardwareContentProtectionSupported() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCamera5)->get_IsHardwareContentProtectionSupported(&value)); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicCamera5::IsHardwareContentProtectionEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCamera5)->get_IsHardwareContentProtectionEnabled(&value)); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicCamera5::IsHardwareContentProtectionEnabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCamera5)->put_IsHardwareContentProtectionEnabled(value)); } template auto consume_Windows_Graphics_Holographic_IHolographicCamera6::ViewConfiguration() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCamera6)->get_ViewConfiguration(&value)); return winrt::Windows::Graphics::Holographic::HolographicViewConfiguration{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicCameraPose::HolographicCamera() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCameraPose)->get_HolographicCamera(&value)); return winrt::Windows::Graphics::Holographic::HolographicCamera{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicCameraPose::Viewport() const { winrt::Windows::Foundation::Rect value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCameraPose)->get_Viewport(put_abi(value))); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicCameraPose::TryGetViewTransform(winrt::Windows::Perception::Spatial::SpatialCoordinateSystem const& coordinateSystem) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCameraPose)->TryGetViewTransform(*(void**)(&coordinateSystem), &value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicCameraPose::ProjectionTransform() const { winrt::Windows::Graphics::Holographic::HolographicStereoTransform value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCameraPose)->get_ProjectionTransform(put_abi(value))); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicCameraPose::TryGetCullingFrustum(winrt::Windows::Perception::Spatial::SpatialCoordinateSystem const& coordinateSystem) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCameraPose)->TryGetCullingFrustum(*(void**)(&coordinateSystem), &value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicCameraPose::TryGetVisibleFrustum(winrt::Windows::Perception::Spatial::SpatialCoordinateSystem const& coordinateSystem) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCameraPose)->TryGetVisibleFrustum(*(void**)(&coordinateSystem), &value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicCameraPose::NearPlaneDistance() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCameraPose)->get_NearPlaneDistance(&value)); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicCameraPose::FarPlaneDistance() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCameraPose)->get_FarPlaneDistance(&value)); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicCameraPose2::OverrideViewTransform(winrt::Windows::Perception::Spatial::SpatialCoordinateSystem const& coordinateSystem, winrt::Windows::Graphics::Holographic::HolographicStereoTransform const& coordinateSystemToViewTransform) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCameraPose2)->OverrideViewTransform(*(void**)(&coordinateSystem), impl::bind_in(coordinateSystemToViewTransform))); } template auto consume_Windows_Graphics_Holographic_IHolographicCameraPose2::OverrideProjectionTransform(winrt::Windows::Graphics::Holographic::HolographicStereoTransform const& projectionTransform) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCameraPose2)->OverrideProjectionTransform(impl::bind_in(projectionTransform))); } template auto consume_Windows_Graphics_Holographic_IHolographicCameraPose2::OverrideViewport(winrt::Windows::Foundation::Rect const& leftViewport, winrt::Windows::Foundation::Rect const& rightViewport) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCameraPose2)->OverrideViewport(impl::bind_in(leftViewport), impl::bind_in(rightViewport))); } template auto consume_Windows_Graphics_Holographic_IHolographicCameraRenderingParameters::SetFocusPoint(winrt::Windows::Perception::Spatial::SpatialCoordinateSystem const& coordinateSystem, winrt::Windows::Foundation::Numerics::float3 const& position) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCameraRenderingParameters)->SetFocusPoint(*(void**)(&coordinateSystem), impl::bind_in(position))); } template auto consume_Windows_Graphics_Holographic_IHolographicCameraRenderingParameters::SetFocusPoint(winrt::Windows::Perception::Spatial::SpatialCoordinateSystem const& coordinateSystem, winrt::Windows::Foundation::Numerics::float3 const& position, winrt::Windows::Foundation::Numerics::float3 const& normal) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCameraRenderingParameters)->SetFocusPointWithNormal(*(void**)(&coordinateSystem), impl::bind_in(position), impl::bind_in(normal))); } template auto consume_Windows_Graphics_Holographic_IHolographicCameraRenderingParameters::SetFocusPoint(winrt::Windows::Perception::Spatial::SpatialCoordinateSystem const& coordinateSystem, winrt::Windows::Foundation::Numerics::float3 const& position, winrt::Windows::Foundation::Numerics::float3 const& normal, winrt::Windows::Foundation::Numerics::float3 const& linearVelocity) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCameraRenderingParameters)->SetFocusPointWithNormalLinearVelocity(*(void**)(&coordinateSystem), impl::bind_in(position), impl::bind_in(normal), impl::bind_in(linearVelocity))); } template auto consume_Windows_Graphics_Holographic_IHolographicCameraRenderingParameters::Direct3D11Device() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCameraRenderingParameters)->get_Direct3D11Device(&value)); return winrt::Windows::Graphics::DirectX::Direct3D11::IDirect3DDevice{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicCameraRenderingParameters::Direct3D11BackBuffer() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCameraRenderingParameters)->get_Direct3D11BackBuffer(&value)); return winrt::Windows::Graphics::DirectX::Direct3D11::IDirect3DSurface{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicCameraRenderingParameters2::ReprojectionMode() const { winrt::Windows::Graphics::Holographic::HolographicReprojectionMode value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCameraRenderingParameters2)->get_ReprojectionMode(reinterpret_cast(&value))); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicCameraRenderingParameters2::ReprojectionMode(winrt::Windows::Graphics::Holographic::HolographicReprojectionMode const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCameraRenderingParameters2)->put_ReprojectionMode(static_cast(value))); } template auto consume_Windows_Graphics_Holographic_IHolographicCameraRenderingParameters2::CommitDirect3D11DepthBuffer(winrt::Windows::Graphics::DirectX::Direct3D11::IDirect3DSurface const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCameraRenderingParameters2)->CommitDirect3D11DepthBuffer(*(void**)(&value))); } template auto consume_Windows_Graphics_Holographic_IHolographicCameraRenderingParameters3::IsContentProtectionEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCameraRenderingParameters3)->get_IsContentProtectionEnabled(&value)); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicCameraRenderingParameters3::IsContentProtectionEnabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCameraRenderingParameters3)->put_IsContentProtectionEnabled(value)); } template auto consume_Windows_Graphics_Holographic_IHolographicCameraRenderingParameters4::DepthReprojectionMethod() const { winrt::Windows::Graphics::Holographic::HolographicDepthReprojectionMethod value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCameraRenderingParameters4)->get_DepthReprojectionMethod(reinterpret_cast(&value))); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicCameraRenderingParameters4::DepthReprojectionMethod(winrt::Windows::Graphics::Holographic::HolographicDepthReprojectionMethod const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCameraRenderingParameters4)->put_DepthReprojectionMethod(static_cast(value))); } template auto consume_Windows_Graphics_Holographic_IHolographicCameraViewportParameters::HiddenAreaMesh() const { uint32_t value_impl_size{}; winrt::Windows::Foundation::Numerics::float2* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCameraViewportParameters)->get_HiddenAreaMesh(&value_impl_size, &value)); return com_array{ value, value_impl_size, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicCameraViewportParameters::VisibleAreaMesh() const { uint32_t value_impl_size{}; winrt::Windows::Foundation::Numerics::float2* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicCameraViewportParameters)->get_VisibleAreaMesh(&value_impl_size, &value)); return com_array{ value, value_impl_size, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicDisplay::DisplayName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicDisplay)->get_DisplayName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicDisplay::MaxViewportSize() const { winrt::Windows::Foundation::Size value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicDisplay)->get_MaxViewportSize(put_abi(value))); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicDisplay::IsStereo() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicDisplay)->get_IsStereo(&value)); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicDisplay::IsOpaque() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicDisplay)->get_IsOpaque(&value)); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicDisplay::AdapterId() const { winrt::Windows::Graphics::Holographic::HolographicAdapterId value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicDisplay)->get_AdapterId(put_abi(value))); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicDisplay::SpatialLocator() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicDisplay)->get_SpatialLocator(&value)); return winrt::Windows::Perception::Spatial::SpatialLocator{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicDisplay2::RefreshRate() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicDisplay2)->get_RefreshRate(&value)); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicDisplay3::TryGetViewConfiguration(winrt::Windows::Graphics::Holographic::HolographicViewConfigurationKind const& kind) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicDisplay3)->TryGetViewConfiguration(static_cast(kind), &result)); return winrt::Windows::Graphics::Holographic::HolographicViewConfiguration{ result, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicDisplayStatics::GetDefault() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicDisplayStatics)->GetDefault(&result)); return winrt::Windows::Graphics::Holographic::HolographicDisplay{ result, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicFrame::AddedCameras() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicFrame)->get_AddedCameras(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicFrame::RemovedCameras() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicFrame)->get_RemovedCameras(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicFrame::GetRenderingParameters(winrt::Windows::Graphics::Holographic::HolographicCameraPose const& cameraPose) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicFrame)->GetRenderingParameters(*(void**)(&cameraPose), &value)); return winrt::Windows::Graphics::Holographic::HolographicCameraRenderingParameters{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicFrame::Duration() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicFrame)->get_Duration(put_abi(value))); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicFrame::CurrentPrediction() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicFrame)->get_CurrentPrediction(&value)); return winrt::Windows::Graphics::Holographic::HolographicFramePrediction{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicFrame::UpdateCurrentPrediction() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicFrame)->UpdateCurrentPrediction()); } template auto consume_Windows_Graphics_Holographic_IHolographicFrame::PresentUsingCurrentPrediction() const { winrt::Windows::Graphics::Holographic::HolographicFramePresentResult result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicFrame)->PresentUsingCurrentPrediction(reinterpret_cast(&result))); return result; } template auto consume_Windows_Graphics_Holographic_IHolographicFrame::PresentUsingCurrentPrediction(winrt::Windows::Graphics::Holographic::HolographicFramePresentWaitBehavior const& waitBehavior) const { winrt::Windows::Graphics::Holographic::HolographicFramePresentResult result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicFrame)->PresentUsingCurrentPredictionWithBehavior(static_cast(waitBehavior), reinterpret_cast(&result))); return result; } template auto consume_Windows_Graphics_Holographic_IHolographicFrame::WaitForFrameToFinish() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicFrame)->WaitForFrameToFinish()); } template auto consume_Windows_Graphics_Holographic_IHolographicFrame2::GetQuadLayerUpdateParameters(winrt::Windows::Graphics::Holographic::HolographicQuadLayer const& layer) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicFrame2)->GetQuadLayerUpdateParameters(*(void**)(&layer), &value)); return winrt::Windows::Graphics::Holographic::HolographicQuadLayerUpdateParameters{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicFrame3::Id() const { winrt::Windows::Graphics::Holographic::HolographicFrameId value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicFrame3)->get_Id(put_abi(value))); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicFramePrediction::CameraPoses() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicFramePrediction)->get_CameraPoses(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicFramePrediction::Timestamp() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicFramePrediction)->get_Timestamp(&value)); return winrt::Windows::Perception::PerceptionTimestamp{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicFramePresentationMonitor::ReadReports() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicFramePresentationMonitor)->ReadReports(&result)); return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicFramePresentationReport::CompositorGpuDuration() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicFramePresentationReport)->get_CompositorGpuDuration(put_abi(value))); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicFramePresentationReport::AppGpuDuration() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicFramePresentationReport)->get_AppGpuDuration(put_abi(value))); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicFramePresentationReport::AppGpuOverrun() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicFramePresentationReport)->get_AppGpuOverrun(put_abi(value))); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicFramePresentationReport::MissedPresentationOpportunityCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicFramePresentationReport)->get_MissedPresentationOpportunityCount(&value)); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicFramePresentationReport::PresentationCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicFramePresentationReport)->get_PresentationCount(&value)); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicFrameRenderingReport::FrameId() const { winrt::Windows::Graphics::Holographic::HolographicFrameId value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicFrameRenderingReport)->get_FrameId(put_abi(value))); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicFrameRenderingReport::MissedLatchCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicFrameRenderingReport)->get_MissedLatchCount(&value)); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicFrameRenderingReport::SystemRelativeFrameReadyTime() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicFrameRenderingReport)->get_SystemRelativeFrameReadyTime(put_abi(value))); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicFrameRenderingReport::SystemRelativeActualGpuFinishTime() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicFrameRenderingReport)->get_SystemRelativeActualGpuFinishTime(put_abi(value))); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicFrameRenderingReport::SystemRelativeTargetLatchTime() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicFrameRenderingReport)->get_SystemRelativeTargetLatchTime(put_abi(value))); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicFrameScanoutMonitor::ReadReports() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicFrameScanoutMonitor)->ReadReports(&result)); return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicFrameScanoutReport::RenderingReport() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicFrameScanoutReport)->get_RenderingReport(&value)); return winrt::Windows::Graphics::Holographic::HolographicFrameRenderingReport{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicFrameScanoutReport::MissedScanoutCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicFrameScanoutReport)->get_MissedScanoutCount(&value)); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicFrameScanoutReport::SystemRelativeLatchTime() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicFrameScanoutReport)->get_SystemRelativeLatchTime(put_abi(value))); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicFrameScanoutReport::SystemRelativeScanoutStartTime() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicFrameScanoutReport)->get_SystemRelativeScanoutStartTime(put_abi(value))); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicFrameScanoutReport::SystemRelativePhotonTime() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicFrameScanoutReport)->get_SystemRelativePhotonTime(put_abi(value))); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicQuadLayer::PixelFormat() const { winrt::Windows::Graphics::DirectX::DirectXPixelFormat value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicQuadLayer)->get_PixelFormat(reinterpret_cast(&value))); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicQuadLayer::Size() const { winrt::Windows::Foundation::Size value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicQuadLayer)->get_Size(put_abi(value))); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicQuadLayerFactory::Create(winrt::Windows::Foundation::Size const& size) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicQuadLayerFactory)->Create(impl::bind_in(size), &value)); return winrt::Windows::Graphics::Holographic::HolographicQuadLayer{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicQuadLayerFactory::CreateWithPixelFormat(winrt::Windows::Foundation::Size const& size, winrt::Windows::Graphics::DirectX::DirectXPixelFormat const& pixelFormat) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicQuadLayerFactory)->CreateWithPixelFormat(impl::bind_in(size), static_cast(pixelFormat), &value)); return winrt::Windows::Graphics::Holographic::HolographicQuadLayer{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicQuadLayerUpdateParameters::AcquireBufferToUpdateContent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicQuadLayerUpdateParameters)->AcquireBufferToUpdateContent(&value)); return winrt::Windows::Graphics::DirectX::Direct3D11::IDirect3DSurface{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicQuadLayerUpdateParameters::UpdateViewport(winrt::Windows::Foundation::Rect const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicQuadLayerUpdateParameters)->UpdateViewport(impl::bind_in(value))); } template auto consume_Windows_Graphics_Holographic_IHolographicQuadLayerUpdateParameters::UpdateContentProtectionEnabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicQuadLayerUpdateParameters)->UpdateContentProtectionEnabled(value)); } template auto consume_Windows_Graphics_Holographic_IHolographicQuadLayerUpdateParameters::UpdateExtents(winrt::Windows::Foundation::Numerics::float2 const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicQuadLayerUpdateParameters)->UpdateExtents(impl::bind_in(value))); } template auto consume_Windows_Graphics_Holographic_IHolographicQuadLayerUpdateParameters::UpdateLocationWithStationaryMode(winrt::Windows::Perception::Spatial::SpatialCoordinateSystem const& coordinateSystem, winrt::Windows::Foundation::Numerics::float3 const& position, winrt::Windows::Foundation::Numerics::quaternion const& orientation) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicQuadLayerUpdateParameters)->UpdateLocationWithStationaryMode(*(void**)(&coordinateSystem), impl::bind_in(position), impl::bind_in(orientation))); } template auto consume_Windows_Graphics_Holographic_IHolographicQuadLayerUpdateParameters::UpdateLocationWithDisplayRelativeMode(winrt::Windows::Foundation::Numerics::float3 const& position, winrt::Windows::Foundation::Numerics::quaternion const& orientation) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicQuadLayerUpdateParameters)->UpdateLocationWithDisplayRelativeMode(impl::bind_in(position), impl::bind_in(orientation))); } template auto consume_Windows_Graphics_Holographic_IHolographicQuadLayerUpdateParameters2::CanAcquireWithHardwareProtection() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicQuadLayerUpdateParameters2)->get_CanAcquireWithHardwareProtection(&value)); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicQuadLayerUpdateParameters2::AcquireBufferToUpdateContentWithHardwareProtection() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicQuadLayerUpdateParameters2)->AcquireBufferToUpdateContentWithHardwareProtection(&value)); return winrt::Windows::Graphics::DirectX::Direct3D11::IDirect3DSurface{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicSpace::PrimaryAdapterId() const { winrt::Windows::Graphics::Holographic::HolographicAdapterId value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicSpace)->get_PrimaryAdapterId(put_abi(value))); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicSpace::SetDirect3D11Device(winrt::Windows::Graphics::DirectX::Direct3D11::IDirect3DDevice const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicSpace)->SetDirect3D11Device(*(void**)(&value))); } template auto consume_Windows_Graphics_Holographic_IHolographicSpace::CameraAdded(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token cookie{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicSpace)->add_CameraAdded(*(void**)(&handler), put_abi(cookie))); return cookie; } template auto consume_Windows_Graphics_Holographic_IHolographicSpace::CameraAdded(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, CameraAdded(handler)); } template auto consume_Windows_Graphics_Holographic_IHolographicSpace::CameraAdded(winrt::event_token const& cookie) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicSpace)->remove_CameraAdded(impl::bind_in(cookie)); } template auto consume_Windows_Graphics_Holographic_IHolographicSpace::CameraRemoved(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token cookie{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicSpace)->add_CameraRemoved(*(void**)(&handler), put_abi(cookie))); return cookie; } template auto consume_Windows_Graphics_Holographic_IHolographicSpace::CameraRemoved(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, CameraRemoved(handler)); } template auto consume_Windows_Graphics_Holographic_IHolographicSpace::CameraRemoved(winrt::event_token const& cookie) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicSpace)->remove_CameraRemoved(impl::bind_in(cookie)); } template auto consume_Windows_Graphics_Holographic_IHolographicSpace::CreateNextFrame() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicSpace)->CreateNextFrame(&value)); return winrt::Windows::Graphics::Holographic::HolographicFrame{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicSpace2::UserPresence() const { winrt::Windows::Graphics::Holographic::HolographicSpaceUserPresence value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicSpace2)->get_UserPresence(reinterpret_cast(&value))); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicSpace2::UserPresenceChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicSpace2)->add_UserPresenceChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Graphics_Holographic_IHolographicSpace2::UserPresenceChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, UserPresenceChanged(handler)); } template auto consume_Windows_Graphics_Holographic_IHolographicSpace2::UserPresenceChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicSpace2)->remove_UserPresenceChanged(impl::bind_in(token)); } template auto consume_Windows_Graphics_Holographic_IHolographicSpace2::WaitForNextFrameReady() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicSpace2)->WaitForNextFrameReady()); } template auto consume_Windows_Graphics_Holographic_IHolographicSpace2::WaitForNextFrameReadyWithHeadStart(winrt::Windows::Foundation::TimeSpan const& requestedHeadStartDuration) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicSpace2)->WaitForNextFrameReadyWithHeadStart(impl::bind_in(requestedHeadStartDuration))); } template auto consume_Windows_Graphics_Holographic_IHolographicSpace2::CreateFramePresentationMonitor(uint32_t maxQueuedReports) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicSpace2)->CreateFramePresentationMonitor(maxQueuedReports, &result)); return winrt::Windows::Graphics::Holographic::HolographicFramePresentationMonitor{ result, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicSpace3::CreateFrameScanoutMonitor(uint32_t maxQueuedReports) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicSpace3)->CreateFrameScanoutMonitor(maxQueuedReports, &result)); return winrt::Windows::Graphics::Holographic::HolographicFrameScanoutMonitor{ result, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicSpaceCameraAddedEventArgs::Camera() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicSpaceCameraAddedEventArgs)->get_Camera(&value)); return winrt::Windows::Graphics::Holographic::HolographicCamera{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicSpaceCameraAddedEventArgs::GetDeferral() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicSpaceCameraAddedEventArgs)->GetDeferral(&value)); return winrt::Windows::Foundation::Deferral{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicSpaceCameraRemovedEventArgs::Camera() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicSpaceCameraRemovedEventArgs)->get_Camera(&value)); return winrt::Windows::Graphics::Holographic::HolographicCamera{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicSpaceStatics::CreateForCoreWindow(winrt::Windows::UI::Core::CoreWindow const& window) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicSpaceStatics)->CreateForCoreWindow(*(void**)(&window), &value)); return winrt::Windows::Graphics::Holographic::HolographicSpace{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicSpaceStatics2::IsSupported() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicSpaceStatics2)->get_IsSupported(&value)); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicSpaceStatics2::IsAvailable() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicSpaceStatics2)->get_IsAvailable(&value)); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicSpaceStatics2::IsAvailableChanged(winrt::Windows::Foundation::EventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicSpaceStatics2)->add_IsAvailableChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Graphics_Holographic_IHolographicSpaceStatics2::IsAvailableChanged(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) const { return impl::make_event_revoker(this, IsAvailableChanged(handler)); } template auto consume_Windows_Graphics_Holographic_IHolographicSpaceStatics2::IsAvailableChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicSpaceStatics2)->remove_IsAvailableChanged(impl::bind_in(token)); } template auto consume_Windows_Graphics_Holographic_IHolographicSpaceStatics3::IsConfigured() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicSpaceStatics3)->get_IsConfigured(&value)); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicViewConfiguration::NativeRenderTargetSize() const { winrt::Windows::Foundation::Size value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicViewConfiguration)->get_NativeRenderTargetSize(put_abi(value))); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicViewConfiguration::RenderTargetSize() const { winrt::Windows::Foundation::Size value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicViewConfiguration)->get_RenderTargetSize(put_abi(value))); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicViewConfiguration::RequestRenderTargetSize(winrt::Windows::Foundation::Size const& size) const { winrt::Windows::Foundation::Size result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicViewConfiguration)->RequestRenderTargetSize(impl::bind_in(size), put_abi(result))); return result; } template auto consume_Windows_Graphics_Holographic_IHolographicViewConfiguration::SupportedPixelFormats() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicViewConfiguration)->get_SupportedPixelFormats(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicViewConfiguration::PixelFormat() const { winrt::Windows::Graphics::DirectX::DirectXPixelFormat value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicViewConfiguration)->get_PixelFormat(reinterpret_cast(&value))); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicViewConfiguration::PixelFormat(winrt::Windows::Graphics::DirectX::DirectXPixelFormat const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicViewConfiguration)->put_PixelFormat(static_cast(value))); } template auto consume_Windows_Graphics_Holographic_IHolographicViewConfiguration::IsStereo() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicViewConfiguration)->get_IsStereo(&value)); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicViewConfiguration::RefreshRate() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicViewConfiguration)->get_RefreshRate(&value)); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicViewConfiguration::Kind() const { winrt::Windows::Graphics::Holographic::HolographicViewConfigurationKind value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicViewConfiguration)->get_Kind(reinterpret_cast(&value))); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicViewConfiguration::Display() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicViewConfiguration)->get_Display(&value)); return winrt::Windows::Graphics::Holographic::HolographicDisplay{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Holographic_IHolographicViewConfiguration::IsEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicViewConfiguration)->get_IsEnabled(&value)); return value; } template auto consume_Windows_Graphics_Holographic_IHolographicViewConfiguration::IsEnabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicViewConfiguration)->put_IsEnabled(value)); } template auto consume_Windows_Graphics_Holographic_IHolographicViewConfiguration2::SupportedDepthReprojectionMethods() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Holographic::IHolographicViewConfiguration2)->get_SupportedDepthReprojectionMethods(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_RenderTargetSize(winrt::Windows::Foundation::Size* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RenderTargetSize()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ViewportScaleFactor(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ViewportScaleFactor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ViewportScaleFactor(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ViewportScaleFactor(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsStereo(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsStereo()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Id(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Id()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetNearPlaneDistance(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetNearPlaneDistance(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetFarPlaneDistance(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetFarPlaneDistance(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_LeftViewportParameters(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().LeftViewportParameters()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RightViewportParameters(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().RightViewportParameters()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Display(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Display()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsPrimaryLayerEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsPrimaryLayerEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsPrimaryLayerEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsPrimaryLayerEnabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MaxQuadLayerCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MaxQuadLayerCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_QuadLayers(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().QuadLayers()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_CanOverrideViewport(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanOverrideViewport()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsHardwareContentProtectionSupported(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsHardwareContentProtectionSupported()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsHardwareContentProtectionEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsHardwareContentProtectionEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsHardwareContentProtectionEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsHardwareContentProtectionEnabled(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ViewConfiguration(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ViewConfiguration()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_HolographicCamera(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HolographicCamera()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Viewport(winrt::Windows::Foundation::Rect* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Viewport()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryGetViewTransform(void* coordinateSystem, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().TryGetViewTransform(*reinterpret_cast(&coordinateSystem))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ProjectionTransform(struct struct_Windows_Graphics_Holographic_HolographicStereoTransform* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ProjectionTransform()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryGetCullingFrustum(void* coordinateSystem, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().TryGetCullingFrustum(*reinterpret_cast(&coordinateSystem))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryGetVisibleFrustum(void* coordinateSystem, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().TryGetVisibleFrustum(*reinterpret_cast(&coordinateSystem))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_NearPlaneDistance(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().NearPlaneDistance()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FarPlaneDistance(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FarPlaneDistance()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall OverrideViewTransform(void* coordinateSystem, struct struct_Windows_Graphics_Holographic_HolographicStereoTransform coordinateSystemToViewTransform) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OverrideViewTransform(*reinterpret_cast(&coordinateSystem), *reinterpret_cast(&coordinateSystemToViewTransform)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall OverrideProjectionTransform(struct struct_Windows_Graphics_Holographic_HolographicStereoTransform projectionTransform) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OverrideProjectionTransform(*reinterpret_cast(&projectionTransform)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall OverrideViewport(winrt::Windows::Foundation::Rect leftViewport, winrt::Windows::Foundation::Rect rightViewport) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OverrideViewport(*reinterpret_cast(&leftViewport), *reinterpret_cast(&rightViewport)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall SetFocusPoint(void* coordinateSystem, winrt::Windows::Foundation::Numerics::float3 position) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetFocusPoint(*reinterpret_cast(&coordinateSystem), *reinterpret_cast(&position)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetFocusPointWithNormal(void* coordinateSystem, winrt::Windows::Foundation::Numerics::float3 position, winrt::Windows::Foundation::Numerics::float3 normal) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetFocusPoint(*reinterpret_cast(&coordinateSystem), *reinterpret_cast(&position), *reinterpret_cast(&normal)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetFocusPointWithNormalLinearVelocity(void* coordinateSystem, winrt::Windows::Foundation::Numerics::float3 position, winrt::Windows::Foundation::Numerics::float3 normal, winrt::Windows::Foundation::Numerics::float3 linearVelocity) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetFocusPoint(*reinterpret_cast(&coordinateSystem), *reinterpret_cast(&position), *reinterpret_cast(&normal), *reinterpret_cast(&linearVelocity)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Direct3D11Device(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Direct3D11Device()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Direct3D11BackBuffer(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Direct3D11BackBuffer()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ReprojectionMode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ReprojectionMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ReprojectionMode(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ReprojectionMode(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CommitDirect3D11DepthBuffer(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CommitDirect3D11DepthBuffer(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsContentProtectionEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsContentProtectionEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsContentProtectionEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsContentProtectionEnabled(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DepthReprojectionMethod(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DepthReprojectionMethod()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DepthReprojectionMethod(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DepthReprojectionMethod(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_HiddenAreaMesh(uint32_t* __valueSize, winrt::Windows::Foundation::Numerics::float2** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); std::tie(*__valueSize, *value) = detach_abi(this->shim().HiddenAreaMesh()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VisibleAreaMesh(uint32_t* __valueSize, winrt::Windows::Foundation::Numerics::float2** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); std::tie(*__valueSize, *value) = detach_abi(this->shim().VisibleAreaMesh()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DisplayName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisplayName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MaxViewportSize(winrt::Windows::Foundation::Size* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MaxViewportSize()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsStereo(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsStereo()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsOpaque(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsOpaque()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AdapterId(struct struct_Windows_Graphics_Holographic_HolographicAdapterId* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AdapterId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SpatialLocator(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SpatialLocator()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_RefreshRate(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RefreshRate()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall TryGetViewConfiguration(int32_t kind, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().TryGetViewConfiguration(*reinterpret_cast(&kind))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetDefault(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetDefault()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AddedCameras(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().AddedCameras()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RemovedCameras(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().RemovedCameras()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetRenderingParameters(void* cameraPose, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetRenderingParameters(*reinterpret_cast(&cameraPose))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Duration(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Duration()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CurrentPrediction(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CurrentPrediction()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall UpdateCurrentPrediction() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().UpdateCurrentPrediction(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall PresentUsingCurrentPrediction(int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().PresentUsingCurrentPrediction()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall PresentUsingCurrentPredictionWithBehavior(int32_t waitBehavior, int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().PresentUsingCurrentPrediction(*reinterpret_cast(&waitBehavior))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall WaitForFrameToFinish() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().WaitForFrameToFinish(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetQuadLayerUpdateParameters(void* layer, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetQuadLayerUpdateParameters(*reinterpret_cast(&layer))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Id(struct struct_Windows_Graphics_Holographic_HolographicFrameId* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Id()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_CameraPoses(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().CameraPoses()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Timestamp(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Timestamp()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall ReadReports(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().ReadReports()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_CompositorGpuDuration(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CompositorGpuDuration()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AppGpuDuration(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AppGpuDuration()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AppGpuOverrun(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AppGpuOverrun()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MissedPresentationOpportunityCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MissedPresentationOpportunityCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PresentationCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PresentationCount()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_FrameId(struct struct_Windows_Graphics_Holographic_HolographicFrameId* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FrameId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MissedLatchCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MissedLatchCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SystemRelativeFrameReadyTime(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SystemRelativeFrameReadyTime()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SystemRelativeActualGpuFinishTime(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SystemRelativeActualGpuFinishTime()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SystemRelativeTargetLatchTime(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SystemRelativeTargetLatchTime()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall ReadReports(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().ReadReports()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_RenderingReport(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RenderingReport()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MissedScanoutCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MissedScanoutCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SystemRelativeLatchTime(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SystemRelativeLatchTime()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SystemRelativeScanoutStartTime(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SystemRelativeScanoutStartTime()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SystemRelativePhotonTime(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SystemRelativePhotonTime()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PixelFormat(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PixelFormat()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Size(winrt::Windows::Foundation::Size* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Size()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(winrt::Windows::Foundation::Size size, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Create(*reinterpret_cast(&size))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateWithPixelFormat(winrt::Windows::Foundation::Size size, int32_t pixelFormat, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateWithPixelFormat(*reinterpret_cast(&size), *reinterpret_cast(&pixelFormat))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall AcquireBufferToUpdateContent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AcquireBufferToUpdateContent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall UpdateViewport(winrt::Windows::Foundation::Rect value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().UpdateViewport(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall UpdateContentProtectionEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().UpdateContentProtectionEnabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall UpdateExtents(winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().UpdateExtents(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall UpdateLocationWithStationaryMode(void* coordinateSystem, winrt::Windows::Foundation::Numerics::float3 position, winrt::Windows::Foundation::Numerics::quaternion orientation) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().UpdateLocationWithStationaryMode(*reinterpret_cast(&coordinateSystem), *reinterpret_cast(&position), *reinterpret_cast(&orientation)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall UpdateLocationWithDisplayRelativeMode(winrt::Windows::Foundation::Numerics::float3 position, winrt::Windows::Foundation::Numerics::quaternion orientation) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().UpdateLocationWithDisplayRelativeMode(*reinterpret_cast(&position), *reinterpret_cast(&orientation)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_CanAcquireWithHardwareProtection(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanAcquireWithHardwareProtection()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AcquireBufferToUpdateContentWithHardwareProtection(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AcquireBufferToUpdateContentWithHardwareProtection()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PrimaryAdapterId(struct struct_Windows_Graphics_Holographic_HolographicAdapterId* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PrimaryAdapterId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetDirect3D11Device(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetDirect3D11Device(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_CameraAdded(void* handler, winrt::event_token* cookie) noexcept final try { zero_abi(cookie); typename D::abi_guard guard(this->shim()); *cookie = detach_from(this->shim().CameraAdded(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_CameraAdded(winrt::event_token cookie) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().CameraAdded(*reinterpret_cast(&cookie)); return 0; } int32_t __stdcall add_CameraRemoved(void* handler, winrt::event_token* cookie) noexcept final try { zero_abi(cookie); typename D::abi_guard guard(this->shim()); *cookie = detach_from(this->shim().CameraRemoved(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_CameraRemoved(winrt::event_token cookie) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().CameraRemoved(*reinterpret_cast(&cookie)); return 0; } int32_t __stdcall CreateNextFrame(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateNextFrame()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_UserPresence(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UserPresence()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_UserPresenceChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().UserPresenceChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_UserPresenceChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().UserPresenceChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall WaitForNextFrameReady() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().WaitForNextFrameReady(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall WaitForNextFrameReadyWithHeadStart(int64_t requestedHeadStartDuration) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().WaitForNextFrameReadyWithHeadStart(*reinterpret_cast(&requestedHeadStartDuration)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateFramePresentationMonitor(uint32_t maxQueuedReports, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateFramePresentationMonitor(maxQueuedReports)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateFrameScanoutMonitor(uint32_t maxQueuedReports, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateFrameScanoutMonitor(maxQueuedReports)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Camera(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Camera()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetDeferral(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetDeferral()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Camera(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Camera()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateForCoreWindow(void* window, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateForCoreWindow(*reinterpret_cast(&window))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsSupported(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsSupported()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsAvailable(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsAvailable()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_IsAvailableChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().IsAvailableChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_IsAvailableChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().IsAvailableChanged(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsConfigured(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsConfigured()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_NativeRenderTargetSize(winrt::Windows::Foundation::Size* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().NativeRenderTargetSize()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RenderTargetSize(winrt::Windows::Foundation::Size* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RenderTargetSize()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RequestRenderTargetSize(winrt::Windows::Foundation::Size size, winrt::Windows::Foundation::Size* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().RequestRenderTargetSize(*reinterpret_cast(&size))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SupportedPixelFormats(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().SupportedPixelFormats()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PixelFormat(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PixelFormat()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PixelFormat(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PixelFormat(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsStereo(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsStereo()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RefreshRate(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RefreshRate()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Kind(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Kind()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Display(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Display()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsEnabled(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SupportedDepthReprojectionMethods(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().SupportedDepthReprojectionMethods()); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::Graphics::Holographic { inline auto HolographicDisplay::GetDefault() { return impl::call_factory_cast([](IHolographicDisplayStatics const& f) { return f.GetDefault(); }); } inline HolographicQuadLayer::HolographicQuadLayer(winrt::Windows::Foundation::Size const& size) : HolographicQuadLayer(impl::call_factory([&](IHolographicQuadLayerFactory const& f) { return f.Create(size); })) { } inline HolographicQuadLayer::HolographicQuadLayer(winrt::Windows::Foundation::Size const& size, winrt::Windows::Graphics::DirectX::DirectXPixelFormat const& pixelFormat) : HolographicQuadLayer(impl::call_factory([&](IHolographicQuadLayerFactory const& f) { return f.CreateWithPixelFormat(size, pixelFormat); })) { } inline auto HolographicSpace::CreateForCoreWindow(winrt::Windows::UI::Core::CoreWindow const& window) { return impl::call_factory([&](IHolographicSpaceStatics const& f) { return f.CreateForCoreWindow(window); }); } inline auto HolographicSpace::IsSupported() { return impl::call_factory_cast([](IHolographicSpaceStatics2 const& f) { return f.IsSupported(); }); } inline auto HolographicSpace::IsAvailable() { return impl::call_factory_cast([](IHolographicSpaceStatics2 const& f) { return f.IsAvailable(); }); } inline auto HolographicSpace::IsAvailableChanged(winrt::Windows::Foundation::EventHandler const& handler) { return impl::call_factory([&](IHolographicSpaceStatics2 const& f) { return f.IsAvailableChanged(handler); }); } inline auto HolographicSpace::IsAvailableChanged(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) { auto f = get_activation_factory(); return HolographicSpace::IsAvailableChanged_revoker{ f, f.IsAvailableChanged(handler) }; } inline auto HolographicSpace::IsAvailableChanged(winrt::event_token const& token) { impl::call_factory([&](IHolographicSpaceStatics2 const& f) { return f.IsAvailableChanged(token); }); } inline auto HolographicSpace::IsConfigured() { return impl::call_factory_cast([](IHolographicSpaceStatics3 const& f) { return f.IsConfigured(); }); } } namespace std { #ifndef WINRT_LEAN_AND_MEAN template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; #endif #ifdef __cpp_lib_format #endif } #endif