MCPcopy Create free account
hub / github.com/NVIDIA-RTX/RTXPT / HelpersRegisterActiveWindow

Function HelpersRegisterActiveWindow

Rtxpt/SampleCommon/SampleCommon.cpp:175–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173#ifdef _WIN32
174static std::atomic<HWND> g_hActiveParentWindow(NULL);
175void HelpersRegisterActiveWindow()
176{
177 g_hActiveParentWindow.store( GetActiveWindow() );
178 assert( g_hActiveParentWindow.load() != NULL );
179}
180HWND HelpersGetActiveWindow()
181{
182 return g_hActiveParentWindow.load();

Callers 1

InitDeviceAndWindowMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected