2023-03-26 20:42:18 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
// This file will be included in "fastfetch.h", do NOT put unnecessary things here
|
|
|
|
|
|
|
|
|
|
#include "common/option.h"
|
2024-01-20 14:10:13 +08:00
|
|
|
#include "common/percent.h"
|
2023-03-26 20:42:18 +08:00
|
|
|
|
2024-11-14 10:04:57 +08:00
|
|
|
typedef enum __attribute__((__packed__)) FFGPUType
|
2023-03-26 20:42:18 +08:00
|
|
|
{
|
2025-05-07 16:06:47 +02:00
|
|
|
FF_GPU_TYPE_NONE, // Indicates no specific GPU type. Useful as a hide filter only.
|
|
|
|
|
FF_GPU_TYPE_UNKNOWN, // Indicates an unknown or unrecognized GPU type.
|
2023-03-26 20:42:18 +08:00
|
|
|
FF_GPU_TYPE_INTEGRATED,
|
|
|
|
|
FF_GPU_TYPE_DISCRETE,
|
|
|
|
|
} FFGPUType;
|
|
|
|
|
|
2024-11-14 10:04:57 +08:00
|
|
|
typedef enum __attribute__((__packed__)) FFGPUDetectionMethod
|
2024-05-20 16:45:23 +08:00
|
|
|
{
|
|
|
|
|
FF_GPU_DETECTION_METHOD_AUTO,
|
|
|
|
|
FF_GPU_DETECTION_METHOD_PCI,
|
|
|
|
|
FF_GPU_DETECTION_METHOD_VULKAN,
|
2024-06-20 14:05:38 +08:00
|
|
|
FF_GPU_DETECTION_METHOD_OPENCL,
|
2024-05-20 16:45:23 +08:00
|
|
|
FF_GPU_DETECTION_METHOD_OPENGL,
|
|
|
|
|
} FFGPUDetectionMethod;
|
|
|
|
|
|
2023-03-26 20:42:18 +08:00
|
|
|
typedef struct FFGPUOptions
|
|
|
|
|
{
|
2023-08-17 10:56:54 +08:00
|
|
|
FFModuleBaseInfo moduleInfo;
|
2023-03-26 20:42:18 +08:00
|
|
|
FFModuleArgs moduleArgs;
|
|
|
|
|
|
|
|
|
|
FFGPUType hideType;
|
2024-05-20 16:45:23 +08:00
|
|
|
FFGPUDetectionMethod detectionMethod;
|
2023-03-26 20:42:18 +08:00
|
|
|
bool temp;
|
2023-12-20 14:59:27 +08:00
|
|
|
bool driverSpecific;
|
2024-05-20 16:45:23 +08:00
|
|
|
bool forceMethod;
|
2024-02-26 16:39:41 +08:00
|
|
|
FFColorRangeConfig tempConfig;
|
2024-11-14 10:04:57 +08:00
|
|
|
FFPercentageModuleConfig percent;
|
2023-03-26 20:42:18 +08:00
|
|
|
} FFGPUOptions;
|