MCPcopy Create free account
hub / github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator / GetAllocationStrategyName

Function GetAllocationStrategyName

src/Tests.cpp:258–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257
258static const char* GetAllocationStrategyName(VmaAllocationCreateFlags allocStrategy)
259{
260 switch(allocStrategy)
261 {
262 case VMA_ALLOCATION_CREATE_STRATEGY_MIN_MEMORY_BIT: return "MIN_MEMORY"; break;
263 case VMA_ALLOCATION_CREATE_STRATEGY_MIN_TIME_BIT: return "MIN_TIME"; break;
264 case 0: return "Default"; break;
265 default: assert(0); return "";
266 }
267}
268
269static const char* GetVirtualAllocationStrategyName(VmaVirtualAllocationCreateFlags allocStrategy)
270{

Callers 1

BenchmarkAlgorithmsCaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected