MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / PrintVulkanSummary

Function PrintVulkanSummary

examples/VulkanBenchmark.cpp:290–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288}
289
290static 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
306static bool CanCreateHwDevice(AVHWDeviceType type, const char* device_name = nullptr) {
307 AVBufferRef* device = nullptr;

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected