HLSL: matrix swizzle (_12, _m23) syntax, partial semantics.
authorJohn Kessenich <cepheus@frii.com>
Thu, 12 Jan 2017 23:51:18 +0000 (16:51 -0700)
committerJohn Kessenich <cepheus@frii.com>
Thu, 12 Jan 2017 23:51:18 +0000 (16:51 -0700)
commit001dfa1c5c78740dfcf4fded87701f7150d45b0a
treeac5dae623b04ffd91bbcb19bcef51ed2eb588e18
parent913e3b686aff40957395b47030a0e09cf3ca4db7
HLSL: matrix swizzle (_12, _m23) syntax, partial semantics.

This partially addressess issue #670, for when the matrix swizzle
degenerates to a component or column: m[c], m[c][r] (where HLSL
swaps rows and columns for user's view).

An error message is given for the arbitrary cases not covered.

These cases will work for arbitrary use of l-values.

Future work will handle more arbitrary swizzles, which might
not work as arbitrary l-values.
Test/baseResults/hlsl.matrixSwizzle.vert.out [new file with mode: 0755]
Test/hlsl.matrixSwizzle.vert [new file with mode: 0644]
glslang/MachineIndependent/localintermediate.h
gtests/Hlsl.FromFile.cpp
hlsl/hlslParseHelper.cpp
hlsl/hlslParseHelper.h