[sys/info] Retrieve GPU info on Windows.

This commit is contained in:
Jeroen van Rijn
2022-09-01 16:05:49 +02:00
parent 7479ac48e8
commit 0f3cebd2b7
2 changed files with 127 additions and 48 deletions
+7
View File
@@ -6,6 +6,7 @@ when !(ODIN_ARCH == .amd64 || ODIN_ARCH == .i386 || ODIN_ARCH == .arm32 || ODIN_
os_version: OS_Version
ram: RAM
gpus: []GPU
OS_Version_Platform :: enum {
Unknown,
@@ -35,4 +36,10 @@ RAM :: struct {
free_ram: int,
total_swap: int,
free_swap: int,
}
GPU :: struct {
vendor_name: string,
model_name: string,
total_ram: int,
}