Pass render target format in ImGui_ImplDX12_Init() instead of hard-coded.

This commit is contained in:
Jefferson Montgomery
2017-09-24 14:57:38 -07:00
committed by Jefferson Montgomery
parent f6b6dace9e
commit 3fd5790814
3 changed files with 7 additions and 1 deletions

View File

@@ -301,6 +301,7 @@ int main(int, char**)
// Setup ImGui binding
ImGui_ImplDX12_Init(hwnd, NUM_FRAMES_IN_FLIGHT, g_pd3dDevice,
DXGI_FORMAT_R8G8B8A8_UNORM,
g_pd3dSrvDescHeap->GetCPUDescriptorHandleForHeapStart(),
g_pd3dSrvDescHeap->GetGPUDescriptorHandleForHeapStart());