HLSL: Do structure conversion for return type struct-punning on non-entry-point functions.

This commit is contained in:
John Kessenich
2016-10-06 12:59:51 -06:00
parent 7a7217c81b
commit ed33e05762
9 changed files with 167 additions and 20 deletions

View File

@@ -1,5 +1,5 @@
float4 main(float4 input) : COLOR0
float main(float4 input) : COLOR0
{
vector r00 = float4(1,2,3,4); // vector means float4
float4 r01 = vector(2,3,4,5); // vector means float4