Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Int support to amd64 and fix issue with structs not being copied #288

Merged
merged 5 commits into from
Oct 19, 2024

Conversation

TotallyGamerJet
Copy link
Collaborator

@TotallyGamerJet TotallyGamerJet commented Oct 19, 2024

What issue is this addressing?

Updates hajimehoshi/ebiten#3135
Closes #289

What type of issue is this addressing?

bug fix

What this PR does | solves

Adds int support on amd64 (arm64 already worked) and fixes a logic bug which stopped structs that should've been copied into memory but weren't (postMerger function)

@TotallyGamerJet
Copy link
Collaborator Author

TotallyGamerJet commented Oct 19, 2024

This fixes the int bug in ebitengine but BlitCommandEncoder.CopyFromTexture still needs to use NSInvocation because it has too many parameters for purego.

Copy link
Member

@hajimehoshi hajimehoshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we file an issue first for PureGo?

testdata/structtest/struct_test.c Outdated Show resolved Hide resolved
@TotallyGamerJet
Copy link
Collaborator Author

Could we file an issue first for PureGo?

done

Copy link
Member

@hajimehoshi hajimehoshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Please add Closes #289 in the commit comment.

@TotallyGamerJet TotallyGamerJet merged commit abe9f9a into ebitengine:main Oct 19, 2024
24 checks passed
@TotallyGamerJet TotallyGamerJet deleted the struct branch October 19, 2024 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unsupported kind int in struct field (amd64 only)
2 participants