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

Function PrintEnabledFeatures

src/VulkanSample.cpp:1469–1494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1467}
1468
1469static void PrintEnabledFeatures()
1470{
1471 wprintf(L"Enabled extensions and features:\n");
1472 wprintf(L"Validation layer: %d\n", g_EnableValidationLayer ? 1 : 0);
1473 wprintf(L"Sparse binding: %d\n", g_SparseBindingEnabled ? 1 : 0);
1474 if(GetVulkanApiVersion() == VK_API_VERSION_1_0)
1475 {
1476 wprintf(L"VK_KHR_get_memory_requirements2: %d\n", VK_KHR_get_memory_requirements2_enabled ? 1 : 0);
1477 wprintf(L"VK_KHR_get_physical_device_properties2: %d\n", VK_KHR_get_physical_device_properties2_enabled ? 1 : 0);
1478 wprintf(L"VK_KHR_dedicated_allocation: %d\n", VK_KHR_dedicated_allocation_enabled ? 1 : 0);
1479 wprintf(L"VK_KHR_bind_memory2: %d\n", VK_KHR_bind_memory2_enabled ? 1 : 0);
1480 }
1481 wprintf(L"VK_EXT_memory_budget: %d\n", VK_EXT_memory_budget_enabled ? 1 : 0);
1482 wprintf(L"VK_AMD_device_coherent_memory: %d\n", VK_AMD_device_coherent_memory_enabled ? 1 : 0);
1483 if(GetVulkanApiVersion() < VK_API_VERSION_1_2)
1484 {
1485 wprintf(L"VK_KHR_buffer_device_address: %d\n", VK_KHR_buffer_device_address_enabled ? 1 : 0);
1486 }
1487 else
1488 {
1489 wprintf(L"bufferDeviceAddress: %d\n", VK_KHR_buffer_device_address_enabled ? 1 : 0);
1490 }
1491 wprintf(L"VK_EXT_memory_priority: %d\n", VK_EXT_memory_priority_enabled ? 1 : 0);
1492 wprintf(L"VK_KHR_maintenance5: %d\n", VK_KHR_maintenance5_enabled? 1 : 0);
1493 wprintf(L"VK_KHR_external_memory_win32: %d\n", VK_KHR_external_memory_win32_enabled ? 1 : 0);
1494}
1495
1496void SetAllocatorCreateInfo(VmaAllocatorCreateInfo& outInfo)
1497{

Callers 1

InitializeApplicationFunction · 0.85

Calls 1

GetVulkanApiVersionFunction · 0.85

Tested by

no test coverage detected