| 288 | } |
| 289 | |
| 290 | static void PrintVulkanSummary(const VulkanSummary& summary) { |
| 291 | std::cout << "Vulkan API version: " |
| 292 | << VK_VERSION_MAJOR(summary.api_version) << "." |
| 293 | << VK_VERSION_MINOR(summary.api_version) << "." |
| 294 | << VK_VERSION_PATCH(summary.api_version) << "\n"; |
| 295 | if (summary.device_names.empty()) { |
| 296 | std::cout << "Vulkan devices: none detected\n"; |
| 297 | return; |
| 298 | } |
| 299 | |
| 300 | std::cout << "Vulkan devices:\n"; |
| 301 | for (const std::string& name : summary.device_names) { |
| 302 | std::cout << " - " << name << "\n"; |
| 303 | } |
| 304 | } |
| 305 | |
| 306 | static bool CanCreateHwDevice(AVHWDeviceType type, const char* device_name = nullptr) { |
| 307 | AVBufferRef* device = nullptr; |