compiles again

This commit is contained in:
Dynamitos
2023-11-05 10:36:01 +01:00
parent 4746c0f838
commit 77eb92838c
112 changed files with 1717 additions and 1540 deletions
+5 -4
View File
@@ -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();
+1 -1
View File
@@ -32,7 +32,7 @@ private:
> renderGraph;
PEntity camera;
PScene scene;
OScene scene;
PSystemGraph systemGraph;
dp::thread_pool<> threadPool;
float updateTime = 0;
+1 -1
View File
@@ -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);