1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-29 03:00:05 +00:00

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());