compiles again
This commit is contained in:
@@ -11,10 +11,10 @@ GameView::GameView(Gfx::PGraphics graphics, PWindow window, const ViewportCreate
|
||||
: View(graphics, window, createInfo, "Game")
|
||||
, gameInterface(dllPath)
|
||||
, renderGraph(RenderGraphBuilder::build(
|
||||
DepthPrepass(graphics, scene),
|
||||
LightCullingPass(graphics, scene),
|
||||
BasePass(graphics, scene),
|
||||
SkyboxRenderPass(graphics, scene)
|
||||
std::move(DepthPrepass(graphics, scene)),
|
||||
std::move(LightCullingPass(graphics, scene)),
|
||||
std::move(BasePass(graphics, scene)),
|
||||
std::move(SkyboxRenderPass(graphics, scene))
|
||||
))
|
||||
{
|
||||
reloadGame();
|
||||
@@ -43,6 +43,7 @@ void GameView::update()
|
||||
{
|
||||
vd->createDescriptors();
|
||||
}
|
||||
scene->getLightEnvironment()->commit();
|
||||
auto endTime = std::chrono::high_resolution_clock::now();
|
||||
std::chrono::duration<float> duration = (endTime - startTime);
|
||||
updateTime = duration.count();
|
||||
|
||||
@@ -32,7 +32,7 @@ private:
|
||||
> renderGraph;
|
||||
|
||||
PEntity camera;
|
||||
PScene scene;
|
||||
OScene scene;
|
||||
PSystemGraph systemGraph;
|
||||
dp::thread_pool<> threadPool;
|
||||
float updateTime = 0;
|
||||
|
||||
@@ -22,7 +22,7 @@ PWindow WindowManager::addWindow(Gfx::PGraphics graphics, const WindowCreateInfo
|
||||
|
||||
void WindowManager::notifyWindowClosed(PWindow window)
|
||||
{
|
||||
windows.remove(windows.find([window] (OWindow w) { return window == w; }));
|
||||
windows.remove(windows.find([window] (const OWindow& w) { return window == w; }));
|
||||
if(windows.empty())
|
||||
{
|
||||
exit(0);
|
||||
|
||||
Reference in New Issue
Block a user