mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
133 lines
5 KiB
C#
133 lines
5 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
|
#nullable enable
|
|
|
|
using System.Runtime.CompilerServices;
|
|
|
|
namespace Brutal.ImGuiApi.Internal
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2256">imgui_internal.h:2256</see>
|
|
/// <br/><c>struct ImGuiDebugAllocInfo</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[StructLayout(LayoutKind.Explicit, Size = 60)]
|
|
public partial struct ImGuiDebugAllocInfo
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Number of call to MemAlloc().
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2258">imgui_internal.h:2258</see>
|
|
/// <br/><c>int TotalAllocCount</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(0)]
|
|
public int TotalAllocCount;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2259">imgui_internal.h:2259</see>
|
|
/// <br/><c>int TotalFreeCount</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(4)]
|
|
public int TotalFreeCount;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Current index in buffer
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2260">imgui_internal.h:2260</see>
|
|
/// <br/><c>ImS16 LastEntriesIdx</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(8)]
|
|
public short LastEntriesIdx;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Track last 6 frames that had allocations
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2261">imgui_internal.h:2261</see>
|
|
/// <br/><c>ImGuiDebugAllocEntry LastEntriesBuf[6]</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(12)]
|
|
public ImGuiDebugAllocEntry_6 LastEntriesBuf;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2256">imgui_internal.h:2256</see>
|
|
/// <br/><c>struct ImGuiDebugAllocInfo</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public unsafe partial struct ImGuiDebugAllocInfoPtr(ImGuiDebugAllocInfo* ptr) : INullable
|
|
{
|
|
private ImGuiDebugAllocInfo* _ptr = ptr;
|
|
public ImGuiDebugAllocInfo* Ptr => _ptr;
|
|
|
|
public bool IsNull() => _ptr is null;
|
|
|
|
public static implicit operator ImGuiDebugAllocInfoPtr(ImGuiDebugAllocInfo* ptr) => new(ptr);
|
|
|
|
public static implicit operator ImGuiDebugAllocInfo*(ImGuiDebugAllocInfoPtr wrapper) => wrapper.Ptr;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Number of call to MemAlloc().
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2258">imgui_internal.h:2258</see>
|
|
/// <br/><c>int TotalAllocCount</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public ref int TotalAllocCount => ref Unsafe.AsRef<int>(&_ptr->TotalAllocCount);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2259">imgui_internal.h:2259</see>
|
|
/// <br/><c>int TotalFreeCount</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public ref int TotalFreeCount => ref Unsafe.AsRef<int>(&_ptr->TotalFreeCount);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Current index in buffer
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2260">imgui_internal.h:2260</see>
|
|
/// <br/><c>ImS16 LastEntriesIdx</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public ref short LastEntriesIdx => ref Unsafe.AsRef<short>(&_ptr->LastEntriesIdx);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Track last 6 frames that had allocations
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2261">imgui_internal.h:2261</see>
|
|
/// <br/><c>ImGuiDebugAllocEntry LastEntriesBuf[6]</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public ref ImGuiDebugAllocEntry_6 LastEntriesBuf =>
|
|
ref Unsafe.AsRef<ImGuiDebugAllocEntry_6>(&_ptr->LastEntriesBuf);
|
|
}
|
|
}
|