Skip to content

Commit d2a8e23

Browse files
authored
Add ActivateRenderGPU function for dGPU activation
Added a function to activate the render GPU.
1 parent cd87dec commit d2a8e23

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/gpu/gpu_detection.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
bool DetectDisplayGPU(GpuState& outState);
77
bool DetectRenderGPU(GpuState& outState);
88

9+
// Creates a dummy D3D11 device to wake/activate the dGPU.
10+
// Returns true on success.
11+
bool ActivateRenderGPU();
12+
913
std::wstring BuildGpuTooltip(
1014
const GpuState& display,
1115
const GpuState& render

0 commit comments

Comments
 (0)