2016-08-29 00:00:23 +03:00
|
|
|
struct OutParam {
|
|
|
|
float2 v;
|
|
|
|
int2 i;
|
|
|
|
};
|
|
|
|
|
2016-10-02 02:11:21 +03:00
|
|
|
void fun(out OutParam op)
|
|
|
|
{
|
|
|
|
op.v = float2(0.4);
|
|
|
|
op.i = int2(7);
|
|
|
|
}
|
|
|
|
|
2016-09-16 12:05:12 +03:00
|
|
|
float4 PixelShaderFunction(float4 input, out float4 out1, out OutParam out2, out OutParam out3) : COLOR0
|
2016-08-29 00:00:23 +03:00
|
|
|
{
|
|
|
|
out1 = input;
|
|
|
|
out2.v = 2.0;
|
|
|
|
out2.i = 3;
|
2016-09-16 12:05:12 +03:00
|
|
|
OutParam local;
|
|
|
|
local.v = 12.0;
|
|
|
|
local.i = 13;
|
2016-10-02 02:11:21 +03:00
|
|
|
fun(out3);
|
2016-09-16 12:05:12 +03:00
|
|
|
|
2016-08-29 00:00:23 +03:00
|
|
|
return out1;
|
|
|
|
}
|