mesa-gl:moved to "simplified /usr" and towards RCS
[nyanlinux.git] / builders / mesa-vulkan-amd-sh-ddf2ca4faffdd309638aa0ebfcba2c43b4fc439d / contrib / vk_enum_to_str.c
blobd764859d7290236265ef9e1e4273acef04617ccb
1 #include <stdio.h>
2 #include <vulkan/vulkan_core.h>
4 const char * vk_Result_to_str(VkResult input)
6 static char buf[64];
7 sprintf(buf, "%ld", input);
8 return buf;
10 const char *vk_ObjectType_to_ObjectName(VkObjectType type)
12 static char buf[64];
13 sprintf(buf, "0x%lx", type);
14 return buf;
16 const char *vk_ObjectType_to_str(VkObjectType type)
18 static char buf[64];
19 sprintf(buf, "0x%lx", type);
20 return buf;