You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: backends/imgui_impl_dx12.cpp
+55-12
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,8 @@
19
19
20
20
// CHANGELOG
21
21
// (minor and older changes stripped away, please see git history for details)
22
+
// 2024-11-15: DirectX12: *BREAKING CHANGE* Changed ImGui_ImplDX12_Init() signature to take a ImGui_ImplDX12_InitInfo struct. Legacy ImGui_ImplDX12_Init() signature is still supported (will obsolete).
23
+
// 2024-11-15: DirectX12: *BREAKING CHANGE* User is now required to pass function pointers to allocate/free SRV Descriptors. We provide convenience legacy fields to pass a single descriptor, matching the old API, but upcoming features will want multiple.
22
24
// 2024-10-23: DirectX12: Unmap() call specify written range. The range is informational and may be used by debug tools.
23
25
// 2024-10-07: DirectX12: Changed default texture sampler to Clamp instead of Repeat/Wrap.
24
26
// 2024-10-07: DirectX12: Expose selected render state in ImGui_ImplDX12_RenderState, which you can access in 'void* platform_io.Renderer_RenderState' during draw callbacks.
@@ -741,6 +767,22 @@ bool ImGui_ImplDX12_Init(ID3D12Device* device, int num_frames_in_flight, DXGI_FO
741
767
returntrue;
742
768
}
743
769
770
+
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
771
+
// Legacy initialization API Obsoleted in 1.91.5
772
+
// font_srv_cpu_desc_handle and font_srv_gpu_desc_handle are handles to a single SRV descriptor to use for the internal font texture, they must be in 'srv_descriptor_heap'
// font_srv_cpu_desc_handle and font_srv_gpu_desc_handle are handles to a single SRV descriptor to use for the internal font texture, they must be in 'srv_descriptor_heap'
// - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them.
0 commit comments