Command to acquire swap chain texture
This commit is contained in:
1 parent
3e7caa2c7c
commit
7e8aaaa891
12 files changed
+145
-4
No files matched your search
@@ -82,6 +82,20 @@ void Win32EditorApplication::Update()
|
||||
// Draw here for now
|
||||
// 1) Acquire a Command Buffer
|
||||
CommandList* cmdList = AcquireCommandList(GraphicsDevice, QueueType::Graphics);
|
||||
if (cmdList == nullptr)
|
||||
{
|
||||
Log(LogLevel::Error, LogCategory::Editor, "Failed to acquire command list.");
|
||||
Running = false;
|
||||
return;
|
||||
}
|
||||
|
||||
Texture* swapChainTexture = nullptr;
|
||||
if (!AcquireSwapChainTexture(cmdList, MainWindow, &swapChainTexture))
|
||||
{
|
||||
Log(LogLevel::Error, LogCategory::Editor, "Failed to acquire swapchain texture.");
|
||||
Running = false;
|
||||
return;
|
||||
}
|
||||
|
||||
// Submit Commands
|
||||
SubmitCommandLists(GraphicsDevice);
|
||||
|
||||
Reference in new issue
Block a user