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