-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[wgsl-in] add support for override declarations #4793
[wgsl-in] add support for override declarations #4793
Conversation
5295d13
to
80b23c1
Compare
[ir] split overrides from constants
80b23c1
to
587b62d
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.
The compaction can be simplified, and I think one of the tests should be tweaked slightly, but otherwise this looks great. I'll make the changes myself.
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.
We also need a test like this:
override inferred_f32 = 3.1415;
When we merge this branch with the abstract type changes, we will need to make sure that lowering uses the concretized initializer value to infer the override's type, not its value in isolation. I think this test will catch that case, so we'll know to fix it when the merge happens.
Also, let's give this file a final newline.
Co-authored-by: Jim Blandy <jimb@red-bean.com>
Co-authored-by: Jim Blandy <jimb@red-bean.com>
Co-authored-by: Jim Blandy <jimb@red-bean.com>
Co-authored-by: Jim Blandy <jimb@red-bean.com>
Co-authored-by: Jim Blandy <jimb@red-bean.com>
Co-authored-by: Jim Blandy <jimb@red-bean.com>
Co-authored-by: Jim Blandy <jimb@red-bean.com>
Co-authored-by: Jim Blandy <jimb@red-bean.com>
Co-authored-by: Jim Blandy <jimb@red-bean.com>
Adds support for override declarations and splits overrides from constants in the IR.
Tracking meta issue: #4484.