You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (XR_FAILED(xrGetInstanceProcAddr(xrInstance, "xrGetD3D12GraphicsRequirementsKHR", reinterpret_cast<PFN_xrVoidFunction*>(&xrGetD3D12GraphicsRequirementsKHR))))
89
+
{
90
+
LOG_ERROR_AND_THROW("Failed to get xrGetD3D12GraphicsRequirementsKHR. Make sure that XR_KHR_D3D12_enable extension is enabled.");
auto Adapters = FindCompatibleAdapters(MinimumFeatureLevel);
312
-
if (EngineCI.AdapterId < Adapters.size())
313
-
hardwareAdapter = Adapters[EngineCI.AdapterId];
365
+
auto Adapters = FindCompatibleAdapters(MinFeatureLevel, AdapterLUID);
366
+
if (AdapterId < Adapters.size())
367
+
hardwareAdapter = Adapters[AdapterId];
314
368
else
315
369
{
316
-
LOG_ERROR_AND_THROW(EngineCI.AdapterId, " is not a valid hardware adapter id. Total number of compatible adapters available on this system: ", Adapters.size());
370
+
LOG_ERROR_AND_THROW(AdapterId, " is not a valid hardware adapter id. Total number of compatible adapters available on this system: ", Adapters.size());
0 commit comments