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

Require that Function and Private variables be CONSTRUCTIBLE. #2545

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

jimblandy
Copy link
Member

@jimblandy jimblandy commented Oct 8, 2023

Change the validator to enforce WGSL's requirement that all variables
in the function and private address spaces must have constructible
types.

Mark the RayQuery type as CONSTRUCTIBLE, since it is intended to
be used for local variables.

Add a regression test.

@jimblandy jimblandy added kind: bug Something isn't working area: validation Validation of the IR labels Oct 8, 2023
@jimblandy jimblandy requested a review from teoxoy October 8, 2023 20:57
@jimblandy jimblandy self-assigned this Oct 8, 2023
Change the validator to enforce WGSL's requirement that all variables
in the `function` and `private` address spaces must have constructible
types.

Mark the `RayQuery` type as `CONSTRUCTIBLE`, since it is intended to
be used for local variables.

Add a regression test.
@jimblandy jimblandy changed the title Require that Function variables have CONSTRUCTIBLE types. Require that Function and Private variables be CONSTRUCTIBLE. Oct 8, 2023
@teoxoy teoxoy merged commit fe484b3 into master Oct 9, 2023
10 checks passed
@teoxoy teoxoy deleted the function-vars-constructible branch October 9, 2023 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: validation Validation of the IR kind: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants