HLSL: Handle flatten for reads from flatten structs and parameter passing.
This commit is contained in:
parent
34e7ee79bb
commit
d2ce838a58
5 changed files with 193 additions and 11 deletions
13
Test/hlsl.entry-in.frag
Normal file
13
Test/hlsl.entry-in.frag
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue