-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Inconsistent API and unnecessary mut qualifier. #1956
Comments
Thanks for the report! By default we assume mutable access is needed (since we don't know otherwise) and we have a whitelist of methods that don't mutate. If you'd like a PR to extend that list would be most welcome! |
@alexcrichton sure thing, here it is: #1957 :) As this is a very minor change, I'd be thankful if it could be merged fast :) |
Oh, one more question! Would you be so nice and tell me where can I fix it in the code? :) |
Ah unfortunately that's a lot more complicated since it's all based on the WebIDL that we're reading. Want to open a dedicated issue for that? |
@alexandrestein of course! |
Hi! See the signatures of all
uniform_matrixXXX_with_f32_array
functions. Almost all of them consumedata: &[f32]
. However, the ones which are defined for non-square matrices, consumedata: &mut [f32]
instead. To keep the API consistent, all of them should consumedata: &[f32]
.The text was updated successfully, but these errors were encountered: