-
Notifications
You must be signed in to change notification settings - Fork 482
Fix shader compilation failure in Chrome 131 #9152
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
Conversation
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.
Hi! Thanks for opening this pull request.
Because this is your first time contributing to this repository, make sure you've read our Contributor Guide and Code of Conduct.
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.
Thanks!
does not fix the linked issue, that was originally about something else entirely |
Fix can't hurt, but fwiw I can't repro this on MacOs M1 Chrome |
After some digging, I understand what happened: when I tried to add flag As for the specs, this issue may help gpuweb/gpuweb#2619, the latest Chrome/Tint accepts such syntax, and the tint ir dumped by latest Chrome also fixes this problem: That being said, I think this bug still relevant, it affects the older browsers, and the original symbol seems not accepted by Metal Shader Language. |
Ah no worries! Then this is the same thing I posted on Discord recently. I didn't break it down via Will take care of the intermittent CI breakage later - seems to be an issue in the non-maintainer ci subset only. |
### Related * Closes #8377 * Follow-up to #9152 <!-- Include links to any related issues/PRs in a bulleted list, for example: * Closes #1234 * Part of #1337 --> ### What This pr is extension of #9152, further fixing the shader variable naming issue in Chome 131 version. <img width="1021" alt="Image" src="https://github.com/user-attachments/assets/fab624cd-3d14-4bbc-8209-5a1cc1ccbd73" /> after fix: <img width="1469" alt="Image" src="https://github.com/user-attachments/assets/3f08da34-919d-4efb-9104-137dd6fe2863" /> <!-- Make sure the PR title and labels are set to maximize their usefulness for the CHANGELOG, and our `git log`. If you have noticed any breaking changes, include them in the migration guide. We track various metrics at <https://build.rerun.io>. For maintainers: * To run all checks from `main`, comment on the PR with `@rerun-bot full-check`. * To deploy documentation changes immediately after merging this PR, add the `deploy docs` label. -->
Related
What
rerun/crates/viewer/re_renderer/shader/point_cloud.wgsl
Line 134 in af3312a
The variable
distance
collide with internal functiondistance()
, resulting in wgsl build error on macOS Chrome.More information in #8377.