// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_UI_Composition_Effects_H #define WINRT_Windows_UI_Composition_Effects_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.UI.Composition.h" #include "winrt/impl/Windows.Graphics.Effects.2.h" #include "winrt/impl/Windows.UI.Composition.Effects.2.h" namespace winrt::impl { template auto consume_Windows_UI_Composition_Effects_ISceneLightingEffect::AmbientAmount() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Composition::Effects::ISceneLightingEffect)->get_AmbientAmount(&value)); return value; } template auto consume_Windows_UI_Composition_Effects_ISceneLightingEffect::AmbientAmount(float value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Composition::Effects::ISceneLightingEffect)->put_AmbientAmount(value)); } template auto consume_Windows_UI_Composition_Effects_ISceneLightingEffect::DiffuseAmount() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Composition::Effects::ISceneLightingEffect)->get_DiffuseAmount(&value)); return value; } template auto consume_Windows_UI_Composition_Effects_ISceneLightingEffect::DiffuseAmount(float value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Composition::Effects::ISceneLightingEffect)->put_DiffuseAmount(value)); } template auto consume_Windows_UI_Composition_Effects_ISceneLightingEffect::NormalMapSource() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Composition::Effects::ISceneLightingEffect)->get_NormalMapSource(&value)); return winrt::Windows::Graphics::Effects::IGraphicsEffectSource{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Composition_Effects_ISceneLightingEffect::NormalMapSource(winrt::Windows::Graphics::Effects::IGraphicsEffectSource const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Composition::Effects::ISceneLightingEffect)->put_NormalMapSource(*(void**)(&value))); } template auto consume_Windows_UI_Composition_Effects_ISceneLightingEffect::SpecularAmount() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Composition::Effects::ISceneLightingEffect)->get_SpecularAmount(&value)); return value; } template auto consume_Windows_UI_Composition_Effects_ISceneLightingEffect::SpecularAmount(float value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Composition::Effects::ISceneLightingEffect)->put_SpecularAmount(value)); } template auto consume_Windows_UI_Composition_Effects_ISceneLightingEffect::SpecularShine() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Composition::Effects::ISceneLightingEffect)->get_SpecularShine(&value)); return value; } template auto consume_Windows_UI_Composition_Effects_ISceneLightingEffect::SpecularShine(float value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Composition::Effects::ISceneLightingEffect)->put_SpecularShine(value)); } template auto consume_Windows_UI_Composition_Effects_ISceneLightingEffect2::ReflectanceModel() const { winrt::Windows::UI::Composition::Effects::SceneLightingEffectReflectanceModel value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Composition::Effects::ISceneLightingEffect2)->get_ReflectanceModel(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Composition_Effects_ISceneLightingEffect2::ReflectanceModel(winrt::Windows::UI::Composition::Effects::SceneLightingEffectReflectanceModel const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Composition::Effects::ISceneLightingEffect2)->put_ReflectanceModel(static_cast(value))); } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AmbientAmount(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AmbientAmount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AmbientAmount(float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AmbientAmount(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DiffuseAmount(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DiffuseAmount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DiffuseAmount(float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DiffuseAmount(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_NormalMapSource(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().NormalMapSource()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_NormalMapSource(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().NormalMapSource(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SpecularAmount(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SpecularAmount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SpecularAmount(float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SpecularAmount(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SpecularShine(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SpecularShine()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SpecularShine(float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SpecularShine(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ReflectanceModel(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ReflectanceModel()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ReflectanceModel(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ReflectanceModel(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::UI::Composition::Effects { inline SceneLightingEffect::SceneLightingEffect() : SceneLightingEffect(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } } 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 {}; #endif #ifdef __cpp_lib_format #endif } #endif