Gfx stack update
[nyanlinux.git] / builders / mesa-vulkan-amd-sh-1b8cf06fc76b7baf78dab80bd8023377f8fb410e / 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;