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

[5.0] Bindings work. #1714

Open
wants to merge 4 commits into
base: opentk5.0
Choose a base branch
from
Open

Conversation

NogginBops
Copy link
Member

@NogginBops NogginBops commented Mar 16, 2024

Purpose of this PR

Removed automatic length parameter calculations.
Span and array overloading for parameters without explicit size (with a risk of generating a few useless overloads).
Don't generate return overloads for parameters with an explicit size != 0.
Switch to use out by default and try to mark all places where automatic detection fails.
Only convert out parameters to return values if they are the last out parameter.

Testing status

OpenTK.Graphics compiles.

Made SpanAndArrayOverloader overload pointer paramters even if they don't have an explicit length attribute.
Made GetReturnOverloader more selective of what functions it overloads.
…meters that should be in but not marked as const.

Made out to return overload to always convert the last out parameter to the return type.
Fixed issue where overload layers couldn't do fixed statemets in case later overloaders made the variable a local variable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant