HLSL: matrix and vector truncations for m*v, v*m, m*m
authorLoopDawg <sk_opengl@khasekhemwy.net>
Wed, 22 Nov 2017 17:33:34 +0000 (10:33 -0700)
committerLoopDawg <sk_opengl@khasekhemwy.net>
Wed, 22 Nov 2017 19:01:45 +0000 (12:01 -0700)
commit2e62910633899bf3069240ffb1ce0e1ac78d2d6b
tree68f5fc94d08e37d341b40709b5895dfae0fbdad5
parent698bf7547a96b6feb7291e8ddc0d5d16475dbae2
HLSL: matrix and vector truncations for m*v, v*m, m*m

HLSL truncates the vector, or one of the two matrix dimensions if there is a
dimensional mismatch in m*v, v*m, or m*m.

This PR adds that ability.  Conversion constructors are added as required.
Test/baseResults/hlsl.mul-truncate.frag.out [new file with mode: 0644]
Test/hlsl.mul-truncate.frag [new file with mode: 0644]
glslang/Include/Types.h
gtests/Hlsl.FromFile.cpp
hlsl/hlslParseHelper.cpp
hlsl/hlslParseHelper.h