Fix #1843: Handle built-in function output parameters to a swizzled arg
In GLSL/HLSL/AST, v.zyx is an l-value, but not in SPIR-V, which cannot represent it. So, a temporary is used instead.
This commit is contained in:
@@ -55,9 +55,10 @@ void main()
|
||||
v += ceil(v);
|
||||
v += fract(v);
|
||||
v += mod(v, v);
|
||||
v += mod(v, v.x);
|
||||
v += mod(v, v.x);
|
||||
|
||||
v += modf(v, v);
|
||||
v += modf(v, v.yzxw);
|
||||
|
||||
v += min(v, uv4);
|
||||
v += max(v, uv4);
|
||||
|
||||
Reference in New Issue
Block a user