SPV: Create more access chains addressing a few swizzling issues.

- Fixes #1233
- Treats local bools like anything else
- more consistently deals with a dynamic component selection
This commit is contained in:
John Kessenich
2018-02-05 14:44:14 -07:00
parent 2651ccaec8
commit 5c3eed542d
8 changed files with 764 additions and 716 deletions

View File

@@ -74,6 +74,11 @@ void GetColor13(const S i, int comp)
OutColor.zy[comp] += i.color.x;
}
void GetColor14(const S i, int comp)
{
OutColor.zyx[comp] = i.color.x;
}
void main()
{
S s;
@@ -91,4 +96,5 @@ void main()
GetColor11(s, u);
GetColor12(s, u);
GetColor13(s, u);
GetColor14(s, u);
}