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 + deviceid not enough: have 2 identical gpus connected
  • devicename not enough same reason
  • deviceluid not guaranteed present, , may have same problems deviceuuid (below)
  • deviceuuid looks correct choice, spec says:

    while vkphysicaldeviceidpropertieskhr::deviceuuid specified 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

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -