| 17 | #ifdef _WIN32 |
| 18 | |
| 19 | bool 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 | |
| 31 | bool GetHexIdFromDeviceId( const char* deviceId, uint32_t& deviceIdHex ) |
| 32 | { |
no outgoing calls
no test coverage detected