• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1SamplerState       g_sSamp : register(s0);
2uniform sampler2D          g_sSamp2d;
3
4Texture1D          g_tTex1df4a : register(t1);
5
6uniform Texture1D <float4> g_tTex1df4 : register(t0);
7Texture1D <int4>   g_tTex1di4;
8Texture1D <uint4>  g_tTex1du4;
9
10Texture2D <float4> g_tTex2df4;
11Texture2D <int4>   g_tTex2di4;
12Texture2D <uint4>  g_tTex2du4;
13
14Texture3D <float4> g_tTex3df4;
15Texture3D <int4>   g_tTex3di4;
16Texture3D <uint4>  g_tTex3du4;
17
18TextureCube <float4> g_tTexcdf4;
19TextureCube <int4>   g_tTexcdi4;
20TextureCube <uint4>  g_tTexcdu4;
21
22struct PS_OUTPUT
23{
24    float4 Color : SV_Target0;
25    float  Depth : SV_Depth;
26};
27
28uniform float  c1;
29uniform float2 c2;
30uniform float3 c3;
31uniform float4 c4;
32
33uniform int  o1;
34uniform int2 o2;
35uniform int3 o3;
36uniform int4 o4;
37
38PS_OUTPUT main()
39{
40   PS_OUTPUT psout;
41
42   uint status;
43
44   // no 1D gathers
45
46   float4 txval001 = g_tTex2df4 . GatherRed(g_sSamp, c2, o2);
47   int4   txval011 = g_tTex2di4 . GatherRed(g_sSamp, c2, o2);
48   uint4  txval021 = g_tTex2du4 . GatherRed(g_sSamp, c2, o2);
49
50   float4 txval004 = g_tTex2df4 . GatherRed(g_sSamp, c2, o2, o2, o2, o2);
51   int4   txval014 = g_tTex2di4 . GatherRed(g_sSamp, c2, o2, o2, o2, o2);
52   uint4  txval024 = g_tTex2du4 . GatherRed(g_sSamp, c2, o2, o2, o2, o2);
53
54   // float4 txval00s = g_tTex2df4 . GatherRed(g_sSamp, c2, o2, status);
55   // int4   txval01s = g_tTex2di4 . GatherRed(g_sSamp, c2, o2, status);
56   // uint4  txval02s = g_tTex2du4 . GatherRed(g_sSamp, c2, o2, status);
57
58   // float4 txval004s = g_tTex2df4 . GatherRed(g_sSamp, c2, o2, o2, o2, o2, status);
59   // int4   txval014s = g_tTex2di4 . GatherRed(g_sSamp, c2, o2, o2, o2, o2, status);
60   // uint4  txval024s = g_tTex2du4 . GatherRed(g_sSamp, c2, o2, o2, o2, o2, status);
61
62   float4 txval101 = g_tTex2df4 . GatherGreen(g_sSamp, c2, o2);
63   int4   txval111 = g_tTex2di4 . GatherGreen(g_sSamp, c2, o2);
64   uint4  txval121 = g_tTex2du4 . GatherGreen(g_sSamp, c2, o2);
65
66   float4 txval104 = g_tTex2df4 . GatherGreen(g_sSamp, c2, o2, o2, o2, o2);
67   int4   txval114 = g_tTex2di4 . GatherGreen(g_sSamp, c2, o2, o2, o2, o2);
68   uint4  txval124 = g_tTex2du4 . GatherGreen(g_sSamp, c2, o2, o2, o2, o2);
69
70   // float4 txval10s = g_tTex2df4 . GatherGreen(g_sSamp, c2, o2, status);
71   // int4   txval11s = g_tTex2di4 . GatherGreen(g_sSamp, c2, o2, status);
72   // uint4  txval12s = g_tTex2du4 . GatherGreen(g_sSamp, c2, o2, status);
73
74   // float4 txval104 = g_tTex2df4 . GatherGreen(g_sSamp, c2, o2, o2, o2, o2, status);
75   // int4   txval114 = g_tTex2di4 . GatherGreen(g_sSamp, c2, o2, o2, o2, o2, status);
76   // uint4  txval124 = g_tTex2du4 . GatherGreen(g_sSamp, c2, o2, o2, o2, o2, status);
77
78   float4 txval201 = g_tTex2df4 . GatherBlue(g_sSamp, c2, o2);
79   int4   txval211 = g_tTex2di4 . GatherBlue(g_sSamp, c2, o2);
80   uint4  txval221 = g_tTex2du4 . GatherBlue(g_sSamp, c2, o2);
81
82   float4 txval204 = g_tTex2df4 . GatherBlue(g_sSamp, c2, o2, o2, o2, o2);
83   int4   txval214 = g_tTex2di4 . GatherBlue(g_sSamp, c2, o2, o2, o2, o2);
84   uint4  txval224 = g_tTex2du4 . GatherBlue(g_sSamp, c2, o2, o2, o2, o2);
85
86   // float4 txval204s = g_tTex2df4 . GatherBlue(g_sSamp, c2, o2, o2, o2, o2, status);
87   // int4   txval214s = g_tTex2di4 . GatherBlue(g_sSamp, c2, o2, o2, o2, o2, status);
88   // uint4  txval224s = g_tTex2du4 . GatherBlue(g_sSamp, c2, o2, o2, o2, o2, status);
89
90   // float4 txval20s = g_tTex2df4 . GatherBlue(g_sSamp, c2, o2, status);
91   // int4   txval21s = g_tTex2di4 . GatherBlue(g_sSamp, c2, o2, status);
92   // uint4  txval22s = g_tTex2du4 . GatherBlue(g_sSamp, c2, o2, status);
93
94   float4 txval301 = g_tTex2df4 . GatherAlpha(g_sSamp, c2, o2);
95   int4   txval311 = g_tTex2di4 . GatherAlpha(g_sSamp, c2, o2);
96   uint4  txval321 = g_tTex2du4 . GatherAlpha(g_sSamp, c2, o2);
97
98   float4 txval304 = g_tTex2df4 . GatherAlpha(g_sSamp, c2, o2, o2, o2, o2);
99   int4   txval314 = g_tTex2di4 . GatherAlpha(g_sSamp, c2, o2, o2, o2, o2);
100   uint4  txval324 = g_tTex2du4 . GatherAlpha(g_sSamp, c2, o2, o2, o2, o2);
101
102   // float4 txval304s = g_tTex2df4 . GatherAlpha(g_sSamp, c2, o2, o2, o2, o2, status);
103   // int4   txval314s = g_tTex2di4 . GatherAlpha(g_sSamp, c2, o2, o2, o2, o2, status);
104   // uint4  txval324s = g_tTex2du4 . GatherAlpha(g_sSamp, c2, o2, o2, o2, o2, status);
105
106   // float4 txval30s = g_tTex2df4 . GatherAlpha(g_sSamp, c2, o2, status);
107   // int4   txval31s = g_tTex2di4 . GatherAlpha(g_sSamp, c2, o2, status);
108   // uint4  txval32s = g_tTex2du4 . GatherAlpha(g_sSamp, c2, o2, status);
109
110   // no 3D gathers with offset
111
112   psout.Color = 1.0;
113   psout.Depth = 1.0;
114
115   return psout;
116}
117