MCPcopy Create free account
hub / github.com/LunarG/VulkanTools / GetUUIDString

Function GetUUIDString

vkconfig_core/vulkan_util.cpp:33–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31#include <iostream>
32
33std::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
46std::string GetLUIDString(const uint8_t deviceLUID[VK_LUID_SIZE]) {
47 std::string result;

Callers 1

LogMethod · 0.85

Calls 1

formatFunction · 0.70

Tested by

no test coverage detected