MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / ImGui_ImplDX11_GetBackendData

Function ImGui_ImplDX11_GetBackendData

KBotExt/imgui/imgui_impl_dx11.cpp:75–78  ·  view source on GitHub ↗

Backend data stored in io.BackendRendererUserData to allow support for multiple Dear ImGui contexts It is STRONGLY preferred that you use docking branch with multi-viewports (== single Dear ImGui context + multiple windows) instead of multiple Dear ImGui contexts.

Source from the content-addressed store, hash-verified

73// Backend data stored in io.BackendRendererUserData to allow support for multiple Dear ImGui contexts
74// It is STRONGLY preferred that you use docking branch with multi-viewports (== single Dear ImGui context + multiple windows) instead of multiple Dear ImGui contexts.
75static ImGui_ImplDX11_Data* ImGui_ImplDX11_GetBackendData()
76{
77 return ImGui::GetCurrentContext() ? (ImGui_ImplDX11_Data*)ImGui::GetIO().BackendRendererUserData : nullptr;
78}
79
80// Functions
81static void ImGui_ImplDX11_SetupRenderState(ImDrawData* draw_data, ID3D11DeviceContext* ctx)

Calls

no outgoing calls

Tested by

no test coverage detected