[spirv-writer] Remove stpq support.

This CL removes conversion of stpq to indexes for a vector swizzle as
they are not supported by WGSL.

Change-Id: I3fde18a8a4205cae83b32ce2830a6df48a8f22f4
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/22162
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
This commit is contained in:
dan sinclair 2020-05-27 13:08:29 +00:00 committed by dan sinclair
parent 5370390096
commit 0647d23607
1 changed files with 0 additions and 4 deletions

View File

@ -106,19 +106,15 @@ uint32_t IndexFromName(char name) {
switch (name) { switch (name) {
case 'x': case 'x':
case 'r': case 'r':
case 's':
return 0; return 0;
case 'y': case 'y':
case 'g': case 'g':
case 't':
return 1; return 1;
case 'z': case 'z':
case 'b': case 'b':
case 'p':
return 2; return 2;
case 'w': case 'w':
case 'a': case 'a':
case 'q':
return 3; return 3;
} }
return std::numeric_limits<uint32_t>::max(); return std::numeric_limits<uint32_t>::max();