Utility class for retrieving and storing hardware and driver information.
More...
#include <HardwareInfo.hpp>
|
| static std::string | GetCPUName () |
| | Retrieves the name of the CPU.
|
| static std::string | GetSystemMemory () |
| | Retrieves the total amount of system memory.
|
| static bool | HasAVX2 () |
| | Checks if the CPU supports the AVX2 instruction set.
|
| static void | SetGPUInfo (const std::string &name, uint32_t vendorID, uint32_t driverVersion) |
| | Sets the stored GPU information.
|
| static std::string | GetGPUName () |
| | Retrieves the name of the GPU.
|
| static std::string | GetDriverVersion () |
| | Retrieves the GPU driver version.
|
| static void | SetVulkanVersions (const std::string &deviceVer, const std::string &requestedVer) |
| | Sets the Vulkan API versions.
|
| static std::string | GetVulkanDeviceVersion () |
| | Retrieves the Vulkan version supported by the device.
|
| static std::string | GetVulkanRequestedVersion () |
| | Retrieves the Vulkan version requested by the engine.
|
| static void | SetVulkanFeatures (const VulkanFeatures &features) |
| | Sets the active Vulkan features.
|
| static VulkanFeatures | GetVulkanFeatures () |
| | Retrieves the active Vulkan features.
|
| static void | PrintCrashDump (int fd) |
| | Prints hardware information to a crash dump file descriptor.
|
Utility class for retrieving and storing hardware and driver information.
Definition at line 24 of file HardwareInfo.hpp.
◆ CheckHardwareSupport()
| bool vex::HardwareInfo::CheckHardwareSupport |
( |
| ) |
|
|
staticprivate |
◆ CpuId()
| void vex::HardwareInfo::CpuId |
( |
int | info[4], |
|
|
int | function_id ) |
|
inlinestaticprivate |
◆ DetectCPUName()
| void vex::HardwareInfo::DetectCPUName |
( |
| ) |
|
|
staticprivate |
◆ DetectSystemMemory()
| void vex::HardwareInfo::DetectSystemMemory |
( |
| ) |
|
|
staticprivate |
◆ GetCPUName()
| std::string vex::HardwareInfo::GetCPUName |
( |
| ) |
|
|
static |
Retrieves the name of the CPU.
- Returns
- std::string - The CPU model name.
Definition at line 116 of file HardwareInfo.cpp.
◆ GetDriverVersion()
| std::string vex::HardwareInfo::GetDriverVersion |
( |
| ) |
|
|
static |
Retrieves the GPU driver version.
- Returns
- std::string - The driver version string.
Definition at line 102 of file HardwareInfo.cpp.
◆ GetGPUName()
| std::string vex::HardwareInfo::GetGPUName |
( |
| ) |
|
|
static |
Retrieves the name of the GPU.
- Returns
- std::string - The GPU name.
Definition at line 101 of file HardwareInfo.cpp.
◆ GetSystemMemory()
| std::string vex::HardwareInfo::GetSystemMemory |
( |
| ) |
|
|
static |
Retrieves the total amount of system memory.
- Returns
- std::string - The total system memory formatted as a string.
Definition at line 121 of file HardwareInfo.cpp.
◆ GetVulkanDeviceVersion()
| std::string vex::HardwareInfo::GetVulkanDeviceVersion |
( |
| ) |
|
|
static |
Retrieves the Vulkan version supported by the device.
- Returns
- std::string - The device Vulkan version.
Definition at line 108 of file HardwareInfo.cpp.
◆ GetVulkanFeatures()
◆ GetVulkanRequestedVersion()
| std::string vex::HardwareInfo::GetVulkanRequestedVersion |
( |
| ) |
|
|
static |
Retrieves the Vulkan version requested by the engine.
- Returns
- std::string - The requested Vulkan version.
Definition at line 109 of file HardwareInfo.cpp.
◆ HasAVX2()
| bool vex::HardwareInfo::HasAVX2 |
( |
| ) |
|
|
static |
Checks if the CPU supports the AVX2 instruction set.
- Returns
- bool - True if AVX2 is supported, false otherwise.
Definition at line 200 of file HardwareInfo.cpp.
◆ PrintCrashDump()
| void vex::HardwareInfo::PrintCrashDump |
( |
int | fd | ) |
|
|
static |
Prints hardware information to a crash dump file descriptor.
- Parameters
-
| fd | The file descriptor to write to. |
Definition at line 30 of file HardwareInfo.cpp.
◆ SetGPUInfo()
| void vex::HardwareInfo::SetGPUInfo |
( |
const std::string & | name, |
|
|
uint32_t | vendorID, |
|
|
uint32_t | driverVersion ) |
|
static |
Sets the stored GPU information.
- Parameters
-
| name | The name of the GPU device. |
| vendorID | The vendor ID of the GPU. |
| driverVersion | The driver version of the GPU. |
Definition at line 97 of file HardwareInfo.cpp.
◆ SetVulkanFeatures()
| void vex::HardwareInfo::SetVulkanFeatures |
( |
const VulkanFeatures & | features | ) |
|
|
static |
Sets the active Vulkan features.
- Parameters
-
| features | The Vulkan features structure. |
Definition at line 111 of file HardwareInfo.cpp.
◆ SetVulkanVersions()
| void vex::HardwareInfo::SetVulkanVersions |
( |
const std::string & | deviceVer, |
|
|
const std::string & | requestedVer ) |
|
static |
Sets the Vulkan API versions.
- Parameters
-
| deviceVer | The version supported by the device. |
| requestedVer | The version requested by the engine. |
Definition at line 104 of file HardwareInfo.cpp.
◆ CPUName
| std::string vex::HardwareInfo::CPUName = "" |
|
staticprivate |
◆ DriverVersion
| std::string vex::HardwareInfo::DriverVersion = "Unknown" |
|
staticprivate |
◆ GPUFeatures
◆ GPUName
| std::string vex::HardwareInfo::GPUName = "Unknown GPU" |
|
staticprivate |
◆ SystemMemory
| std::string vex::HardwareInfo::SystemMemory = "" |
|
staticprivate |
◆ VulkanDeviceVersion
| std::string vex::HardwareInfo::VulkanDeviceVersion = "0.0.0" |
|
staticprivate |
◆ VulkanRequestedVersion
| std::string vex::HardwareInfo::VulkanRequestedVersion = "0.0.0" |
|
staticprivate |
The documentation for this class was generated from the following files: