// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_Perception_Spatial_Surfaces_H #define WINRT_Windows_Perception_Spatial_Surfaces_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.Perception.Spatial.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.Perception.Spatial.2.h" #include "winrt/impl/Windows.Storage.Streams.2.h" #include "winrt/impl/Windows.Perception.Spatial.Surfaces.2.h" namespace winrt::impl { template auto consume_Windows_Perception_Spatial_Surfaces_ISpatialSurfaceInfo::Id() const { winrt::guid value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Perception::Spatial::Surfaces::ISpatialSurfaceInfo)->get_Id(put_abi(value))); return value; } template auto consume_Windows_Perception_Spatial_Surfaces_ISpatialSurfaceInfo::UpdateTime() const { winrt::Windows::Foundation::DateTime value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Perception::Spatial::Surfaces::ISpatialSurfaceInfo)->get_UpdateTime(put_abi(value))); return value; } template auto consume_Windows_Perception_Spatial_Surfaces_ISpatialSurfaceInfo::TryGetBounds(winrt::Windows::Perception::Spatial::SpatialCoordinateSystem const& coordinateSystem) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Perception::Spatial::Surfaces::ISpatialSurfaceInfo)->TryGetBounds(*(void**)(&coordinateSystem), &value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Perception_Spatial_Surfaces_ISpatialSurfaceInfo::TryComputeLatestMeshAsync(double maxTrianglesPerCubicMeter) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Perception::Spatial::Surfaces::ISpatialSurfaceInfo)->TryComputeLatestMeshAsync(maxTrianglesPerCubicMeter, &value)); return winrt::Windows::Foundation::IAsyncOperation{ value, take_ownership_from_abi }; } template auto consume_Windows_Perception_Spatial_Surfaces_ISpatialSurfaceInfo::TryComputeLatestMeshAsync(double maxTrianglesPerCubicMeter, winrt::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshOptions const& options) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Perception::Spatial::Surfaces::ISpatialSurfaceInfo)->TryComputeLatestMeshWithOptionsAsync(maxTrianglesPerCubicMeter, *(void**)(&options), &value)); return winrt::Windows::Foundation::IAsyncOperation{ value, take_ownership_from_abi }; } template auto consume_Windows_Perception_Spatial_Surfaces_ISpatialSurfaceMesh::SurfaceInfo() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Perception::Spatial::Surfaces::ISpatialSurfaceMesh)->get_SurfaceInfo(&value)); return winrt::Windows::Perception::Spatial::Surfaces::SpatialSurfaceInfo{ value, take_ownership_from_abi }; } template auto consume_Windows_Perception_Spatial_Surfaces_ISpatialSurfaceMesh::CoordinateSystem() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Perception::Spatial::Surfaces::ISpatialSurfaceMesh)->get_CoordinateSystem(&value)); return winrt::Windows::Perception::Spatial::SpatialCoordinateSystem{ value, take_ownership_from_abi }; } template auto consume_Windows_Perception_Spatial_Surfaces_ISpatialSurfaceMesh::TriangleIndices() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Perception::Spatial::Surfaces::ISpatialSurfaceMesh)->get_TriangleIndices(&value)); return winrt::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshBuffer{ value, take_ownership_from_abi }; } template auto consume_Windows_Perception_Spatial_Surfaces_ISpatialSurfaceMesh::VertexPositions() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Perception::Spatial::Surfaces::ISpatialSurfaceMesh)->get_VertexPositions(&value)); return winrt::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshBuffer{ value, take_ownership_from_abi }; } template auto consume_Windows_Perception_Spatial_Surfaces_ISpatialSurfaceMesh::VertexPositionScale() const { winrt::Windows::Foundation::Numerics::float3 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Perception::Spatial::Surfaces::ISpatialSurfaceMesh)->get_VertexPositionScale(put_abi(value))); return value; } template auto consume_Windows_Perception_Spatial_Surfaces_ISpatialSurfaceMesh::VertexNormals() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Perception::Spatial::Surfaces::ISpatialSurfaceMesh)->get_VertexNormals(&value)); return winrt::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshBuffer{ value, take_ownership_from_abi }; } template auto consume_Windows_Perception_Spatial_Surfaces_ISpatialSurfaceMeshBuffer::Format() const { winrt::Windows::Graphics::DirectX::DirectXPixelFormat value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Perception::Spatial::Surfaces::ISpatialSurfaceMeshBuffer)->get_Format(reinterpret_cast(&value))); return value; } template auto consume_Windows_Perception_Spatial_Surfaces_ISpatialSurfaceMeshBuffer::Stride() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Perception::Spatial::Surfaces::ISpatialSurfaceMeshBuffer)->get_Stride(&value)); return value; } template auto consume_Windows_Perception_Spatial_Surfaces_ISpatialSurfaceMeshBuffer::ElementCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Perception::Spatial::Surfaces::ISpatialSurfaceMeshBuffer)->get_ElementCount(&value)); return value; } template auto consume_Windows_Perception_Spatial_Surfaces_ISpatialSurfaceMeshBuffer::Data() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Perception::Spatial::Surfaces::ISpatialSurfaceMeshBuffer)->get_Data(&value)); return winrt::Windows::Storage::Streams::IBuffer{ value, take_ownership_from_abi }; } template auto consume_Windows_Perception_Spatial_Surfaces_ISpatialSurfaceMeshOptions::VertexPositionFormat() const { winrt::Windows::Graphics::DirectX::DirectXPixelFormat value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Perception::Spatial::Surfaces::ISpatialSurfaceMeshOptions)->get_VertexPositionFormat(reinterpret_cast(&value))); return value; } template auto consume_Windows_Perception_Spatial_Surfaces_ISpatialSurfaceMeshOptions::VertexPositionFormat(winrt::Windows::Graphics::DirectX::DirectXPixelFormat const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Perception::Spatial::Surfaces::ISpatialSurfaceMeshOptions)->put_VertexPositionFormat(static_cast(value))); } template auto consume_Windows_Perception_Spatial_Surfaces_ISpatialSurfaceMeshOptions::TriangleIndexFormat() const { winrt::Windows::Graphics::DirectX::DirectXPixelFormat value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Perception::Spatial::Surfaces::ISpatialSurfaceMeshOptions)->get_TriangleIndexFormat(reinterpret_cast(&value))); return value; } template auto consume_Windows_Perception_Spatial_Surfaces_ISpatialSurfaceMeshOptions::TriangleIndexFormat(winrt::Windows::Graphics::DirectX::DirectXPixelFormat const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Perception::Spatial::Surfaces::ISpatialSurfaceMeshOptions)->put_TriangleIndexFormat(static_cast(value))); } template auto consume_Windows_Perception_Spatial_Surfaces_ISpatialSurfaceMeshOptions::VertexNormalFormat() const { winrt::Windows::Graphics::DirectX::DirectXPixelFormat value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Perception::Spatial::Surfaces::ISpatialSurfaceMeshOptions)->get_VertexNormalFormat(reinterpret_cast(&value))); return value; } template auto consume_Windows_Perception_Spatial_Surfaces_ISpatialSurfaceMeshOptions::VertexNormalFormat(winrt::Windows::Graphics::DirectX::DirectXPixelFormat const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Perception::Spatial::Surfaces::ISpatialSurfaceMeshOptions)->put_VertexNormalFormat(static_cast(value))); } template auto consume_Windows_Perception_Spatial_Surfaces_ISpatialSurfaceMeshOptions::IncludeVertexNormals() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Perception::Spatial::Surfaces::ISpatialSurfaceMeshOptions)->get_IncludeVertexNormals(&value)); return value; } template auto consume_Windows_Perception_Spatial_Surfaces_ISpatialSurfaceMeshOptions::IncludeVertexNormals(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Perception::Spatial::Surfaces::ISpatialSurfaceMeshOptions)->put_IncludeVertexNormals(value)); } template auto consume_Windows_Perception_Spatial_Surfaces_ISpatialSurfaceMeshOptionsStatics::SupportedVertexPositionFormats() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Perception::Spatial::Surfaces::ISpatialSurfaceMeshOptionsStatics)->get_SupportedVertexPositionFormats(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_Perception_Spatial_Surfaces_ISpatialSurfaceMeshOptionsStatics::SupportedTriangleIndexFormats() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Perception::Spatial::Surfaces::ISpatialSurfaceMeshOptionsStatics)->get_SupportedTriangleIndexFormats(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_Perception_Spatial_Surfaces_ISpatialSurfaceMeshOptionsStatics::SupportedVertexNormalFormats() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Perception::Spatial::Surfaces::ISpatialSurfaceMeshOptionsStatics)->get_SupportedVertexNormalFormats(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_Perception_Spatial_Surfaces_ISpatialSurfaceObserver::GetObservedSurfaces() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Perception::Spatial::Surfaces::ISpatialSurfaceObserver)->GetObservedSurfaces(&value)); return winrt::Windows::Foundation::Collections::IMapView{ value, take_ownership_from_abi }; } template auto consume_Windows_Perception_Spatial_Surfaces_ISpatialSurfaceObserver::SetBoundingVolume(winrt::Windows::Perception::Spatial::SpatialBoundingVolume const& bounds) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Perception::Spatial::Surfaces::ISpatialSurfaceObserver)->SetBoundingVolume(*(void**)(&bounds))); } template auto consume_Windows_Perception_Spatial_Surfaces_ISpatialSurfaceObserver::SetBoundingVolumes(param::iterable const& bounds) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Perception::Spatial::Surfaces::ISpatialSurfaceObserver)->SetBoundingVolumes(*(void**)(&bounds))); } template auto consume_Windows_Perception_Spatial_Surfaces_ISpatialSurfaceObserver::ObservedSurfacesChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Perception::Spatial::Surfaces::ISpatialSurfaceObserver)->add_ObservedSurfacesChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Perception_Spatial_Surfaces_ISpatialSurfaceObserver::ObservedSurfacesChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, ObservedSurfacesChanged(handler)); } template auto consume_Windows_Perception_Spatial_Surfaces_ISpatialSurfaceObserver::ObservedSurfacesChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Perception::Spatial::Surfaces::ISpatialSurfaceObserver)->remove_ObservedSurfacesChanged(impl::bind_in(token)); } template auto consume_Windows_Perception_Spatial_Surfaces_ISpatialSurfaceObserverStatics::RequestAccessAsync() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Perception::Spatial::Surfaces::ISpatialSurfaceObserverStatics)->RequestAccessAsync(&result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_Perception_Spatial_Surfaces_ISpatialSurfaceObserverStatics2::IsSupported() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Perception::Spatial::Surfaces::ISpatialSurfaceObserverStatics2)->IsSupported(&value)); return value; } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Id(winrt::guid* 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 get_UpdateTime(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UpdateTime()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryGetBounds(void* coordinateSystem, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().TryGetBounds(*reinterpret_cast(&coordinateSystem))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryComputeLatestMeshAsync(double maxTrianglesPerCubicMeter, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().TryComputeLatestMeshAsync(maxTrianglesPerCubicMeter)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryComputeLatestMeshWithOptionsAsync(double maxTrianglesPerCubicMeter, void* options, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().TryComputeLatestMeshAsync(maxTrianglesPerCubicMeter, *reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SurfaceInfo(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SurfaceInfo()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CoordinateSystem(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CoordinateSystem()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TriangleIndices(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TriangleIndices()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VertexPositions(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VertexPositions()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VertexPositionScale(winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VertexPositionScale()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VertexNormals(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VertexNormals()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Format(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Format()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Stride(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Stride()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ElementCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ElementCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Data(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Data()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_VertexPositionFormat(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VertexPositionFormat()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_VertexPositionFormat(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().VertexPositionFormat(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TriangleIndexFormat(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TriangleIndexFormat()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TriangleIndexFormat(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TriangleIndexFormat(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VertexNormalFormat(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VertexNormalFormat()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_VertexNormalFormat(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().VertexNormalFormat(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IncludeVertexNormals(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IncludeVertexNormals()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IncludeVertexNormals(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IncludeVertexNormals(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SupportedVertexPositionFormats(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().SupportedVertexPositionFormats()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SupportedTriangleIndexFormats(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().SupportedTriangleIndexFormats()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SupportedVertexNormalFormats(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().SupportedVertexNormalFormats()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetObservedSurfaces(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().GetObservedSurfaces()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetBoundingVolume(void* bounds) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetBoundingVolume(*reinterpret_cast(&bounds)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetBoundingVolumes(void* bounds) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetBoundingVolumes(*reinterpret_cast const*>(&bounds)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_ObservedSurfacesChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().ObservedSurfacesChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ObservedSurfacesChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ObservedSurfacesChanged(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall RequestAccessAsync(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().RequestAccessAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall 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(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::Perception::Spatial::Surfaces { inline SpatialSurfaceMeshOptions::SpatialSurfaceMeshOptions() : SpatialSurfaceMeshOptions(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto SpatialSurfaceMeshOptions::SupportedVertexPositionFormats() { return impl::call_factory_cast(*)(ISpatialSurfaceMeshOptionsStatics const&), SpatialSurfaceMeshOptions, ISpatialSurfaceMeshOptionsStatics>([](ISpatialSurfaceMeshOptionsStatics const& f) { return f.SupportedVertexPositionFormats(); }); } inline auto SpatialSurfaceMeshOptions::SupportedTriangleIndexFormats() { return impl::call_factory_cast(*)(ISpatialSurfaceMeshOptionsStatics const&), SpatialSurfaceMeshOptions, ISpatialSurfaceMeshOptionsStatics>([](ISpatialSurfaceMeshOptionsStatics const& f) { return f.SupportedTriangleIndexFormats(); }); } inline auto SpatialSurfaceMeshOptions::SupportedVertexNormalFormats() { return impl::call_factory_cast(*)(ISpatialSurfaceMeshOptionsStatics const&), SpatialSurfaceMeshOptions, ISpatialSurfaceMeshOptionsStatics>([](ISpatialSurfaceMeshOptionsStatics const& f) { return f.SupportedVertexNormalFormats(); }); } inline SpatialSurfaceObserver::SpatialSurfaceObserver() : SpatialSurfaceObserver(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto SpatialSurfaceObserver::RequestAccessAsync() { return impl::call_factory_cast(*)(ISpatialSurfaceObserverStatics const&), SpatialSurfaceObserver, ISpatialSurfaceObserverStatics>([](ISpatialSurfaceObserverStatics const& f) { return f.RequestAccessAsync(); }); } inline auto SpatialSurfaceObserver::IsSupported() { return impl::call_factory_cast([](ISpatialSurfaceObserverStatics2 const& f) { return f.IsSupported(); }); } } 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 {}; #endif #ifdef __cpp_lib_format #endif } #endif