From 670f889b7e3af360fbd66ae34bc74e7e393edbfe Mon Sep 17 00:00:00 2001 From: Konstantin Date: Wed, 18 Jan 2023 21:10:40 +0100 Subject: GUI to force specific version of the compute shaders --- Examples/WhisperDesktop/AppState.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Examples/WhisperDesktop/AppState.cpp') 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 -- cgit v1.2.3