mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
Amend b82e99c032
This commit is contained in:
parent
720e94f3da
commit
0c4f50090a
2 changed files with 3 additions and 2 deletions
2
imgui.h
2
imgui.h
|
|
@ -3316,7 +3316,7 @@ struct ImDrawList
|
||||||
|
|
||||||
// Advanced: Miscellaneous
|
// Advanced: Miscellaneous
|
||||||
IMGUI_API void AddDrawCmd(); // This is useful if you need to forcefully create a new draw call (to allow for dependent rendering / blending). Otherwise primitives are merged into the same draw-call as much as possible
|
IMGUI_API void AddDrawCmd(); // This is useful if you need to forcefully create a new draw call (to allow for dependent rendering / blending). Otherwise primitives are merged into the same draw-call as much as possible
|
||||||
IMGUI_API ImDrawList* CloneOutput() const; // Create a clone of the CmdBuffer/IdxBuffer/VtxBuffer.
|
IMGUI_API ImDrawList* CloneOutput() const; // Create a clone of the CmdBuffer/IdxBuffer/VtxBuffer. For multi-threaded rendering, consider using `imgui_threaded_rendering` from https://github.com/ocornut/imgui_club instead.
|
||||||
|
|
||||||
// Advanced: Channels
|
// Advanced: Channels
|
||||||
// - Use to split render into layers. By switching channels to can render out-of-order (e.g. submit FG primitives before BG primitives)
|
// - Use to split render into layers. By switching channels to can render out-of-order (e.g. submit FG primitives before BG primitives)
|
||||||
|
|
|
||||||
|
|
@ -478,9 +478,10 @@ void ImDrawList::_ClearFreeMemory()
|
||||||
_Splitter.ClearFreeMemory();
|
_Splitter.ClearFreeMemory();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Note: For multi-threaded rendering, consider using `imgui_threaded_rendering` from https://github.com/ocornut/imgui_club
|
||||||
ImDrawList* ImDrawList::CloneOutput() const
|
ImDrawList* ImDrawList::CloneOutput() const
|
||||||
{
|
{
|
||||||
ImDrawList* dst = IM_NEW(ImDrawList(_Data));
|
ImDrawList* dst = IM_NEW(ImDrawList(NULL));
|
||||||
dst->CmdBuffer = CmdBuffer;
|
dst->CmdBuffer = CmdBuffer;
|
||||||
dst->IdxBuffer = IdxBuffer;
|
dst->IdxBuffer = IdxBuffer;
|
||||||
dst->VtxBuffer = VtxBuffer;
|
dst->VtxBuffer = VtxBuffer;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue