Renderpass first iteration
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user