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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user