summaryrefslogtreecommitdiffstats
path: root/tools/platform/gui.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2021-03-31 11:35:17 -0700
committerGitHub <noreply@github.com>2021-03-31 11:35:17 -0700
commit3f1632a1450a5879f337b4bd178e48880cd583f8 (patch)
treedb4adc2ac0f6113dfd4a97a0e2f7a0c4312ef48b /tools/platform/gui.cpp
parent5fde038b1a6b3c8b335cd5b380c3ee8d15403052 (diff)
`gfx` explicit transient resource management. (#1774)
Diffstat (limited to 'tools/platform/gui.cpp')
-rw-r--r--tools/platform/gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/platform/gui.cpp b/tools/platform/gui.cpp
index e33a504bb..f78a52ce4 100644
--- a/tools/platform/gui.cpp
+++ b/tools/platform/gui.cpp
@@ -188,7 +188,7 @@ void GUI::beginFrame()
ImGui::NewFrame();
}
-void GUI::endFrame(IFramebuffer* framebuffer)
+void GUI::endFrame(ITransientResourceHeap* transientHeap, IFramebuffer* framebuffer)
{
ImGui::Render();
@@ -217,7 +217,7 @@ void GUI::endFrame(IFramebuffer* framebuffer)
auto indexBuffer = device->createBufferResource(
IResource::Usage::IndexBuffer,
indexBufferDesc);
- auto cmdBuf = queue->createCommandBuffer();
+ auto cmdBuf = transientHeap->createCommandBuffer();
auto encoder = cmdBuf->encodeResourceCommands();
{
for(int ii = 0; ii < commandListCount; ++ii)