[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:
parent
5370390096
commit
0647d23607
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue