HLSL: Handle flatten for reads from flatten structs and parameter passing.

This commit is contained in:
John Kessenich 2016-09-16 19:44:00 -06:00
parent 34e7ee79bb
commit d2ce838a58
5 changed files with 193 additions and 11 deletions

13
Test/hlsl.entry-in.frag Normal file
View file

@ -0,0 +1,13 @@
struct InParam {
float2 v;
float4 fragCoord : SV_POSITION;
int2 i2;
};
float4 PixelShaderFunction(InParam i) : COLOR0
{
InParam local;
local = i;
return local.fragCoord;
}