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/ModelAdvancedDlg.h | 35 ++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Examples/WhisperDesktop/ModelAdvancedDlg.h (limited to 'Examples/WhisperDesktop/ModelAdvancedDlg.h') diff --git a/Examples/WhisperDesktop/ModelAdvancedDlg.h b/Examples/WhisperDesktop/ModelAdvancedDlg.h new file mode 100644 index 0000000..aebbda5 --- /dev/null +++ b/Examples/WhisperDesktop/ModelAdvancedDlg.h @@ -0,0 +1,35 @@ +#pragma once +#include "AppState.h" +#include "Utils/WTL/atlddx.h" +#include "Utils/miscUtils.h" + +class ModelAdvancedDlg : + public CDialogImpl +{ + CComboBox cbWave, cbReshapedMatMul; + AppState& appState; + +public: + static constexpr UINT IDD = IDD_MODEL_ADV; + + ModelAdvancedDlg( AppState& app ) : appState( app ) { } + + BEGIN_MSG_MAP( ModelAdvancedDlg ) + MESSAGE_HANDLER( WM_INITDIALOG, onInitDialog ) + ON_BUTTON_CLICK( IDOK, onOk ) + ON_BUTTON_CLICK( IDCANCEL, onCancel ) + END_MSG_MAP() + + bool show( HWND owner ); + +private: + + LRESULT onInitDialog( UINT nMessage, WPARAM wParam, LPARAM lParam, BOOL& bHandled ); + + void onOk(); + + void onCancel() + { + EndDialog( IDCANCEL ); + } +}; \ No newline at end of file -- cgit v1.2.3