| 1 | // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/src/core/info/gpuinfo.h`/ |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "igpuinfo.h"cxx . . $ `<file>/src/core/info/igpuinfo.h`/ |
| 7 | #include "vendor.h"cxx . . $ `<file>/src/core/info/vendor.h`/ |
| 8 | #include <string> |
| 9 | #include <unordered_map> |
| 10 | #include <unordered_set> |
| 11 | |
| 12 | class GPUInfocxx . . $ GPUInfo# final : public IGPUInfocxx . . $ IGPUInfo# |
| 13 | { |
| 14 | public: |
| 15 | GPUInfocxx . . $ GPUInfo#GPUInfo(88a5808916d38e5d).(Vendorcxx . . $ Vendor# vendor, int index, IGPUInfocxx . . $ IGPUInfo#::Pathcxx . . $ IGPUInfo#Path# &&path) noexcept; |
| 16 | |
| 17 | Vendorcxx . . $ Vendor# vendorcxx . . $ GPUInfo#vendor(f3352d101b4b8e0).() const override; |
| 18 | int indexcxx . . $ GPUInfo#index(455f465bc33b4cdf).() const override; |
| 19 | IGPUInfocxx . . $ IGPUInfo#::Pathcxx . . $ IGPUInfo#Path# const &pathcxx . . $ GPUInfo#path(f79b37054f6b84d7).() const override; |
| 20 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> keyscxx . . $ GPUInfo#keys(491c255a7e496038).() const override; |
| 21 | stdcxx . . $ std/::stringcxx . . $ std/string# infocxx . . $ GPUInfo#info(3654cd48a63d288).(stdcxx . . $ std/::string_viewcxx . . $ std/string_view# key) const override; |
| 22 | bool hasCapabilitycxx . . $ GPUInfo#hasCapability(aa6d140991badc75).(stdcxx . . $ std/::string_viewcxx . . $ std/string_view# name) const override; |
| 23 | void initializecxx . . $ GPUInfo#initialize(c158fff4aa1693ae).( |
| 24 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IGPUInfocxx . . $ IGPUInfo#::IProvidercxx . . $ IGPUInfo#IProvider#>> const &infoProviders, |
| 25 | IHWIDTranslatorcxx . . $ IHWIDTranslator# const &hwidTranslator) override; |
| 26 | |
| 27 | private: |
| 28 | Vendorcxx . . $ Vendor# const vendor_cxx . . $ GPUInfo#vendor_.; |
| 29 | int const index_cxx . . $ GPUInfo#index_.; |
| 30 | IGPUInfocxx . . $ IGPUInfo#::Pathcxx . . $ IGPUInfo#Path# const path_cxx . . $ GPUInfo#path_.; |
| 31 | stdcxx . . $ std/::unordered_mapcxx . . $ std/unordered_map#<stdcxx . . $ std/::stringcxx . . $ std/string#, stdcxx . . $ std/::stringcxx . . $ std/string#> info_cxx . . $ GPUInfo#info_.; |
| 32 | stdcxx . . $ std/::unordered_setcxx . . $ std/unordered_set#<stdcxx . . $ std/::stringcxx . . $ std/string#> capabilities_cxx . . $ GPUInfo#capabilities_.; |
| 33 | }; |