HLSL: phase 2e: introduce lower level addBinaryNode/UnaryNode fns
authorsteve-lunarg <steve_gh@khasekhemwy.net>
Wed, 12 Oct 2016 18:38:12 +0000 (12:38 -0600)
committersteve-lunarg <steve_gh@khasekhemwy.net>
Wed, 12 Oct 2016 18:39:44 +0000 (12:39 -0600)
commitb3da8a9cb30bee73e4646e50ff2ce6c21bef8ec1
treeb874a39f2c95161eb055de505ec327089f2cf21e
parent07830e805b6c4c65ce9bf275c186e84ab2335200
HLSL: phase 2e: introduce lower level addBinaryNode/UnaryNode fns

- hlsl.struct.frag variable changed to static, assignment replacd.

- Created new low level functions addBinaryNode and addUnaryNode.  These are
  used by higher level functions such as addAssignment, and do not do any
  argument promotion or conversion of any sort.

- Two functions above are now used in RWTexture lvalue conversions.  Also,
  other direction creations of unary or binary nodes now use them, e.g, addIndex.
  This cleans up some existing code.

- removed handling of EOpVectorTimesScalar from promote()

- removed comment from ParseHelper.cpp
Test/baseResults/hlsl.struct.frag.out
Test/hlsl.struct.frag
glslang/MachineIndependent/Intermediate.cpp
glslang/MachineIndependent/ParseHelper.cpp
glslang/MachineIndependent/localintermediate.h
hlsl/hlslParseHelper.cpp