-
-
Couldn't load subscription status.
- Fork 34
Closed
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed
Description
- Struct layouts are verified. (double checked)
Cpp signature:
ImVec2(*Platform_GetWindowPos)(ImGuiViewport *vp); Expected C# signature:
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public unsafe delegate Vector2 PlatformGetWindowPos(ImGuiViewport* viewport);Doesn't work on windows.
Working signature on windows: (Created using the disassembly)
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public unsafe delegate Vector2* PlatformGetWindowPos(Vector2* pos, ImGuiViewport* viewport);Any thoughts why that could happen?
PS: I checked already the calling convention doesn't change anything. (set the cpp fn to __cdecl)
My thoughts:
- A issue in the .NET Runtime.
Screenshot of the problem with the "correct"/expected signature

Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed
