Skip to content
This repository was archived by the owner on Jan 29, 2025. It is now read-only.

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 force-pushed the function-vars-constructible branch from d038488 to 0af5179 Compare October 8, 2023 21:02
@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
@teoxoy teoxoy deleted the function-vars-constructible branch October 9, 2023 10:27
# for free to subscribe to this conversation on GitHub. Already have an account? #.
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