Skip to content

Commit

Permalink
[wgsl-in] Remove Components enum in favor of slice patterns.
Browse files Browse the repository at this point in the history
Remove `front::wgsl::lower::construction::Components`, and simply use
slice patterns to decide which Naga code to generate. Supply the type
of the first argument, if available, as an `Option`. This is slightly
redundant, as the `Option` is `Some` if and only if the slice is
non-empty, but in practice it is not too messy, and we can add match
arms to check for misalignment.
  • Loading branch information
jimblandy committed Oct 21, 2023
1 parent 42bf389 commit 001c9bd
Showing 1 changed file with 87 additions and 154 deletions.
Loading

0 comments on commit 001c9bd

Please sign in to comment.