| 1467 | } |
| 1468 | |
| 1469 | static 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 | |
| 1496 | void SetAllocatorCreateInfo(VmaAllocatorCreateInfo& outInfo) |
| 1497 | { |
no test coverage detected