mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
20 lines
500 B
C
20 lines
500 B
C
#include "gpu.h"
|
|
#include "detection/internal.h"
|
|
#include "detection/vulkan.h"
|
|
|
|
void ffDetectGPUImpl(FFlist* gpus, const FFinstance* instance);
|
|
|
|
const FFlist* ffDetectGPU(const FFinstance* instance)
|
|
{
|
|
FF_DETECTION_INTERNAL_GUARD(FFlist,
|
|
ffListInit(&result, sizeof(FFGPUResult));
|
|
ffDetectGPUImpl(&result, instance);
|
|
|
|
if(result.length == 0)
|
|
{
|
|
const FFVulkanResult* vulkan = ffDetectVulkan(instance);
|
|
result = vulkan->gpus;
|
|
}
|
|
);
|
|
}
|