#pragma region CPL License /* Nuclex Native Framework Copyright (C) 2002-2023 Nuclex Development Labs This library is free software; you can redistribute it and/or modify it under the terms of the IBM Common Public License as published by the IBM Corporation; either version 1.0 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the IBM Common Public License for more details. You should have received a copy of the IBM Common Public License along with this library */ #pragma endregion // CPL License #ifndef NUCLEX_PLATFORM_HARDWARE_GPUINFO_H #define NUCLEX_PLATFORM_HARDWARE_GPUINFO_H #include "Nuclex/Platform/Config.h" #include // for std::size_t #include // for std::string #include // for std;:vector namespace Nuclex { namespace Platform { namespace Hardware { // ------------------------------------------------------------------------------------------- // /// Informations about a GPU installed in the system class NUCLEX_PLATFORM_TYPE GpuInfo { /// Name of the company that manufactured the GPU /// /// This will simply be "NVidia", "AMD" or "Intel". /// public: std::string ManufacturerName; // Could attempt to provide the board manufacturer's name, too. It should be stored // in the GPU's specialized BIOS since manufacturers use different maximum power ratings // (and these depend on board design) and which CUDA/compute cores are enabled also is // part of this BIOS settings block, as is the company name (i.e. "Asus" or "MSI") // /// Human-readable model name of this GPU public: std::string ModelName; /// Version of the driver by which this GPU is interfaced with public: std::string DriverVersion; /// Total amount of video memory installed on this GPU in megabytes public: std::size_t VideoMemoryInMegabytes; /// Maximum pixel shader version this GPU can handle public: std::size_t PixelShaderVersion; /// Maximum vertex shader version this GPU can handle public: std::size_t VertexShaderVersion; /// Whether this GPU is a dedicated add-on board (vs. CPU-integrated) public: bool IsDedicated; /// Whether this GPU supports Vulkan public: bool SupportsVulkan; }; // ------------------------------------------------------------------------------------------- // // QueryGpuTemperature() as separate method // ------------------------------------------------------------------------------------------- // }}} // namespace Nuclex::Platform::Hardware #endif // NUCLEX_PLATFORM_HARDWARE_GPUINFO_H