Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[wgsl-in] Remove
Components
enum in favor of slice patterns.
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