| 1 | // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/src/core/info/common/gpuinfoopengl.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 "core/idatasource.h"cxx . . $ `<file>/src/core/idatasource.h`/ |
| 8 | #include <cstddef> |
| 9 | #include <memory> |
| 10 | #include <string> |
| 11 | #include <string_view> |
| 12 | #include <vector> |
| 13 | |
| 14 | class GPUInfoOpenGLcxx . . $ GPUInfoOpenGL# final : public IGPUInfocxx . . $ IGPUInfo#::IProvidercxx . . $ IGPUInfo#IProvider# |
| 15 | { |
| 16 | public: |
| 17 | struct Keyscxx . . $ GPUInfoOpenGL#Keys# |
| 18 | { |
| 19 | static constexpr stdcxx . . $ std/::string_viewcxx . . $ std/string_view# coreVersioncxx . . $ GPUInfoOpenGL#Keys#coreVersion.{"glcorev"}; |
| 20 | static constexpr stdcxx . . $ std/::string_viewcxx . . $ std/string_view# compatVersioncxx . . $ GPUInfoOpenGL#Keys#compatVersion.{"glcompv"}; |
| 21 | }; |
| 22 | |
| 23 | GPUInfoOpenGLcxx . . $ GPUInfoOpenGL#GPUInfoOpenGL(24580567c8001d89).( |
| 24 | stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IDataSourcecxx . . $ IDataSource#<stdcxx . . $ std/::stringcxx . . $ std/string#, int const>> &&dataSource) noexcept; |
| 25 | |
| 26 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::paircxx . . $ std/pair#<stdcxx . . $ std/::stringcxx . . $ std/string#, stdcxx . . $ std/::stringcxx . . $ std/string#>> |
| 27 | provideInfocxx . . $ GPUInfoOpenGL#provideInfo(5b65f7e996e13d80).(Vendorcxx . . $ Vendor# vendor, int gpuIndex, IGPUInfocxx . . $ IGPUInfo#::Pathcxx . . $ IGPUInfo#Path# const &path, |
| 28 | IHWIDTranslatorcxx . . $ IHWIDTranslator# const &hwIDTranslator) const override; |
| 29 | |
| 30 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> |
| 31 | provideCapabilitiescxx . . $ GPUInfoOpenGL#provideCapabilities(da28437f5803dad2).(Vendorcxx . . $ Vendor# vendor, int, |
| 32 | IGPUInfocxx . . $ IGPUInfo#::Pathcxx . . $ IGPUInfo#Path# const &path) const override; |
| 33 | |
| 34 | private: |
| 35 | stdcxx . . $ std/::stringcxx . . $ std/string# findItemcxx . . $ GPUInfoOpenGL#findItem(48b69d099a50eb46).(stdcxx . . $ std/::stringcxx . . $ std/string# const &src, stdcxx . . $ std/::string_viewcxx . . $ std/string_view# itemStr, |
| 36 | size_t pos) const; |
| 37 | |
| 38 | stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IDataSourcecxx . . $ IDataSource#<stdcxx . . $ std/::stringcxx . . $ std/string#, int const>> const dataSource_cxx . . $ GPUInfoOpenGL#dataSource_.; |
| 39 | static bool registered_cxx . . $ GPUInfoOpenGL#registered_.; |
| 40 | }; |