Skip to content

Support imgui related abi #1129

@Uriopass

Description

@Uriopass

When trying to compile imgui-rs using cranelift, the build succeeds however there are some heavy artefacts.

Screen of the artefacts in my game, left: expected, right: actual:
image

However when building, the only warnings are:

warning: Argument of type `sys::ImVec2` with pass mode `ByValPair(types::F32, types::F32)` is not yet supported for non-rust abi `"C"`. Calling this function may result in a crash.

(x32)

It seems like implementing ByValPair should do the trick, but I'm not sure what it would implicate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-abiArea: ABI handlingC-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions