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 23, 2023
1 parent f3a8251 commit b6b0b68
Showing 1 changed file with 122 additions and 93 deletions.
Loading

0 comments on commit b6b0b68

Please sign in to comment.