vulkaninfo: safely handle device groups not supported
authorCharles Giessen <charles@lunarg.com>
Tue, 17 Dec 2019 17:12:42 +0000 (10:12 -0700)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Tue, 17 Dec 2019 18:21:51 +0000 (11:21 -0700)
commit9c5719ab7149058d452f78255c42d6083644ffca
treef1a688a6d913c1440f12c97c2f75c9424cb360dd
parent0c2618b2c31e2f216e131ff4c1c83e2c92c6ae66
vulkaninfo: safely handle device groups not supported

Previously, vulkaninfo would hard crash if device groups failed
the call to vkEnumeratePhysicalDeviceGroupsKHR. If an error happens
now the GetGroups call simply returns an empty vector.

Files Modified:
vulkaninfo/vulkaninfo.cpp
vulkaninfo/vulkaninfo.h

Change-Id: I60ed002161523cede53a144be3fad1d4bb0dd1f1
vulkaninfo/vulkaninfo.cpp
vulkaninfo/vulkaninfo.h