add gpu hints on windows (#1158)

This commit is contained in:
Logan McNaughton
2026-07-13 07:17:35 +00:00
committed by GitHub
parent 81cc78ce90
commit 282ec6c6c7
2 changed files with 13 additions and 0 deletions
+7
View File
@@ -10,6 +10,13 @@
#include <cmath>
#include <map>
#ifdef _WIN32
extern "C" {
__declspec(dllexport) unsigned long NvOptimusEnablement = 0x00000001;
__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
}
#endif
using namespace Vulkan;
#define DP_STATUS_XBUS_DMA 0x01