2016-09-17 04:44:00 +03:00
|
|
|
struct InParam {
|
|
|
|
float2 v;
|
|
|
|
float4 fragCoord : SV_POSITION;
|
|
|
|
int2 i2;
|
|
|
|
};
|
|
|
|
|
2016-09-19 09:06:19 +03:00
|
|
|
float fun(InParam p)
|
|
|
|
{
|
|
|
|
return p.v.y + p.fragCoord.x;
|
|
|
|
}
|
|
|
|
|
2016-09-17 04:44:00 +03:00
|
|
|
float4 PixelShaderFunction(InParam i) : COLOR0
|
|
|
|
{
|
|
|
|
InParam local;
|
|
|
|
local = i;
|
2016-09-19 09:06:19 +03:00
|
|
|
float ret1 = fun(local);
|
|
|
|
float ret2 = fun(i);
|
2016-09-17 04:44:00 +03:00
|
|
|
|
2016-09-19 09:06:19 +03:00
|
|
|
return local.fragCoord * ret1 * ret2;
|
2016-09-17 04:44:00 +03:00
|
|
|
}
|