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

[wgsl-in] add support for override declarations #4793

Merged
merged 3 commits into from
Dec 7, 2023

Conversation

teoxoy
Copy link
Member

@teoxoy teoxoy commented Nov 28, 2023

Adds support for override declarations and splits overrides from constants in the IR.

Tracking meta issue: #4484.

Copy link
Member

@jimblandy jimblandy left a 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.

Copy link
Member

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.

@jimblandy jimblandy merged commit 82ebbfd into gfx-rs:pipeline-constants Dec 7, 2023
27 checks passed
teoxoy added a commit that referenced this pull request Jan 8, 2024
Co-authored-by: Jim Blandy <jimb@red-bean.com>
teoxoy added a commit that referenced this pull request Jan 8, 2024
Co-authored-by: Jim Blandy <jimb@red-bean.com>
teoxoy added a commit that referenced this pull request Feb 12, 2024
Co-authored-by: Jim Blandy <jimb@red-bean.com>
teoxoy added a commit that referenced this pull request Feb 12, 2024
Co-authored-by: Jim Blandy <jimb@red-bean.com>
teoxoy added a commit that referenced this pull request Feb 12, 2024
Co-authored-by: Jim Blandy <jimb@red-bean.com>
teoxoy added a commit that referenced this pull request Mar 14, 2024
Co-authored-by: Jim Blandy <jimb@red-bean.com>
teoxoy added a commit that referenced this pull request Apr 4, 2024
Co-authored-by: Jim Blandy <jimb@red-bean.com>
teoxoy added a commit that referenced this pull request Apr 4, 2024
Co-authored-by: Jim Blandy <jimb@red-bean.com>
@teoxoy teoxoy mentioned this pull request Apr 5, 2024
teoxoy added a commit that referenced this pull request Apr 5, 2024
Co-authored-by: Jim Blandy <jimb@red-bean.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants