c3d6f13c9a4ca2d1444cbc1d7e75dd571e65bc71
[platform/upstream/glslang.git] / Test / baseResults / hlsl.sample.sub-vec4.dx10.frag.out
1 hlsl.sample.sub-vec4.dx10.frag
2 Shader version: 450
3 gl_FragCoord origin is upper left
4 0:? Sequence
5 0:14  Function Definition: @main( ( temp structure{ temp 4-component vector of float Color})
6 0:14    Function Parameters: 
7 0:?     Sequence
8 0:17      Sequence
9 0:17        move second child to first child ( temp float)
10 0:17          'txval10' ( temp float)
11 0:17          Construct float ( temp float)
12 0:?             texture ( temp 4-component vector of float)
13 0:17              Construct combined texture-sampler ( temp sampler1D)
14 0:17                'g_tTex1df1' ( uniform texture1D)
15 0:17                'g_sSamp' (layout( binding=0) uniform sampler)
16 0:17              Constant:
17 0:17                0.100000
18 0:18      Sequence
19 0:18        move second child to first child ( temp 2-component vector of float)
20 0:18          'txval11' ( temp 2-component vector of float)
21 0:18          Construct vec2 ( temp 2-component vector of float)
22 0:?             texture ( temp 4-component vector of float)
23 0:18              Construct combined texture-sampler ( temp sampler1D)
24 0:18                'g_tTex1df2' ( uniform texture1D)
25 0:18                'g_sSamp' (layout( binding=0) uniform sampler)
26 0:18              Constant:
27 0:18                0.200000
28 0:19      Sequence
29 0:19        move second child to first child ( temp 3-component vector of float)
30 0:19          'txval12' ( temp 3-component vector of float)
31 0:19          Construct vec3 ( temp 3-component vector of float)
32 0:?             texture ( temp 4-component vector of float)
33 0:19              Construct combined texture-sampler ( temp sampler1D)
34 0:19                'g_tTex1df3' ( uniform texture1D)
35 0:19                'g_sSamp' (layout( binding=0) uniform sampler)
36 0:19              Constant:
37 0:19                0.200000
38 0:20      Sequence
39 0:20        move second child to first child ( temp 4-component vector of float)
40 0:20          'txval13' ( temp 4-component vector of float)
41 0:20          texture ( temp 4-component vector of float)
42 0:20            Construct combined texture-sampler ( temp sampler1D)
43 0:20              'g_tTex1df4' ( uniform texture1D)
44 0:20              'g_sSamp' (layout( binding=0) uniform sampler)
45 0:20            Constant:
46 0:20              0.200000
47 0:22      move second child to first child ( temp 4-component vector of float)
48 0:22        Color: direct index for structure ( temp 4-component vector of float)
49 0:22          'psout' ( temp structure{ temp 4-component vector of float Color})
50 0:22          Constant:
51 0:22            0 (const int)
52 0:22        Constant:
53 0:22          1.000000
54 0:22          1.000000
55 0:22          1.000000
56 0:22          1.000000
57 0:23      Branch: Return with expression
58 0:23        'psout' ( temp structure{ temp 4-component vector of float Color})
59 0:14  Function Definition: main( ( temp void)
60 0:14    Function Parameters: 
61 0:?     Sequence
62 0:14      Sequence
63 0:14        move second child to first child ( temp 4-component vector of float)
64 0:?           'Color' (layout( location=0) out 4-component vector of float)
65 0:14          Color: direct index for structure ( temp 4-component vector of float)
66 0:14            Function Call: @main( ( temp structure{ temp 4-component vector of float Color})
67 0:14            Constant:
68 0:14              0 (const int)
69 0:?   Linker Objects
70 0:?     'g_sSamp' (layout( binding=0) uniform sampler)
71 0:?     'g_tTex1df1' ( uniform texture1D)
72 0:?     'g_tTex1df2' ( uniform texture1D)
73 0:?     'g_tTex1df3' ( uniform texture1D)
74 0:?     'g_tTex1df4' ( uniform texture1D)
75 0:?     'Color' (layout( location=0) out 4-component vector of float)
76
77
78 Linked fragment stage:
79
80
81 Shader version: 450
82 gl_FragCoord origin is upper left
83 0:? Sequence
84 0:14  Function Definition: @main( ( temp structure{ temp 4-component vector of float Color})
85 0:14    Function Parameters: 
86 0:?     Sequence
87 0:17      Sequence
88 0:17        move second child to first child ( temp float)
89 0:17          'txval10' ( temp float)
90 0:17          Construct float ( temp float)
91 0:?             texture ( temp 4-component vector of float)
92 0:17              Construct combined texture-sampler ( temp sampler1D)
93 0:17                'g_tTex1df1' ( uniform texture1D)
94 0:17                'g_sSamp' (layout( binding=0) uniform sampler)
95 0:17              Constant:
96 0:17                0.100000
97 0:18      Sequence
98 0:18        move second child to first child ( temp 2-component vector of float)
99 0:18          'txval11' ( temp 2-component vector of float)
100 0:18          Construct vec2 ( temp 2-component vector of float)
101 0:?             texture ( temp 4-component vector of float)
102 0:18              Construct combined texture-sampler ( temp sampler1D)
103 0:18                'g_tTex1df2' ( uniform texture1D)
104 0:18                'g_sSamp' (layout( binding=0) uniform sampler)
105 0:18              Constant:
106 0:18                0.200000
107 0:19      Sequence
108 0:19        move second child to first child ( temp 3-component vector of float)
109 0:19          'txval12' ( temp 3-component vector of float)
110 0:19          Construct vec3 ( temp 3-component vector of float)
111 0:?             texture ( temp 4-component vector of float)
112 0:19              Construct combined texture-sampler ( temp sampler1D)
113 0:19                'g_tTex1df3' ( uniform texture1D)
114 0:19                'g_sSamp' (layout( binding=0) uniform sampler)
115 0:19              Constant:
116 0:19                0.200000
117 0:20      Sequence
118 0:20        move second child to first child ( temp 4-component vector of float)
119 0:20          'txval13' ( temp 4-component vector of float)
120 0:20          texture ( temp 4-component vector of float)
121 0:20            Construct combined texture-sampler ( temp sampler1D)
122 0:20              'g_tTex1df4' ( uniform texture1D)
123 0:20              'g_sSamp' (layout( binding=0) uniform sampler)
124 0:20            Constant:
125 0:20              0.200000
126 0:22      move second child to first child ( temp 4-component vector of float)
127 0:22        Color: direct index for structure ( temp 4-component vector of float)
128 0:22          'psout' ( temp structure{ temp 4-component vector of float Color})
129 0:22          Constant:
130 0:22            0 (const int)
131 0:22        Constant:
132 0:22          1.000000
133 0:22          1.000000
134 0:22          1.000000
135 0:22          1.000000
136 0:23      Branch: Return with expression
137 0:23        'psout' ( temp structure{ temp 4-component vector of float Color})
138 0:14  Function Definition: main( ( temp void)
139 0:14    Function Parameters: 
140 0:?     Sequence
141 0:14      Sequence
142 0:14        move second child to first child ( temp 4-component vector of float)
143 0:?           'Color' (layout( location=0) out 4-component vector of float)
144 0:14          Color: direct index for structure ( temp 4-component vector of float)
145 0:14            Function Call: @main( ( temp structure{ temp 4-component vector of float Color})
146 0:14            Constant:
147 0:14              0 (const int)
148 0:?   Linker Objects
149 0:?     'g_sSamp' (layout( binding=0) uniform sampler)
150 0:?     'g_tTex1df1' ( uniform texture1D)
151 0:?     'g_tTex1df2' ( uniform texture1D)
152 0:?     'g_tTex1df3' ( uniform texture1D)
153 0:?     'g_tTex1df4' ( uniform texture1D)
154 0:?     'Color' (layout( location=0) out 4-component vector of float)
155
156 // Module Version 10000
157 // Generated by (magic number): 80001
158 // Id's are bound by 72
159
160                               Capability Shader
161                               Capability Sampled1D
162                1:             ExtInstImport  "GLSL.std.450"
163                               MemoryModel Logical GLSL450
164                               EntryPoint Fragment 4  "main" 69
165                               ExecutionMode 4 OriginUpperLeft
166                               Name 4  "main"
167                               Name 8  "PS_OUTPUT"
168                               MemberName 8(PS_OUTPUT) 0  "Color"
169                               Name 10  "@main("
170                               Name 13  "txval10"
171                               Name 16  "g_tTex1df1"
172                               Name 20  "g_sSamp"
173                               Name 29  "txval11"
174                               Name 30  "g_tTex1df2"
175                               Name 41  "txval12"
176                               Name 42  "g_tTex1df3"
177                               Name 52  "txval13"
178                               Name 53  "g_tTex1df4"
179                               Name 59  "psout"
180                               Name 69  "Color"
181                               Decorate 16(g_tTex1df1) DescriptorSet 0
182                               Decorate 20(g_sSamp) DescriptorSet 0
183                               Decorate 20(g_sSamp) Binding 0
184                               Decorate 30(g_tTex1df2) DescriptorSet 0
185                               Decorate 42(g_tTex1df3) DescriptorSet 0
186                               Decorate 53(g_tTex1df4) DescriptorSet 0
187                               Decorate 69(Color) Location 0
188                2:             TypeVoid
189                3:             TypeFunction 2
190                6:             TypeFloat 32
191                7:             TypeVector 6(float) 4
192     8(PS_OUTPUT):             TypeStruct 7(fvec4)
193                9:             TypeFunction 8(PS_OUTPUT)
194               12:             TypePointer Function 6(float)
195               14:             TypeImage 6(float) 1D sampled format:Unknown
196               15:             TypePointer UniformConstant 14
197   16(g_tTex1df1):     15(ptr) Variable UniformConstant
198               18:             TypeSampler
199               19:             TypePointer UniformConstant 18
200      20(g_sSamp):     19(ptr) Variable UniformConstant
201               22:             TypeSampledImage 14
202               24:    6(float) Constant 1036831949
203               27:             TypeVector 6(float) 2
204               28:             TypePointer Function 27(fvec2)
205   30(g_tTex1df2):     15(ptr) Variable UniformConstant
206               34:    6(float) Constant 1045220557
207               39:             TypeVector 6(float) 3
208               40:             TypePointer Function 39(fvec3)
209   42(g_tTex1df3):     15(ptr) Variable UniformConstant
210               51:             TypePointer Function 7(fvec4)
211   53(g_tTex1df4):     15(ptr) Variable UniformConstant
212               58:             TypePointer Function 8(PS_OUTPUT)
213               60:             TypeInt 32 1
214               61:     60(int) Constant 0
215               62:    6(float) Constant 1065353216
216               63:    7(fvec4) ConstantComposite 62 62 62 62
217               68:             TypePointer Output 7(fvec4)
218        69(Color):     68(ptr) Variable Output
219          4(main):           2 Function None 3
220                5:             Label
221               70:8(PS_OUTPUT) FunctionCall 10(@main()
222               71:    7(fvec4) CompositeExtract 70 0
223                               Store 69(Color) 71
224                               Return
225                               FunctionEnd
226       10(@main():8(PS_OUTPUT) Function None 9
227               11:             Label
228      13(txval10):     12(ptr) Variable Function
229      29(txval11):     28(ptr) Variable Function
230      41(txval12):     40(ptr) Variable Function
231      52(txval13):     51(ptr) Variable Function
232        59(psout):     58(ptr) Variable Function
233               17:          14 Load 16(g_tTex1df1)
234               21:          18 Load 20(g_sSamp)
235               23:          22 SampledImage 17 21
236               25:    7(fvec4) ImageSampleImplicitLod 23 24
237               26:    6(float) CompositeExtract 25 0
238                               Store 13(txval10) 26
239               31:          14 Load 30(g_tTex1df2)
240               32:          18 Load 20(g_sSamp)
241               33:          22 SampledImage 31 32
242               35:    7(fvec4) ImageSampleImplicitLod 33 34
243               36:    6(float) CompositeExtract 35 0
244               37:    6(float) CompositeExtract 35 1
245               38:   27(fvec2) CompositeConstruct 36 37
246                               Store 29(txval11) 38
247               43:          14 Load 42(g_tTex1df3)
248               44:          18 Load 20(g_sSamp)
249               45:          22 SampledImage 43 44
250               46:    7(fvec4) ImageSampleImplicitLod 45 34
251               47:    6(float) CompositeExtract 46 0
252               48:    6(float) CompositeExtract 46 1
253               49:    6(float) CompositeExtract 46 2
254               50:   39(fvec3) CompositeConstruct 47 48 49
255                               Store 41(txval12) 50
256               54:          14 Load 53(g_tTex1df4)
257               55:          18 Load 20(g_sSamp)
258               56:          22 SampledImage 54 55
259               57:    7(fvec4) ImageSampleImplicitLod 56 34
260                               Store 52(txval13) 57
261               64:     51(ptr) AccessChain 59(psout) 61
262                               Store 64 63
263               65:8(PS_OUTPUT) Load 59(psout)
264                               ReturnValue 65
265                               FunctionEnd