MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Hpp / decodeAPIVersion

Function decodeAPIVersion

samples/InstanceVersion/InstanceVersion.cpp:11–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#include <vulkan/vulkan.hpp>
10
11std::string decodeAPIVersion( uint32_t apiVersion )
12{
13 return std::to_string( VK_VERSION_MAJOR( apiVersion ) ) + "." + std::to_string( VK_VERSION_MINOR( apiVersion ) ) + "." +
14 std::to_string( VK_VERSION_PATCH( apiVersion ) );
15}
16
17int main()
18{

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected