mirror of
https://github.com/flightlessmango/MangoHud.git
synced 2024-11-04 06:00:23 +00:00
gpu: amdgpuinfo: ifdef linux for windows build
This commit is contained in:
parent
0b76325f06
commit
05444cb021
@ -72,6 +72,7 @@ nvapi_util();
|
||||
}
|
||||
|
||||
void getAmdGpuInfo(){
|
||||
#ifdef __linux__
|
||||
int64_t value = 0;
|
||||
if (metrics_path.empty()){
|
||||
if (amdgpu.busy) {
|
||||
@ -144,4 +145,5 @@ void getAmdGpuInfo(){
|
||||
value = 0;
|
||||
gpu_info.gtt_used = float(value) / (1024 * 1024 * 1024);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user