End Render pass

This commit is contained in:
2025-02-18 21:12:36 -05:00
parent f1b7f8eb29
commit ed9482b8f8
9 changed files with 231 additions and 25 deletions

View File

@@ -101,12 +101,13 @@ void Win32EditorApplication::Update()
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;
colorTargetInfo.TargetTexture = swapChainTexture;
colorTargetInfo.ClearColor = { .R = .5f, .G = .8f, .B = .0f, .A = 1.f };
colorTargetInfo.LoadOperation = LoadOperation::Clear;
colorTargetInfo.StoreOperation = StoreOperation::Store;
BeginRenderPass(cmdList, colorTargetInfo);
RenderPass* renderPass = BeginRenderPass(cmdList, colorTargetInfo);
EndRenderPass(renderPass);
}
// Submit Commands