MangoHud/src/nvidia_info.h

18 lines
503 B
C
Raw Normal View History

#pragma once
#ifndef MANGOHUD_NVIDIA_INFO_H
#define MANGOHUD_NVIDIA_INFO_H
2020-01-29 01:46:26 +00:00
#include <nvml.h>
2020-01-30 09:52:24 +00:00
2020-02-01 01:28:31 +00:00
extern nvmlReturn_t result;
extern unsigned int nvidiaTemp, processSamplesCount, *vgpuInstanceSamplesCount, nvidiaCoreClock, nvidiaMemClock, nvidiaPowerUsage;
2020-02-01 01:28:31 +00:00
extern nvmlDevice_t nvidiaDevice;
extern struct nvmlUtilization_st nvidiaUtilization;
2020-02-04 06:11:13 +00:00
extern struct nvmlMemory_st nvidiaMemory;
2020-02-01 01:28:31 +00:00
extern bool nvmlSuccess;
2020-01-29 01:46:26 +00:00
bool checkNVML(const char* pciBusId);
bool getNVMLInfo(void);
#endif //MANGOHUD_NVIDIA_INFO_H