• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1SamplerComparisonState     g_sSampCmp : register(s0);
2
3Texture1D          g_tTex1df4a : register(t1);
4
5uniform Texture1D <float4> g_tTex1df4 : register(t0);
6Texture1D <int4>   g_tTex1di4;
7Texture1D <uint4>  g_tTex1du4;
8
9Texture2D <float4> g_tTex2df4;
10Texture2D <int4>   g_tTex2di4;
11Texture2D <uint4>  g_tTex2du4;
12
13Texture3D <float4> g_tTex3df4;
14Texture3D <int4>   g_tTex3di4;
15Texture3D <uint4>  g_tTex3du4;
16
17TextureCube <float4> g_tTexcdf4;
18TextureCube <int4>   g_tTexcdi4;
19TextureCube <uint4>  g_tTexcdu4;
20
21struct PS_OUTPUT
22{
23    float4 Color : SV_Target0;
24    float  Depth : SV_Depth;
25};
26
27uniform float  c1;
28uniform float2 c2;
29uniform float3 c3;
30uniform float4 c4;
31
32PS_OUTPUT main()
33{
34   PS_OUTPUT psout;
35
36   // no 1D gathers
37
38   float4 txval00 = g_tTex2df4 . GatherCmpRed(g_sSampCmp, c2, 0.75);
39   int4   txval01 = g_tTex2di4 . GatherCmpRed(g_sSampCmp, c2, 0.75);
40   uint4  txval02 = g_tTex2du4 . GatherCmpRed(g_sSampCmp, c2, 0.75);
41
42   float4 txval10 = g_tTex2df4 . GatherCmpGreen(g_sSampCmp, c2, 0.75);
43   int4   txval11 = g_tTex2di4 . GatherCmpGreen(g_sSampCmp, c2, 0.75);
44   uint4  txval12 = g_tTex2du4 . GatherCmpGreen(g_sSampCmp, c2, 0.75);
45
46   float4 txval20 = g_tTex2df4 . GatherCmpBlue(g_sSampCmp, c2, 0.75);
47   int4   txval21 = g_tTex2di4 . GatherCmpBlue(g_sSampCmp, c2, 0.75);
48   uint4  txval22 = g_tTex2du4 . GatherCmpBlue(g_sSampCmp, c2, 0.75);
49
50   float4 txval30 = g_tTex2df4 . GatherCmpAlpha(g_sSampCmp, c2, 0.75);
51   int4   txval31 = g_tTex2di4 . GatherCmpAlpha(g_sSampCmp, c2, 0.75);
52   uint4  txval32 = g_tTex2du4 . GatherCmpAlpha(g_sSampCmp, c2, 0.75);
53
54   float4 txval80 = g_tTex2df4 . GatherCmp(g_sSampCmp, c2, 0.75);
55   int4   txval81 = g_tTex2di4 . GatherCmp(g_sSampCmp, c2, 0.75);
56   uint4  txval82 = g_tTex2du4 . GatherCmp(g_sSampCmp, c2, 0.75);
57
58   // no 3D gathers
59
60   float4 txval40 = g_tTexcdf4 . GatherCmpRed(g_sSampCmp, c3, 0.75);
61   int4   txval41 = g_tTexcdi4 . GatherCmpRed(g_sSampCmp, c3, 0.75);
62   uint4  txval42 = g_tTexcdu4 . GatherCmpRed(g_sSampCmp, c3, 0.75);
63
64   float4 txval50 = g_tTexcdf4 . GatherCmpGreen(g_sSampCmp, c3, 0.75);
65   int4   txval51 = g_tTexcdi4 . GatherCmpGreen(g_sSampCmp, c3, 0.75);
66   uint4  txval52 = g_tTexcdu4 . GatherCmpGreen(g_sSampCmp, c3, 0.75);
67
68   float4 txval60 = g_tTexcdf4 . GatherCmpBlue(g_sSampCmp, c3, 0.75);
69   int4   txval61 = g_tTexcdi4 . GatherCmpBlue(g_sSampCmp, c3, 0.75);
70   uint4  txval62 = g_tTexcdu4 . GatherCmpBlue(g_sSampCmp, c3, 0.75);
71
72   float4 txval70 = g_tTexcdf4 . GatherCmpAlpha(g_sSampCmp, c3, 0.75);
73   int4   txval71 = g_tTexcdi4 . GatherCmpAlpha(g_sSampCmp, c3, 0.75);
74   uint4  txval72 = g_tTexcdu4 . GatherCmpAlpha(g_sSampCmp, c3, 0.75);
75
76   float4 txval90 = g_tTexcdf4 . GatherCmp(g_sSampCmp, c3, 0.75);
77   int4   txval91 = g_tTexcdi4 . GatherCmp(g_sSampCmp, c3, 0.75);
78   uint4  txval92 = g_tTexcdu4 . GatherCmp(g_sSampCmp, c3, 0.75);
79
80   psout.Color = 1.0;
81   psout.Depth = 1.0;
82
83   return psout;
84}
85