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:
parent
f6b6dace9e
commit
3fd5790814
3 changed files with 7 additions and 1 deletions
|
|
@ -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());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue