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

Function GetAllocationStrategyCount

src/Tests.cpp:243–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243static uint32_t GetAllocationStrategyCount()
244{
245 switch(ConfigType)
246 {
247 case CONFIG_TYPE_MINIMUM:
248 case CONFIG_TYPE_SMALL:
249 return 1;
250 default: assert(0);
251 case CONFIG_TYPE_AVERAGE:
252 case CONFIG_TYPE_LARGE:
253 case CONFIG_TYPE_MAXIMUM:
254 return 2;
255 }
256}
257
258static const char* GetAllocationStrategyName(VmaAllocationCreateFlags allocStrategy)
259{

Callers 2

BenchmarkAlgorithmsFunction · 0.85
PerformMainTestsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected