summaryrefslogtreecommitdiffstats
path: root/tools/platform
diff options
context:
space:
mode:
Diffstat (limited to 'tools/platform')
-rw-r--r--tools/platform/gui.cpp4
-rw-r--r--tools/platform/gui.h2
2 files changed, 3 insertions, 3 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)
diff --git a/tools/platform/gui.h b/tools/platform/gui.h
index ef5310cd4..e3975f3ff 100644
--- a/tools/platform/gui.h
+++ b/tools/platform/gui.h
@@ -19,7 +19,7 @@ struct GUI : Slang::RefObject
~GUI();
void beginFrame();
- void endFrame(gfx::IFramebuffer* framebuffer);
+ void endFrame(gfx::ITransientResourceHeap* transientHeap, gfx::IFramebuffer* framebuffer);
private:
Slang::ComPtr<gfx::IDevice> device;