Renderpass first iteration

This commit is contained in:
2025-02-17 22:08:53 -05:00
parent 7e8aaaa891
commit ee194b2d69
28 changed files with 561 additions and 99 deletions

View File

@@ -13,6 +13,7 @@
// TODO : Replace with message box from framework + call main and not winmain + subsystem
#include <Core/DynLib/DynamicLibrary.h>
#include <Graphics/Graphics.h>
#include <Graphics/RenderPass.h>
#include <Windows.h>
// TODO : Think how to do the draw pipeline.
@@ -97,6 +98,17 @@ void Win32EditorApplication::Update()
return;
}
if (swapChainTexture)
{
ColorTargetInfo colorTargetInfo = {};
colorTargetInfo.Texture = swapChainTexture;
colorTargetInfo.ClearColor = { .R = .5f, .G = .8f, .B = .0f, .A = 1.f };
colorTargetInfo.LoadOperation = LoadOperation::Clear;
colorTargetInfo.StoreOperation = StoreOperation::Store;
BeginRenderPass(cmdList, colorTargetInfo);
}
// Submit Commands
SubmitCommandLists(GraphicsDevice);
}

View File

@@ -21,7 +21,7 @@ class Win32EditorApplication : public Juliet::IApplication
private:
Juliet::Window* MainWindow = {};
Juliet::GraphicsDevice* GraphicsDevice = {};
Juliet::DynamicLibrary* Game = {};
Juliet::DynamicLibrary* Game = {};
bool Running = false;
};