mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-16 21:00:14 +00:00
Fix build error in D3DDeviceCache.cpp
This commit is contained in:
parent
11baa4b56d
commit
a4e312da43
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ D3DDeviceCache::D3DDeviceCache(winml::LearningModelDeviceKind const& deviceKind)
|
|||
}
|
||||
#ifdef ENABLE_DXCORE
|
||||
if (support.has_dxgi == false) {
|
||||
com_ptr<IDXCoreAdapter> spAdapter;
|
||||
winrt::com_ptr<IDXCoreAdapter> spAdapter;
|
||||
WINML_THROW_IF_FAILED_MSG(GetDXCoreHardwareAdapterWithPreference(preference, spAdapter.put()), errStr);
|
||||
WINML_THROW_IF_FAILED(D3D12CreateDevice(spAdapter.get(), D3D_FEATURE_LEVEL_11_0, IID_PPV_ARGS(device_.put())));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue