2020-04-17 13:18:54 +00:00
|
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
|
// Licensed under the MIT License.
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
// IUnknown must be declared before winrt/base.h is included to light up support for native COM
|
|
|
|
|
// interfaces with C++/WinRT types (e.g. winrt::com_ptr<ITensorNative>).
|
|
|
|
|
#include <Unknwn.h>
|
|
|
|
|
#include <wil/cppwinrt.h>
|
|
|
|
|
|
|
|
|
|
#include <winrt/windows.media.h>
|
|
|
|
|
#include <winrt/windows.graphics.imaging.h>
|
|
|
|
|
#include <winrt/windows.foundation.h>
|
|
|
|
|
#include <winrt/windows.foundation.collections.h>
|
|
|
|
|
#include <winrt/windows.devices.enumeration.pnp.h>
|
|
|
|
|
#include <winrt/windows.graphics.directx.direct3d11.h>
|
|
|
|
|
#include <winrt/windows.media.capture.h>
|
|
|
|
|
#include <winrt/windows.media.h>
|
|
|
|
|
#include <winrt/windows.security.cryptography.core.h>
|
|
|
|
|
#include <winrt/windows.security.cryptography.h>
|
|
|
|
|
#include <winrt/windows.storage.h>
|
|
|
|
|
#include <winrt/windows.storage.streams.h>
|
|
|
|
|
|
2023-07-26 04:56:50 +00:00
|
|
|
// clang-format off
|
2020-04-17 13:18:54 +00:00
|
|
|
#define STRINGIFY(x) #x
|
|
|
|
|
#define XSTRINGIFY(x) STRINGIFY(x)
|
|
|
|
|
#define CPPWINRT_HEADER(root_ns) comp_generated/winrt/##root_ns##.AI.MachineLearning.h
|
2021-01-22 23:15:53 +00:00
|
|
|
#define CPPWINRT_EXPERIMENTAL_HEADER(root_ns) comp_generated/winrt/##root_ns##.AI.MachineLearning.Experimental.h
|
2020-04-17 13:18:54 +00:00
|
|
|
#define NATIVE_HEADER(root_ns) root_ns##.AI.MachineLearning.native.h
|
|
|
|
|
#define NATIVE_INTERNAL_HEADER(root_ns) root_ns##.AI.MachineLearning.native.internal.h
|
|
|
|
|
#define CREATE_CPPWINRT_COMPONENT_HEADER() XSTRINGIFY(CPPWINRT_HEADER(WINML_ROOT_NS))
|
2021-01-22 23:15:53 +00:00
|
|
|
#define CREATE_CPPWINRT_EXPERIMENTAL_COMPONENT_HEADER() XSTRINGIFY(CPPWINRT_EXPERIMENTAL_HEADER(WINML_ROOT_NS))
|
2020-04-17 13:18:54 +00:00
|
|
|
#define CREATE_NATIVE_HEADER() XSTRINGIFY(NATIVE_HEADER(WINML_ROOT_NS))
|
|
|
|
|
#define CREATE_NATIVE_INTERNAL_HEADER() XSTRINGIFY(NATIVE_INTERNAL_HEADER(WINML_ROOT_NS))
|
2023-07-26 04:56:50 +00:00
|
|
|
// clang-format on
|
2020-04-17 13:18:54 +00:00
|
|
|
|
|
|
|
|
#include CREATE_CPPWINRT_COMPONENT_HEADER()
|
|
|
|
|
|
2021-01-27 06:56:30 +00:00
|
|
|
#ifndef BUILD_INBOX
|
2021-01-28 22:37:15 +00:00
|
|
|
#include CREATE_CPPWINRT_EXPERIMENTAL_COMPONENT_HEADER()
|
|
|
|
|
#endif
|
2021-01-27 06:56:30 +00:00
|
|
|
|
2020-04-17 13:18:54 +00:00
|
|
|
// WinML Native Headers
|
|
|
|
|
#include CREATE_NATIVE_HEADER()
|
|
|
|
|
#include CREATE_NATIVE_INTERNAL_HEADER()
|
|
|
|
|
|
|
|
|
|
namespace winml = winrt::WINML_ROOT_NS::AI::MachineLearning;
|
|
|
|
|
namespace wf = winrt::Windows::Foundation;
|
|
|
|
|
namespace wfc = winrt::Windows::Foundation::Collections;
|
|
|
|
|
namespace wm = winrt::Windows::Media;
|
|
|
|
|
namespace wgi = winrt::Windows::Graphics::Imaging;
|
|
|
|
|
namespace wgdx = winrt::Windows::Graphics::DirectX;
|
|
|
|
|
namespace ws = winrt::Windows::Storage;
|
2023-07-26 04:56:50 +00:00
|
|
|
namespace wss = winrt::Windows::Storage::Streams;
|