MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Profiles / StringAPIVersion

Function StringAPIVersion

layer/vk_layer_table.cpp:154–162  ·  view source on GitHub ↗

Convert integer API version to a string

Source from the content-addressed store, hash-verified

152
153// Convert integer API version to a string
154std::string StringAPIVersion(uint32_t version) {
155 std::stringstream version_name;
156 if (version == 0) {
157 return "<unrecognized>";
158 }
159 version_name << VK_API_VERSION_MAJOR(version) << "." << VK_API_VERSION_MINOR(version) << "." << VK_API_VERSION_PATCH(version)
160 << " (0x" << std::setfill('0') << std::setw(8) << std::hex << version << ")";
161 return version_name.str();
162}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected