Fix #1843: Handle built-in function output parameters to a swizzled arg
authorJohn Kessenich <cepheus@frii.com>
Tue, 3 Mar 2020 14:21:37 +0000 (07:21 -0700)
committerJohn Kessenich <cepheus@frii.com>
Tue, 3 Mar 2020 14:21:37 +0000 (07:21 -0700)
commitbbbd9a2a1f41ab301861c6052d9643c626ee9961
tree7155a87c016e203f2bf8811d036367ac8f3b49ab
parent56364b6b602696c021349794a8d39744a1052afc
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.
SPIRV/GlslangToSpv.cpp
SPIRV/SpvBuilder.h
Test/baseResults/spv.Operations.frag.out
Test/spv.Operations.frag