|
|
|
@ -731,18 +731,22 @@ static void ImGui_ImplDX12_SetWindowSize(ImGuiViewport* viewport, ImVec2 size) |
|
|
|
|
*/ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void ImGui_ImplDX12_RenderWindow(ImGuiViewport* viewport, void*) |
|
|
|
|
// arg = ID3D12GraphicsCommandList*
|
|
|
|
|
static void ImGui_ImplDX12_RenderWindow(ImGuiViewport* viewport, void* renderer_arg) |
|
|
|
|
{ |
|
|
|
|
ImGuiViewportDataDx12* data = (ImGuiViewportDataDx12*)viewport->RendererUserData; |
|
|
|
|
IM_ASSERT(0); |
|
|
|
|
(void)data; |
|
|
|
|
|
|
|
|
|
ID3D12GraphicsCommandList* command_list = (ID3D12GraphicsCommandList*)renderer_arg; |
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
ImVec4 clear_color = ImVec4(0.0f, 0.0f, 0.0f, 1.0f); |
|
|
|
|
g_pd3dDeviceContext->OMSetRenderTargets(1, &data->RTView, NULL); |
|
|
|
|
if (!(viewport->Flags & ImGuiViewportFlags_NoRendererClear)) |
|
|
|
|
g_pd3dDeviceContext->ClearRenderTargetView(data->RTView, (float*)&clear_color); |
|
|
|
|
*/ |
|
|
|
|
ImGui_ImplDX12_RenderDrawData(viewport->DrawData); |
|
|
|
|
ImGui_ImplDX12_RenderDrawData(viewport->DrawData, command_list); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void ImGui_ImplDX12_SwapBuffers(ImGuiViewport* viewport, void*) |
|
|
|
|