mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-06 13:14:21 +01:00
Codec: adds vulkan support
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user