-
-
Notifications
You must be signed in to change notification settings - Fork 21.9k
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
Implement custom function overloading in shading language #92441
Implement custom function overloading in shading language #92441
Conversation
efae1f3
to
f0fc098
Compare
Okay, I think I've fixed warnings and completion issues, if other users or contributors want to test it extensively please welcome (@paddy-exe, @Calinou, @clayjohn) |
65aebc6
to
5529b79
Compare
a321fe2
to
c2b6561
Compare
de55ee3
to
02b307c
Compare
d1ebf76
to
a5cc0a2
Compare
837180a
to
a9ada17
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally in all rendering methods (rebased on top of master
a7aa835), it works as expected.
Finally a use case for implicit float → int conversions not being allowed in GLSL. 😛
simplescreenrecorder-2024-06-11_16.51.55.mp4
Testing project: test_pr_92441.zip
a9dc16f
to
9be7e72
Compare
6d6cf01
to
f0f39ba
Compare
f0f39ba
to
b690b21
Compare
43e3e9e
to
8252027
Compare
8252027
to
1c86fee
Compare
Thanks! |
Closes godotengine/godot-proposals#2808
Note: in order to prevent ambiguity between function overloading and constant conversion, the constant conversion of similar types will be disabled when the overloads exist on the function call.