Skip to content

Commit

Permalink
Show instruction set build in title
Browse files Browse the repository at this point in the history
  • Loading branch information
khang06 committed Jan 12, 2024
1 parent b9a57c7 commit 79df95e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion PianoFromAbove/PianoFromAbove.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,11 @@ DWORD WINAPI GameThread( LPVOID lpParameter )

// Put the adapter in the window title
wchar_t buf[1024] = {};
_snwprintf_s(buf, 1024, L"pfavizkhang-dx12 %S (Device: %s)", __DATE__, pRenderer->GetAdapterName().c_str());
#ifdef __AVX2__
_snwprintf_s(buf, 1024, L"pfavizkhang-dx12 %S (AVX2 build, Device: %s)", __DATE__, pRenderer->GetAdapterName().c_str());
#else
_snwprintf_s(buf, 1024, L"pfavizkhang-dx12 %S (SSE4.2 build, Device: %s)", __DATE__, pRenderer->GetAdapterName().c_str());
#endif
SetWindowTextW(g_hWnd, buf);

// Event, logic, render...
Expand Down

0 comments on commit 79df95e

Please sign in to comment.