Vulkan: serializing physical devices -
let's have more physical devices supporting vulkan (dedicated + integrated gpu, or 2 dedicated, or other possibilities). user can choose device use in options screen. need able persist choice on disk.
what field can use uniquely identify physical device across different executions?
vendorid+deviceidnot enough: have 2 identical gpus connecteddevicenamenot enough same reasondeviceluidnot guaranteed present, , may have same problemsdeviceuuid(below)deviceuuidlooks correct choice, spec says:while
vkphysicaldeviceidpropertieskhr::deviceuuidspecified remain consistent across driver versions , system reboots, not intended usable serializable persistent identifier device. may change when device physically added to, removed from, or moved different connector in system while system powered down.
so... should use?
deviceuuid best you're going get.
think this. if deviceuuid matches cached copy, certain it's same device. , if cached id doesn't match any existing device, either hardware removed or radical happened. either way, need pop dialog again let user decide do.
Comments
Post a Comment