Pass command list in using ImGui_ImplDX12_NewFrame() instead of ImGui_ImplDX12_Init()

This commit is contained in:
Jefferson Montgomery
2017-09-24 14:43:37 -07:00
committed by Jefferson Montgomery
parent f72b95d73f
commit f6b6dace9e
3 changed files with 8 additions and 7 deletions

View File

@@ -300,7 +300,7 @@ int main(int, char**)
UpdateWindow(hwnd);
// Setup ImGui binding
ImGui_ImplDX12_Init(hwnd, NUM_FRAMES_IN_FLIGHT, g_pd3dDevice, g_pd3dCommandList,
ImGui_ImplDX12_Init(hwnd, NUM_FRAMES_IN_FLIGHT, g_pd3dDevice,
g_pd3dSrvDescHeap->GetCPUDescriptorHandleForHeapStart(),
g_pd3dSrvDescHeap->GetGPUDescriptorHandleForHeapStart());
@@ -329,7 +329,7 @@ int main(int, char**)
DispatchMessage(&msg);
continue;
}
ImGui_ImplDX12_NewFrame();
ImGui_ImplDX12_NewFrame(g_pd3dCommandList);
// 1. Show a simple window
// Tip: if we don't call ImGui::Begin()/ImGui::End() the widgets appears in a window automatically called "Debug"