Skip to content

Commit ef59bf8

Browse files
authored
Refactor GPU detection functions and tooltip
Removed the DetectRenderGPU function and updated BuildGpuTooltip to only summarize the display GPU.
1 parent 85a0ade commit ef59bf8

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

src/gpu/gpu_detection.h

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,9 @@
77
// Returns true on success and fills outState.
88
bool DetectDisplayGPU(GpuState& outState);
99

10-
// Detects the GPU used for rendering by creating a D3D11 device.
11-
// Returns true on success and fills outState.
12-
bool DetectRenderGPU(GpuState& outState);
13-
1410
// Creates a dummy D3D11 device to wake/activate the dGPU.
1511
// Returns true on success.
1612
bool ActivateRenderGPU();
1713

18-
// Builds a tooltip string summarizing display + render GPUs.
19-
std::wstring BuildGpuTooltip(
20-
const GpuState& display,
21-
const GpuState& render
22-
);
14+
// Builds a tooltip string summarizing the display GPU only.
15+
std::wstring BuildGpuTooltip(const GpuState& display);

0 commit comments

Comments
 (0)