Update WinRT to new version 2.0.250303.1

PiperOrigin-RevId: 781075193
This commit is contained in:
Guogang Li
2025-07-09 08:58:00 -07:00
committed by Copybara-Service
parent 5e558cffc4
commit 8f14bd10fc
1395 changed files with 498490 additions and 61973 deletions
@@ -1,11 +1,11 @@
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.220531.1
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.250303.1
#pragma once
#ifndef WINRT_Windows_Graphics_Effects_H
#define WINRT_Windows_Graphics_Effects_H
#include "winrt/base.h"
static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.220531.1"), "Mismatched C++/WinRT headers.");
#define CPPWINRT_VERSION "2.0.220531.1"
static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), "Mismatched C++/WinRT headers.");
#define CPPWINRT_VERSION "2.0.250303.1"
#include "winrt/Windows.Graphics.h"
#include "winrt/impl/Windows.Graphics.Effects.2.h"
namespace winrt::impl
@@ -13,12 +13,36 @@ namespace winrt::impl
template <typename D> auto consume_Windows_Graphics_Effects_IGraphicsEffect<D>::Name() const
{
void* name{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Effects::IGraphicsEffect)->get_Name(&name));
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Effects::IGraphicsEffect>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Effects::IGraphicsEffect, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
check_hresult(_winrt_cast_result_code);
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Effects::IGraphicsEffect>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Name(&name));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Effects::IGraphicsEffect>**)this;
check_hresult(_winrt_abi_type->get_Name(&name));
}
return hstring{ name, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_Graphics_Effects_IGraphicsEffect<D>::Name(param::hstring const& name) const
{
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Effects::IGraphicsEffect)->put_Name(*(void**)(&name)));
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Effects::IGraphicsEffect>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Effects::IGraphicsEffect, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
check_hresult(_winrt_cast_result_code);
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Effects::IGraphicsEffect>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_Name(*(void**)(&name)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Effects::IGraphicsEffect>**)this;
check_hresult(_winrt_abi_type->put_Name(*(void**)(&name)));
}
}
template <typename D>
struct produce<D, winrt::Windows::Graphics::Effects::IGraphicsEffect> : produce_base<D, winrt::Windows::Graphics::Effects::IGraphicsEffect>