Skip to content

Commit 89fb281

Browse files
committed
Add ParallelRendering app variant name in title
1 parent e86fcdc commit 89fb281

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Apps/07-ParallelRendering/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ foreach(VARIANT ${BUFFER_VIEWS_VARIANT} ${ROOT_CONSTANTS_VARIANT})
1111

1212
add_methane_application(
1313
TARGET ${TARGET}
14-
NAME "Methane Parallel Rendering"
14+
NAME "Methane Parallel Rendering (${VARIANT})"
1515
DESCRIPTION "Tutorial demonstrating parallel-rendering with Methane Kit."
1616
INSTALL_DIR "Apps"
1717
SOURCES

Apps/07-ParallelRendering/ParallelRenderingApp.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ static const std::map<pin::Keyboard::State, ParallelRenderingAppAction> g_parall
6666
{ { pin::Keyboard::Key::LeftBracket }, ParallelRenderingAppAction::DecreaseRenderThreadsCount },
6767
};
6868

69+
#ifdef ROOT_CONSTANTS_ENABLED
70+
#define APP_VARIANT_NAME "Root Constants"
71+
#else
72+
#define APP_VARIANT_NAME "Buffer Views"
73+
#endif
74+
6975
bool ParallelRenderingApp::Settings::operator==(const Settings& other) const noexcept
7076
{
7177
META_FUNCTION_TASK();
@@ -87,7 +93,7 @@ uint32_t ParallelRenderingApp::Settings::GetActiveRenderThreadCount() const noex
8793

8894
ParallelRenderingApp::ParallelRenderingApp()
8995
: UserInterfaceApp(
90-
GetGraphicsTutorialAppSettings("Methane Parallel Rendering", AppOptions::GetDefaultWithColorDepthAndAnim()),
96+
GetGraphicsTutorialAppSettings("Methane Parallel Rendering (" APP_VARIANT_NAME ")", AppOptions::GetDefaultWithColorDepthAndAnim()),
9197
GetUserInterfaceTutorialAppSettings(AppOptions::GetDefaultWithColorDepthAndAnim()),
9298
"Methane tutorial of parallel rendering")
9399
{

0 commit comments

Comments
 (0)