1617a3babSopenharmony_ciSamplerState       g_sSamp : register(s0);
2617a3babSopenharmony_ci
3617a3babSopenharmony_ciRWTexture1D <float4> g_tTex1df4 : register(t0);
4617a3babSopenharmony_ciRWTexture1D <int4>   g_tTex1di4;
5617a3babSopenharmony_ciRWTexture1D <uint4>  g_tTex1du4;
6617a3babSopenharmony_ci
7617a3babSopenharmony_ciRWTexture2D <float4> g_tTex2df4;
8617a3babSopenharmony_ciRWTexture2D <int4>   g_tTex2di4;
9617a3babSopenharmony_ciRWTexture2D <uint4>  g_tTex2du4;
10617a3babSopenharmony_ci
11617a3babSopenharmony_ciRWTexture3D <float4> g_tTex3df4;
12617a3babSopenharmony_ciRWTexture3D <int4>   g_tTex3di4;
13617a3babSopenharmony_ciRWTexture3D <uint4>  g_tTex3du4;
14617a3babSopenharmony_ci
15617a3babSopenharmony_ciRWTexture1DArray <float4> g_tTex1df4a;
16617a3babSopenharmony_ciRWTexture1DArray <int4>   g_tTex1di4a;
17617a3babSopenharmony_ciRWTexture1DArray <uint4>  g_tTex1du4a;
18617a3babSopenharmony_ci
19617a3babSopenharmony_ciRWTexture2DArray <float4> g_tTex2df4a;
20617a3babSopenharmony_ciRWTexture2DArray <int4>   g_tTex2di4a;
21617a3babSopenharmony_ciRWTexture2DArray <uint4>  g_tTex2du4a;
22617a3babSopenharmony_ci
23617a3babSopenharmony_ciRWBuffer <float4> g_tBuffF;
24617a3babSopenharmony_ciRWBuffer <int4>   g_tBuffI;
25617a3babSopenharmony_ciRWBuffer <uint4>  g_tBuffU;
26617a3babSopenharmony_ci
27617a3babSopenharmony_cistruct PS_OUTPUT
28617a3babSopenharmony_ci{
29617a3babSopenharmony_ci    float4 Color : SV_Target0;
30617a3babSopenharmony_ci    float  Depth : SV_Depth;
31617a3babSopenharmony_ci};
32617a3babSopenharmony_ci
33617a3babSopenharmony_ciuniform int   c1;
34617a3babSopenharmony_ciuniform int2  c2;
35617a3babSopenharmony_ciuniform int3  c3;
36617a3babSopenharmony_ciuniform int4  c4;
37617a3babSopenharmony_ci
38617a3babSopenharmony_ciuniform int   o1;
39617a3babSopenharmony_ciuniform int2  o2;
40617a3babSopenharmony_ciuniform int3  o3;
41617a3babSopenharmony_ciuniform int4  o4;
42617a3babSopenharmony_ci
43617a3babSopenharmony_ciPS_OUTPUT main()
44617a3babSopenharmony_ci{
45617a3babSopenharmony_ci   PS_OUTPUT psout;
46617a3babSopenharmony_ci
47617a3babSopenharmony_ci   uint MipLevel;
48617a3babSopenharmony_ci   uint WidthU;
49617a3babSopenharmony_ci   uint HeightU;
50617a3babSopenharmony_ci   uint ElementsU;
51617a3babSopenharmony_ci   uint DepthU;
52617a3babSopenharmony_ci   uint NumberOfLevelsU;
53617a3babSopenharmony_ci   uint NumberOfSamplesU;
54617a3babSopenharmony_ci
55617a3babSopenharmony_ci   float WidthF;
56617a3babSopenharmony_ci   float HeightF;
57617a3babSopenharmony_ci   float ElementsF;
58617a3babSopenharmony_ci   float DepthF;
59617a3babSopenharmony_ci   float NumberOfLevelsF;
60617a3babSopenharmony_ci   float NumberOfSamplesF;
61617a3babSopenharmony_ci
62617a3babSopenharmony_ci   // 1D, float/int/uint, uint params
63617a3babSopenharmony_ci   g_tTex1df4.GetDimensions(WidthU);
64617a3babSopenharmony_ci   g_tTex1di4.GetDimensions(WidthU);
65617a3babSopenharmony_ci   g_tTex1du4.GetDimensions(WidthU);
66617a3babSopenharmony_ci
67617a3babSopenharmony_ci   // buffer, float/int/uint, uint params
68617a3babSopenharmony_ci   g_tBuffF.GetDimensions(WidthU);
69617a3babSopenharmony_ci   g_tBuffI.GetDimensions(WidthU);
70617a3babSopenharmony_ci   g_tBuffU.GetDimensions(WidthU);
71617a3babSopenharmony_ci
72617a3babSopenharmony_ci   // 1DArray, float/int/uint, uint params
73617a3babSopenharmony_ci   g_tTex1df4a.GetDimensions(WidthU, ElementsU);
74617a3babSopenharmony_ci   g_tTex1di4a.GetDimensions(WidthU, ElementsU);
75617a3babSopenharmony_ci   g_tTex1du4a.GetDimensions(WidthU, ElementsU);
76617a3babSopenharmony_ci
77617a3babSopenharmony_ci   // 2D, float/int/uint, uint params
78617a3babSopenharmony_ci   g_tTex2df4.GetDimensions(WidthU, HeightU);
79617a3babSopenharmony_ci   g_tTex2di4.GetDimensions(WidthU, HeightU);
80617a3babSopenharmony_ci   g_tTex2du4.GetDimensions(WidthU, HeightU);
81617a3babSopenharmony_ci
82617a3babSopenharmony_ci   // 2DArray, float/int/uint, uint params
83617a3babSopenharmony_ci   g_tTex2df4a.GetDimensions(WidthU, HeightU, ElementsU);
84617a3babSopenharmony_ci   g_tTex2di4a.GetDimensions(WidthU, HeightU, ElementsU);
85617a3babSopenharmony_ci   g_tTex2du4a.GetDimensions(WidthU, HeightU, ElementsU);
86617a3babSopenharmony_ci
87617a3babSopenharmony_ci   // 3D, float/int/uint, uint params
88617a3babSopenharmony_ci   g_tTex3df4.GetDimensions(WidthU, HeightU, DepthU);
89617a3babSopenharmony_ci   g_tTex3di4.GetDimensions(WidthU, HeightU, DepthU);
90617a3babSopenharmony_ci   g_tTex3du4.GetDimensions(WidthU, HeightU, DepthU);
91617a3babSopenharmony_ci
92617a3babSopenharmony_ci   psout.Color = 1.0;
93617a3babSopenharmony_ci   psout.Depth = 1.0;
94617a3babSopenharmony_ci
95617a3babSopenharmony_ci   return psout;
96617a3babSopenharmony_ci}
97