diff options
| author | Konstantin <const@const.me> | 2023-01-18 21:10:40 +0100 |
|---|---|---|
| committer | Konstantin <const@const.me> | 2023-01-18 21:10:40 +0100 |
| commit | 670f889b7e3af360fbd66ae34bc74e7e393edbfe (patch) | |
| tree | 268707bf77309527d2e9cac02b8adf93c01d4d30 /Examples/WhisperDesktop/AppState.cpp | |
| parent | 11c399b70c7ad5664b6060b39632e6b9fa815350 (diff) | |
GUI to force specific version of the compute shaders
Diffstat (limited to 'Examples/WhisperDesktop/AppState.cpp')
| -rw-r--r-- | Examples/WhisperDesktop/AppState.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Examples/WhisperDesktop/AppState.cpp b/Examples/WhisperDesktop/AppState.cpp index 6697e6a..651e8ae 100644 --- a/Examples/WhisperDesktop/AppState.cpp +++ b/Examples/WhisperDesktop/AppState.cpp @@ -14,6 +14,7 @@ namespace const LPCTSTR regValImpl = L"modelImpl"; const LPCTSTR regValLang = L"language"; const LPCTSTR regValLastScreen = L"screen"; + const LPCTSTR regValGpuFlags = L"gpuFlags"; static HRESULT readString( CRegKey& k, LPCTSTR name, CString& rdi ) { @@ -189,4 +190,17 @@ void AppState::setupIcon( CWindow* wnd ) wnd->SendMessage( WM_SETICON, ICON_SMALL, (LPARAM)ic ); wnd->SendMessage( WM_SETICON, ICON_BIG, (LPARAM)ic ); } +} + +uint32_t AppState::gpuFlagsLoad() +{ + return dwordLoad( regValGpuFlags, 0 ); +} + +void AppState::gpuFlagsStore( uint32_t flags ) +{ + if( 0 == flags ) + registryKey.DeleteValue( regValGpuFlags ); + else + dwordStore( regValGpuFlags, flags ); }
\ No newline at end of file |
