-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
imp - prt - Used DirectX for video probing on Wind...
...ows --- We've used the DirectX native methods. Currently, it doesn't work due to access violations, but we'll fix that soon. --- Type: imp Breaking: False Doc Required: False Backport Required: False Part: 1/2
- Loading branch information
Showing
16 changed files
with
511 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// | ||
// SpecProbe Copyright (C) 2023-2024 Aptivi | ||
// | ||
// This file is part of SpecProbe | ||
// | ||
// SpecProbe is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// SpecProbe 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 | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
// | ||
|
||
using System; | ||
|
||
namespace SpecProbe.Native.Helpers | ||
{ | ||
internal static class VideoHelper | ||
{ | ||
internal delegate int spdx_get_gpus(out IntPtr gpus); | ||
|
||
internal static spdx_get_gpus GetGpus() => | ||
Initializer.libManager.GetNativeMethodDelegate<spdx_get_gpus>(nameof(spdx_get_gpus)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// | ||
// SpecProbe Copyright (C) 2023-2024 Aptivi | ||
// | ||
// This file is part of SpecProbe | ||
// | ||
// SpecProbe is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// SpecProbe 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 | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
// | ||
|
||
using System; | ||
using System.Runtime.InteropServices; | ||
|
||
namespace SpecProbe.Native.Structs | ||
{ | ||
[StructLayout(LayoutKind.Sequential)] | ||
internal struct GpuInfo | ||
{ | ||
// ushort, was UINT | ||
ushort vendorId; | ||
ushort deviceId; | ||
|
||
// IntPtr, was const char* | ||
IntPtr name; | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 17 | ||
VisualStudioVersion = 17.10.35027.167 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libdxhelper", "libdxhelper.vcxproj", "{AB33BBB3-0B11-4044-81E5-F0CFA6560E24}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|ARM64 = Debug|ARM64 | ||
Debug|x64 = Debug|x64 | ||
Debug|x86 = Debug|x86 | ||
Release|ARM64 = Release|ARM64 | ||
Release|x64 = Release|x64 | ||
Release|x86 = Release|x86 | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{AB33BBB3-0B11-4044-81E5-F0CFA6560E24}.Debug|ARM64.ActiveCfg = Debug|ARM | ||
{AB33BBB3-0B11-4044-81E5-F0CFA6560E24}.Debug|ARM64.Build.0 = Debug|ARM | ||
{AB33BBB3-0B11-4044-81E5-F0CFA6560E24}.Debug|x64.ActiveCfg = Debug|x64 | ||
{AB33BBB3-0B11-4044-81E5-F0CFA6560E24}.Debug|x64.Build.0 = Debug|x64 | ||
{AB33BBB3-0B11-4044-81E5-F0CFA6560E24}.Debug|x86.ActiveCfg = Debug|Win32 | ||
{AB33BBB3-0B11-4044-81E5-F0CFA6560E24}.Debug|x86.Build.0 = Debug|Win32 | ||
{AB33BBB3-0B11-4044-81E5-F0CFA6560E24}.Release|ARM64.ActiveCfg = Release|ARM | ||
{AB33BBB3-0B11-4044-81E5-F0CFA6560E24}.Release|ARM64.Build.0 = Release|ARM | ||
{AB33BBB3-0B11-4044-81E5-F0CFA6560E24}.Release|x64.ActiveCfg = Release|x64 | ||
{AB33BBB3-0B11-4044-81E5-F0CFA6560E24}.Release|x64.Build.0 = Release|x64 | ||
{AB33BBB3-0B11-4044-81E5-F0CFA6560E24}.Release|x86.ActiveCfg = Release|Win32 | ||
{AB33BBB3-0B11-4044-81E5-F0CFA6560E24}.Release|x86.Build.0 = Release|Win32 | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {5E16E05E-E1E7-4620-8256-F09B4F6C640F} | ||
EndGlobalSection | ||
EndGlobal |
Oops, something went wrong.