• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1struct Test
2{
3    float4 memVar;
4    static float4 staticMemFun(float4 a) : SV_Position
5    {
6        return 2 * a;
7    }
8    static int staticMemFun(int a) : SV_Position
9    {
10        return 2 + a;
11    }
12    int i;
13};
14
15float4 main() : SV_Target0
16{
17   Test test;
18   float4 f4 = float4(1.0,1.0,1.0,1.0);
19   f4 += Test::staticMemFun(float4(5.0f,5.0f,5.0f,5.0f));
20   f4 += Test::staticMemFun(7);
21   return f4;
22}
23