Merge pull request #3031 from rg3igalia/sub-group-size-arb-flat-fix
[platform/upstream/glslang.git] / Test / spv.queryL.frag
1 #version 430 core
2
3 uniform sampler1D samp1D;\r
4 uniform isampler2D isamp2D;\r
5 uniform usampler2D usamp2D;\r
6 uniform isampler3D isamp3D;\r
7 uniform usampler3D usamp3D;\r
8 uniform samplerCube sampCube; \r
9 uniform isamplerCube isampCube; \r
10 uniform isampler1DArray isamp1DA;\r
11 uniform sampler2DArray samp2DA;\r
12 uniform usampler2DArray usamp2DA;\r
13 uniform isamplerCubeArray isampCubeA;\r
14 uniform usamplerCubeArray usampCubeA;\r
15 \r
16 uniform sampler1DShadow samp1Ds;\r
17 uniform sampler2DShadow samp2Ds;\r
18 uniform samplerCubeShadow sampCubes;\r
19 uniform sampler1DArrayShadow samp1DAs;\r
20 uniform sampler2DArrayShadow samp2DAs;\r
21 uniform samplerCubeArrayShadow sampCubeAs;\r
22 \r
23 uniform samplerBuffer sampBuf;\r
24 uniform sampler2DRect sampRect;\r
25 \r
26 void main()\r
27 {\r
28     vec2 lod;\r
29     float pf;\r
30     vec2 pf2;\r
31     vec3 pf3;\r
32 \r
33     lod = textureQueryLod(samp1D, pf);\r
34     lod += textureQueryLod(isamp2D, pf2);\r
35     lod += textureQueryLod(usamp3D, pf3);\r
36     lod += textureQueryLod(sampCube, pf3);\r
37     lod += textureQueryLod(isamp1DA, pf);\r
38     lod += textureQueryLod(usamp2DA, pf2);\r
39     lod += textureQueryLod(isampCubeA, pf3);\r
40 \r
41     lod += textureQueryLod(samp1Ds, pf);\r
42     lod += textureQueryLod(samp2Ds, pf2);\r
43     lod += textureQueryLod(sampCubes, pf3);\r
44     lod += textureQueryLod(samp1DAs, pf);\r
45     lod += textureQueryLod(samp2DAs, pf2);\r
46     lod += textureQueryLod(sampCubeAs, pf3);\r
47 \r
48     int levels;\r
49 \r
50     levels = textureQueryLevels(samp1D);\r
51     levels += textureQueryLevels(usamp2D);\r
52     levels += textureQueryLevels(isamp3D);\r
53     levels += textureQueryLevels(isampCube);\r
54     levels += textureQueryLevels(isamp1DA);\r
55     levels += textureQueryLevels(samp2DA);\r
56     levels += textureQueryLevels(usampCubeA);\r
57 \r
58     levels = textureQueryLevels(samp1Ds);\r
59     levels += textureQueryLevels(samp2Ds);\r
60     levels += textureQueryLevels(sampCubes);\r
61     levels += textureQueryLevels(samp1DAs);\r
62     levels += textureQueryLevels(samp2DAs);\r
63     levels += textureQueryLevels(sampCubeAs);\r
64 }\r