| 31 | #include <iostream> |
| 32 | |
| 33 | std::string GetUUIDString(const uint8_t deviceUUID[VK_UUID_SIZE]) { |
| 34 | std::string result; |
| 35 | |
| 36 | for (std::size_t i = 0, n = VK_UUID_SIZE; i < n; ++i) { |
| 37 | result += format("%02X", deviceUUID[i]); |
| 38 | if (i == 3 || i == 5 || i == 7) { |
| 39 | result += "-"; |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | return result; |
| 44 | } |
| 45 | |
| 46 | std::string GetLUIDString(const uint8_t deviceLUID[VK_LUID_SIZE]) { |
| 47 | std::string result; |