Add support for @workgroup_size to WGSL code generator.
Previously, the WGSL code generator would assert as soon as it
encountered a `layout (local_size_x=1) in;` declaration. Now,
we honor the declaration. I've also fixed up various places in
the generator which assumed that we would only compile fragment or
vertex programs, and that programs would always have stage-in and
stage-out data.
Bug: b/40044665
Bug: b/299116275
Change-Id: I64ed04c55d6e2bfe92bcdc664bcc48527e0e3458
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/751816
Reviewed-by: Arman Uguray <armansito@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
6 files changed