//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
namespace Brutal.ImGuiApi.Internal
{
public unsafe partial class PInvoke
{
///
///
/// C++:
/// imgui_internal.h:3744
/// ,
/// imgui_tables.cpp:2529
///
void TableSetupDrawChannels(ImGuiTable* table)
///
///
///
///
/// Tables: Internals
///
///
/// Allocate draw channels. Called by TableUpdateLayout()
/// - We allocate them following storage order instead of display order so reordering columns won't needlessly
/// increase overall dormant memory cost.
/// - We isolate headers draw commands in their own channels instead of just altering clip rects.
/// This is in order to facilitate merging of draw commands.
/// - After crossing FreezeRowsCount, all columns see their current draw channel changed to a second set of channels.
/// - We only use the dummy draw channel so we can push a null clipping rectangle into it without affecting other
/// channels, while simplifying per-row/per-cell overhead. It will be empty and discarded when merged.
/// - We allocate 1 or 2 background draw channels. This is because we know TablePushBackgroundChannel() is only used for
/// horizontal spanning. If we allowed vertical spanning we'd need one background draw channel per merge group (1-4).
/// Draw channel allocation (before merging):
/// - NoClip --> 2+D+1 channels: bg0/1 + bg2 + foreground (same clip rect == always 1 draw call)
/// - Clip --> 2+D+N channels
/// - FreezeRows --> 2+D+N*2 (unless scrolling value is zero)
/// - FreezeRows || FreezeColunns --> 3+D+N*2 (unless scrolling value is zero)
/// Where D is 1 if any column is clipped or hidden (dummy channel) otherwise 0.
///
///
[LibraryImport("imgui")]
public static unsafe partial void TableSetupDrawChannels_internal(ImGuiTable* table);
}
}