HLSL: Flatten whole-struct assigns and returns when targeting flattened I/O structs.
This commit is contained in:
parent
f8e494c18c
commit
d21baed6bc
67 changed files with 4024 additions and 2886 deletions
|
|
@ -3,10 +3,15 @@ struct OutParam {
|
|||
int2 i;
|
||||
};
|
||||
|
||||
float4 PixelShaderFunction(float4 input, out float4 out1, out OutParam out2) : COLOR0
|
||||
float4 PixelShaderFunction(float4 input, out float4 out1, out OutParam out2, out OutParam out3) : COLOR0
|
||||
{
|
||||
out1 = input;
|
||||
out2.v = 2.0;
|
||||
out2.i = 3;
|
||||
OutParam local;
|
||||
local.v = 12.0;
|
||||
local.i = 13;
|
||||
out3 = local;
|
||||
|
||||
return out1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue