SpiecsEngine
 
Loading...
Searching...
No Matches

◆ ConvertMemoryFlagtoString()

std::string Spices::ImguiVideoMemoryRuntimeHUD::ConvertMemoryFlagtoString ( VkMemoryHeapFlags flag)
private

Convert memory flags to string.

Parameters
[in]flagVkMemoryHeapFlags.
Returns
Returns string.

Definition at line 212 of file ImguiVideoMemoryRuntimeHUD.cpp.

213 {
215
216 switch (flag)
217 {
218 case VK_MEMORY_HEAP_DEVICE_LOCAL_BIT:
219 return "Device Local";
220 case VK_MEMORY_HEAP_MULTI_INSTANCE_BIT: // NOTICE THAT: enum value also represents "VK_MEMORY_HEAP_MULTI_INSTANCE_BIT_KHR"
221 return "Multiple Instance";
222 default:
223 // In case that it does NOT correspond to device local memory
224 return "Host Local";
225 }
226 }
#define SPICES_PROFILE_ZONE