mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-08-09 02:07:04 +08:00
build(windows): add Nvidia and AMD GPU high performance exports
This commit is contained in:
@@ -1,5 +1,14 @@
|
||||
#include "Cubed/app.hpp"
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
extern "C" {
|
||||
__declspec(dllexport) unsigned long NvOptimusEnablement = 1;
|
||||
__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
|
||||
static_assert(sizeof(int) == sizeof(int32_t));
|
||||
|
||||
Reference in New Issue
Block a user