HLSL: require tessellation factors to be fixed size arrays
authorsteve-lunarg <steve_gh@khasekhemwy.net>
Sat, 18 Mar 2017 00:51:05 +0000 (18:51 -0600)
committersteve-lunarg <steve_gh@khasekhemwy.net>
Thu, 30 Mar 2017 20:37:02 +0000 (14:37 -0600)
commit194f0f39ecf07b7a815ce29148a75b7f04d82a96
treeeea0068d9be515681660fe35553fc4e7e5aff217
parent9cee73e0284c02dcc8123bae356a38fcf1b5c8d2
HLSL: require tessellation factors to be fixed size arrays

SPIR-V requires that tessellation factor arrays be size 4 (outer) or 2 (inner).
HLSL allows other sizes such as 3, or even scalars.  This commit converts
between them by forcing the IO types to be the SPIR-V size, and allowing
copies between the internal and IO types to handle these cases.
Test/baseResults/hlsl.hull.1.tesc.out
Test/baseResults/hlsl.hull.2.tesc.out
Test/baseResults/hlsl.hull.ctrlpt-1.tesc.out
Test/hlsl.hull.ctrlpt-1.tesc
hlsl/hlslParseHelper.cpp
hlsl/hlslParseHelper.h