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