Codec: adds vulkan support

This commit is contained in:
李通洲
2026-05-31 23:31:45 +08:00
parent 3e3a03a233
commit 3a54617196
11 changed files with 310 additions and 9 deletions
+14
View File
@@ -0,0 +1,14 @@
#include "codec.h"
const char* ffDetectCodec(FFCodecOptions* options, FFlist* result /*list of FFCodecResult*/) {
if (options->useVulkan) {
#ifdef FF_HAVE_VULKAN
return ffDetectCodecVulkan(result);
#else
FF_UNUSED(result);
return "Fastfetch was built without Vulkan support";
#endif
}
return ffDetectCodecNative(options, result);
}