mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-31 03:41:01 +00:00
Detect the case where no vulkan physical devices are enumerated and bail
This commit is contained in:
@@ -340,6 +340,9 @@ ReplayStatus WrappedVulkan::Initialise(VkInitParams ¶ms, uint64_t sectionVer
|
||||
VkResult vkr = ObjDisp(m_Instance)->EnumeratePhysicalDevices(Unwrap(m_Instance), &count, NULL);
|
||||
RDCASSERTEQUAL(vkr, VK_SUCCESS);
|
||||
|
||||
if(count == 0)
|
||||
return ReplayStatus::APIHardwareUnsupported;
|
||||
|
||||
m_ReplayPhysicalDevices.resize(count);
|
||||
m_ReplayPhysicalDevicesUsed.resize(count);
|
||||
m_OriginalPhysicalDevices.resize(count);
|
||||
|
||||
Reference in New Issue
Block a user