Skip to content

Commit

Permalink
[wgsl-in] Unify ConcreteConstructor and ConcreteConstructorHandle.
Browse files Browse the repository at this point in the history
Replace the `ConcreteConstructor` and `ConcreteConstructorHandle`
types in `front::wgsl::lower::construction` with a single type
`Constructor` with a type parameter that determines how it refers to
Naga types.

In the single-argument vector construction case, construct `Compose`
expressions when the lengths don't match, and leave the problem for
validation to catch; `validate_compose` is a better place to invest
time in improving diagnostics (and arguably producess more specific
error messages already).
  • Loading branch information
jimblandy committed Oct 22, 2023
1 parent 001c9bd commit 8b30632
Showing 1 changed file with 122 additions and 93 deletions.
Loading

0 comments on commit 8b30632

Please sign in to comment.