Plasma Engine  2.0
Loading...
Searching...
No Matches
EngineProcessViewContext_win.h
1
2plEditorProcessViewWindow::~plEditorProcessViewWindow()
3{
4 plGALDevice::GetDefaultDevice()->WaitIdle();
5
6 PL_ASSERT_DEV(m_iReferenceCount == 0, "The window is still being referenced, probably by a swapchain. Make sure to destroy all swapchains and call plGALDevice::WaitIdle before destroying a window.");
7}
8
9plResult plEditorProcessViewWindow::UpdateWindow(plWindowHandle hParentWindow, plUInt16 uiWidth, plUInt16 uiHeight)
10{
11 m_hWnd = hParentWindow;
12 m_uiWidth = uiWidth;
13 m_uiHeight = uiHeight;
14
15 return PL_SUCCESS;
16}
void WaitIdle()
Waits for the GPU to be idle and destroys any pending resources and GPU objects.
Definition Device.cpp:1433
Default enum for returning failure or success, instead of using a bool.
Definition Types.h:54