2022-07-26 18:18:14 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#ifndef FF_INCLUDED_detection_vulkan
|
|
|
|
|
#define FF_INCLUDED_detection_vulkan
|
|
|
|
|
|
|
|
|
|
#include "fastfetch.h"
|
|
|
|
|
|
2022-09-01 17:14:50 +02:00
|
|
|
#define FF_GPU_TEMP_UNSET (0/0.0)
|
|
|
|
|
|
2022-07-26 18:18:14 +02:00
|
|
|
typedef struct FFGPUResult
|
|
|
|
|
{
|
|
|
|
|
FFstrbuf vendor;
|
2022-09-01 17:14:50 +02:00
|
|
|
FFstrbuf device;
|
2022-07-26 18:18:14 +02:00
|
|
|
FFstrbuf driver;
|
|
|
|
|
double temperature;
|
|
|
|
|
} FFGPUResult;
|
|
|
|
|
|
|
|
|
|
typedef struct FFVulkanResult
|
|
|
|
|
{
|
|
|
|
|
FFstrbuf driver;
|
|
|
|
|
FFstrbuf apiVersion;
|
|
|
|
|
FFstrbuf conformanceVersion;
|
|
|
|
|
FFlist devices; //List of FFGPUResult
|
|
|
|
|
} FFVulkanResult;
|
|
|
|
|
|
|
|
|
|
const FFVulkanResult* ffDetectVulkan(const FFinstance* instance);
|
|
|
|
|
|
|
|
|
|
#endif
|