﻿namespace ImGuiNET
{
    public unsafe delegate int ImGuiInputTextCallback(ImGuiInputTextCallbackData* data);
}

using System.Runtime.InteropServices;

namespace ImGuiNET
{
    [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
    public unsafe delegate int ImGuiInputTextCallback(ImGuiInputTextCallbackData* data);
}

Change calling convention of ImGuiInputTextCallback
Change calling convention of ImGuiInputTextCallback