mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-30 00:37:23 +01:00
36 lines
985 B
C
36 lines
985 B
C
#pragma once
|
|
|
|
#include "util/option.h"
|
|
#include "util/percent.h"
|
|
|
|
typedef enum __attribute__((__packed__)) FFGPUType
|
|
{
|
|
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.
|
|
FF_GPU_TYPE_INTEGRATED,
|
|
FF_GPU_TYPE_DISCRETE,
|
|
} FFGPUType;
|
|
|
|
typedef enum __attribute__((__packed__)) FFGPUDetectionMethod
|
|
{
|
|
FF_GPU_DETECTION_METHOD_AUTO,
|
|
FF_GPU_DETECTION_METHOD_PCI,
|
|
FF_GPU_DETECTION_METHOD_VULKAN,
|
|
FF_GPU_DETECTION_METHOD_OPENCL,
|
|
FF_GPU_DETECTION_METHOD_OPENGL,
|
|
} FFGPUDetectionMethod;
|
|
|
|
typedef struct FFGPUOptions
|
|
{
|
|
FFModuleArgs moduleArgs;
|
|
|
|
FFGPUType hideType;
|
|
FFGPUDetectionMethod detectionMethod;
|
|
bool temp;
|
|
bool driverSpecific;
|
|
FFColorRangeConfig tempConfig;
|
|
FFPercentageModuleConfig percent;
|
|
} FFGPUOptions;
|
|
|
|
static_assert(sizeof(FFGPUOptions) <= FF_OPTION_MAX_SIZE, "FFGPUOptions size exceeds maximum allowed size");
|