Add AdapterList
This commit is contained in:
Родитель
d033dc470c
Коммит
cd7230e12d
|
@ -8,6 +8,7 @@ using System.Threading.Tasks;
|
|||
using Windows.Graphics.Imaging;
|
||||
using Windows.Media;
|
||||
using Windows.Storage;
|
||||
using WinMLSamplesGalleryNative;
|
||||
|
||||
namespace WinMLSamplesGallery.Samples
|
||||
{
|
||||
|
@ -18,6 +19,8 @@ namespace WinMLSamplesGallery.Samples
|
|||
{
|
||||
this.InitializeComponent();
|
||||
System.Diagnostics.Debug.WriteLine("Initialized Adapter Selection");
|
||||
var AdapterList = WinMLSamplesGalleryNative.AdapterList.GetAdapters();
|
||||
System.Diagnostics.Debug.WriteLine("Called GetAdapters", AdapterList);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
#include "pch.h"
|
||||
#include "AdapterList.h"
|
||||
#include "AdapterList.g.cpp"
|
||||
|
||||
namespace winrt::WinMLSamplesGalleryNative::implementation
|
||||
{
|
||||
void AdapterList::GetAdapters(hstring const& path) {
|
||||
return;
|
||||
winrt::WinMLSamplesGalleryNative::AdapterList AdapterList::GetAdapters() {
|
||||
return winrt::make<AdapterList>();
|
||||
}
|
||||
}
|
|
@ -6,7 +6,7 @@ namespace winrt::WinMLSamplesGalleryNative::implementation
|
|||
struct AdapterList : AdapterListT<AdapterList>
|
||||
{
|
||||
AdapterList() = default;
|
||||
static void GetAdapters(hstring const& path);
|
||||
static winrt::WinMLSamplesGalleryNative::AdapterList GetAdapters();
|
||||
};
|
||||
}
|
||||
namespace winrt::WinMLSamplesGalleryNative::factory_implementation
|
||||
|
|
|
@ -20,6 +20,6 @@ namespace WinMLSamplesGalleryNative
|
|||
[default_interface]
|
||||
runtimeclass AdapterList
|
||||
{
|
||||
static void GetAdapters(String key);
|
||||
static AdapterList GetAdapters();
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче