MCPcopy Create free account
hub / github.com/carbonengine/trinity / IsOptimus

Function IsOptimus

trinityal/Tr2DriverUtilities.cpp:19–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17#ifdef _WIN32
18
19bool IsOptimus()
20{
21 static bool initialized = false;
22 static bool isOptimus = false;
23 if( !initialized )
24 {
25 initialized = true;
26 isOptimus = GetModuleHandleW( L"nvd3d9wrap.dll" ) != nullptr;
27 }
28 return isOptimus;
29}
30
31bool GetHexIdFromDeviceId( const char* deviceId, uint32_t& deviceIdHex )
32{

Callers 1

DoGetDriverVersionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected