1617a3babSopenharmony_ciSamplerComparisonState     g_sSampCmp : register(s0);
2617a3babSopenharmony_ci
3617a3babSopenharmony_ciTexture1D          g_tTex1df4a : register(t1);
4617a3babSopenharmony_ci
5617a3babSopenharmony_ciuniform Texture1D <float4> g_tTex1df4 : register(t0);
6617a3babSopenharmony_ciTexture1D <int4>   g_tTex1di4;
7617a3babSopenharmony_ciTexture1D <uint4>  g_tTex1du4;
8617a3babSopenharmony_ci
9617a3babSopenharmony_ciTexture2D <float4> g_tTex2df4;
10617a3babSopenharmony_ciTexture2D <int4>   g_tTex2di4;
11617a3babSopenharmony_ciTexture2D <uint4>  g_tTex2du4;
12617a3babSopenharmony_ci
13617a3babSopenharmony_ciTexture3D <float4> g_tTex3df4;
14617a3babSopenharmony_ciTexture3D <int4>   g_tTex3di4;
15617a3babSopenharmony_ciTexture3D <uint4>  g_tTex3du4;
16617a3babSopenharmony_ci
17617a3babSopenharmony_ciTextureCube <float4> g_tTexcdf4;
18617a3babSopenharmony_ciTextureCube <int4>   g_tTexcdi4;
19617a3babSopenharmony_ciTextureCube <uint4>  g_tTexcdu4;
20617a3babSopenharmony_ci
21617a3babSopenharmony_cistruct PS_OUTPUT
22617a3babSopenharmony_ci{
23617a3babSopenharmony_ci    float4 Color : SV_Target0;
24617a3babSopenharmony_ci    float  Depth : SV_Depth;
25617a3babSopenharmony_ci};
26617a3babSopenharmony_ci
27617a3babSopenharmony_ciuniform float  c1;
28617a3babSopenharmony_ciuniform float2 c2;
29617a3babSopenharmony_ciuniform float3 c3;
30617a3babSopenharmony_ciuniform float4 c4;
31617a3babSopenharmony_ci
32617a3babSopenharmony_ciPS_OUTPUT main()
33617a3babSopenharmony_ci{
34617a3babSopenharmony_ci   PS_OUTPUT psout;
35617a3babSopenharmony_ci
36617a3babSopenharmony_ci   // no 1D gathers
37617a3babSopenharmony_ci
38617a3babSopenharmony_ci   float4 txval00 = g_tTex2df4 . GatherCmpRed(g_sSampCmp, c2, 0.75);
39617a3babSopenharmony_ci   int4   txval01 = g_tTex2di4 . GatherCmpRed(g_sSampCmp, c2, 0.75);
40617a3babSopenharmony_ci   uint4  txval02 = g_tTex2du4 . GatherCmpRed(g_sSampCmp, c2, 0.75);
41617a3babSopenharmony_ci
42617a3babSopenharmony_ci   float4 txval10 = g_tTex2df4 . GatherCmpGreen(g_sSampCmp, c2, 0.75);
43617a3babSopenharmony_ci   int4   txval11 = g_tTex2di4 . GatherCmpGreen(g_sSampCmp, c2, 0.75);
44617a3babSopenharmony_ci   uint4  txval12 = g_tTex2du4 . GatherCmpGreen(g_sSampCmp, c2, 0.75);
45617a3babSopenharmony_ci
46617a3babSopenharmony_ci   float4 txval20 = g_tTex2df4 . GatherCmpBlue(g_sSampCmp, c2, 0.75);
47617a3babSopenharmony_ci   int4   txval21 = g_tTex2di4 . GatherCmpBlue(g_sSampCmp, c2, 0.75);
48617a3babSopenharmony_ci   uint4  txval22 = g_tTex2du4 . GatherCmpBlue(g_sSampCmp, c2, 0.75);
49617a3babSopenharmony_ci
50617a3babSopenharmony_ci   float4 txval30 = g_tTex2df4 . GatherCmpAlpha(g_sSampCmp, c2, 0.75);
51617a3babSopenharmony_ci   int4   txval31 = g_tTex2di4 . GatherCmpAlpha(g_sSampCmp, c2, 0.75);
52617a3babSopenharmony_ci   uint4  txval32 = g_tTex2du4 . GatherCmpAlpha(g_sSampCmp, c2, 0.75);
53617a3babSopenharmony_ci
54617a3babSopenharmony_ci   float4 txval80 = g_tTex2df4 . GatherCmp(g_sSampCmp, c2, 0.75);
55617a3babSopenharmony_ci   int4   txval81 = g_tTex2di4 . GatherCmp(g_sSampCmp, c2, 0.75);
56617a3babSopenharmony_ci   uint4  txval82 = g_tTex2du4 . GatherCmp(g_sSampCmp, c2, 0.75);
57617a3babSopenharmony_ci
58617a3babSopenharmony_ci   // no 3D gathers
59617a3babSopenharmony_ci
60617a3babSopenharmony_ci   float4 txval40 = g_tTexcdf4 . GatherCmpRed(g_sSampCmp, c3, 0.75);
61617a3babSopenharmony_ci   int4   txval41 = g_tTexcdi4 . GatherCmpRed(g_sSampCmp, c3, 0.75);
62617a3babSopenharmony_ci   uint4  txval42 = g_tTexcdu4 . GatherCmpRed(g_sSampCmp, c3, 0.75);
63617a3babSopenharmony_ci
64617a3babSopenharmony_ci   float4 txval50 = g_tTexcdf4 . GatherCmpGreen(g_sSampCmp, c3, 0.75);
65617a3babSopenharmony_ci   int4   txval51 = g_tTexcdi4 . GatherCmpGreen(g_sSampCmp, c3, 0.75);
66617a3babSopenharmony_ci   uint4  txval52 = g_tTexcdu4 . GatherCmpGreen(g_sSampCmp, c3, 0.75);
67617a3babSopenharmony_ci
68617a3babSopenharmony_ci   float4 txval60 = g_tTexcdf4 . GatherCmpBlue(g_sSampCmp, c3, 0.75);
69617a3babSopenharmony_ci   int4   txval61 = g_tTexcdi4 . GatherCmpBlue(g_sSampCmp, c3, 0.75);
70617a3babSopenharmony_ci   uint4  txval62 = g_tTexcdu4 . GatherCmpBlue(g_sSampCmp, c3, 0.75);
71617a3babSopenharmony_ci
72617a3babSopenharmony_ci   float4 txval70 = g_tTexcdf4 . GatherCmpAlpha(g_sSampCmp, c3, 0.75);
73617a3babSopenharmony_ci   int4   txval71 = g_tTexcdi4 . GatherCmpAlpha(g_sSampCmp, c3, 0.75);
74617a3babSopenharmony_ci   uint4  txval72 = g_tTexcdu4 . GatherCmpAlpha(g_sSampCmp, c3, 0.75);
75617a3babSopenharmony_ci
76617a3babSopenharmony_ci   float4 txval90 = g_tTexcdf4 . GatherCmp(g_sSampCmp, c3, 0.75);
77617a3babSopenharmony_ci   int4   txval91 = g_tTexcdi4 . GatherCmp(g_sSampCmp, c3, 0.75);
78617a3babSopenharmony_ci   uint4  txval92 = g_tTexcdu4 . GatherCmp(g_sSampCmp, c3, 0.75);
79617a3babSopenharmony_ci
80617a3babSopenharmony_ci   psout.Color = 1.0;
81617a3babSopenharmony_ci   psout.Depth = 1.0;
82617a3babSopenharmony_ci
83617a3babSopenharmony_ci   return psout;
84617a3babSopenharmony_ci}
85