• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1struct PS_OUTPUT
2{
3    float4 Color : SV_Target0;
4};
5
6uniform int    ival;
7uniform int4   ival4;
8uniform float  fval;
9uniform float4 fval4;
10
11PS_OUTPUT main()
12{
13    !ival;  // scalar int
14    !ival4; // vector int
15
16    !fval;  // scalar float
17    !fval4; // vector float
18
19    if (ival);
20    if (fval);
21    if (!ival);
22    if (!fval);
23
24    PS_OUTPUT psout;
25    psout.Color = 1.0;
26    return psout;
27}
28
29
30