Vulkan: error out if no results detected

This commit is contained in:
李通洲
2024-01-15 09:39:03 +08:00
parent afa0a7dac8
commit 5a34b8d01f
+6
View File
@@ -17,6 +17,12 @@ void ffPrintVulkan(FFVulkanOptions* options)
return;
}
if (vulkan->apiVersion.length == 0 && vulkan->driver.length == 0)
{
ffPrintError(FF_VULKAN_MODULE_NAME, 0, &options->moduleArgs, "No Vulkan drivers found");
return;
}
if(options->moduleArgs.outputFormat.length == 0)
{
ffPrintLogoAndKey(FF_VULKAN_MODULE_NAME, 0, &options->moduleArgs, FF_PRINT_TYPE_DEFAULT);