MCPcopy Create free account
hub / github.com/defold/defold / VkPhysicalDeviceTypeToStr

Function VkPhysicalDeviceTypeToStr

engine/graphics/src/vulkan/graphics_vulkan.cpp:120–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118 #undef DM_VK_RESULT_TO_STR_CASE
119
120 static const char* VkPhysicalDeviceTypeToStr(VkPhysicalDeviceType device_type)
121 {
122 switch (device_type)
123 {
124 case VK_PHYSICAL_DEVICE_TYPE_OTHER: return "other";
125 case VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU: return "integrated_gpu";
126 case VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU: return "discrete_gpu";
127 case VK_PHYSICAL_DEVICE_TYPE_VIRTUAL_GPU: return "virtual_gpu";
128 case VK_PHYSICAL_DEVICE_TYPE_CPU: return "cpu";
129 default: return "unknown";
130 }
131 }
132
133 static const char* VkVendorIdToStr(uint32_t vendor_id)
134 {

Callers 1

VulkanPrintDeviceInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected