1 hlsl.intrinsics.promote.outputs.frag
3 gl_FragCoord origin is upper left
5 0:20 Function Definition: @main( ( temp structure{ temp 4-component vector of float color})
6 0:20 Function Parameters:
8 0:37 clamp ( temp float)
9 0:37 fpos: direct index for structure ( uniform float)
10 0:37 'anon@0' (layout( row_major std140) uniform block{ uniform int i, uniform uint u, uniform float f, uniform bool b, uniform 2-component vector of int i2, uniform 2-component vector of uint u2, uniform 2-component vector of float f2, uniform 2-component vector of bool b2, uniform uint upos, uniform float fpos})
18 0:40 move second child to first child ( temp uint)
19 0:40 'sizeQueryTemp' ( temp uint)
20 0:40 textureSize ( temp uint)
21 0:40 'g_tTex1df4' ( uniform texture1D)
24 0:40 move second child to first child ( temp int)
25 0:40 'WidthI' ( temp int)
26 0:40 Convert uint to int ( temp int)
27 0:40 'sizeQueryTemp' ( temp uint)
29 0:41 move second child to first child ( temp uint)
30 0:41 'sizeQueryTemp' ( temp uint)
31 0:41 textureSize ( temp uint)
32 0:41 'g_tTex1df4' ( uniform texture1D)
35 0:41 move second child to first child ( temp int)
36 0:41 'WidthI' ( temp int)
37 0:41 Convert uint to int ( temp int)
38 0:41 'sizeQueryTemp' ( temp uint)
39 0:41 move second child to first child ( temp uint)
40 0:41 'NumberOfLevelsU' ( temp uint)
41 0:41 textureQueryLevels ( temp uint)
42 0:41 'g_tTex1df4' ( uniform texture1D)
44 0:42 move second child to first child ( temp uint)
45 0:42 'sizeQueryTemp' ( temp uint)
46 0:42 textureSize ( temp uint)
47 0:42 'g_tTex1df4' ( uniform texture1D)
50 0:42 move second child to first child ( temp uint)
51 0:42 'WidthU' ( temp uint)
52 0:42 'sizeQueryTemp' ( temp uint)
53 0:42 move second child to first child ( temp int)
54 0:42 'NumberOfLevelsI' ( temp int)
55 0:42 Convert uint to int ( temp int)
56 0:42 textureQueryLevels ( temp uint)
57 0:42 'g_tTex1df4' ( uniform texture1D)
59 0:43 move second child to first child ( temp uint)
60 0:43 'sizeQueryTemp' ( temp uint)
61 0:43 textureSize ( temp uint)
62 0:43 'g_tTex1df4' ( uniform texture1D)
65 0:43 move second child to first child ( temp int)
66 0:43 'WidthI' ( temp int)
67 0:43 Convert uint to int ( temp int)
68 0:43 'sizeQueryTemp' ( temp uint)
69 0:43 move second child to first child ( temp int)
70 0:43 'NumberOfLevelsI' ( temp int)
71 0:43 Convert uint to int ( temp int)
72 0:43 textureQueryLevels ( temp uint)
73 0:43 'g_tTex1df4' ( uniform texture1D)
74 0:47 move second child to first child ( temp 4-component vector of float)
75 0:47 color: direct index for structure ( temp 4-component vector of float)
76 0:47 'ps_output' ( temp structure{ temp 4-component vector of float color})
84 0:48 Branch: Return with expression
85 0:48 'ps_output' ( temp structure{ temp 4-component vector of float color})
86 0:20 Function Definition: main( ( temp void)
87 0:20 Function Parameters:
90 0:20 move second child to first child ( temp 4-component vector of float)
91 0:? '@entryPointOutput.color' (layout( location=0) out 4-component vector of float)
92 0:20 color: direct index for structure ( temp 4-component vector of float)
93 0:20 Function Call: @main( ( temp structure{ temp 4-component vector of float color})
97 0:? 'anon@0' (layout( row_major std140) uniform block{ uniform int i, uniform uint u, uniform float f, uniform bool b, uniform 2-component vector of int i2, uniform 2-component vector of uint u2, uniform 2-component vector of float f2, uniform 2-component vector of bool b2, uniform uint upos, uniform float fpos})
98 0:? 'g_tTexbfs' (layout( r32f) uniform textureBuffer)
99 0:? 'g_tTex1df4' ( uniform texture1D)
100 0:? '@entryPointOutput.color' (layout( location=0) out 4-component vector of float)
103 Linked fragment stage:
107 gl_FragCoord origin is upper left
109 0:20 Function Definition: @main( ( temp structure{ temp 4-component vector of float color})
110 0:20 Function Parameters:
112 0:37 clamp ( temp float)
113 0:37 fpos: direct index for structure ( uniform float)
114 0:37 'anon@0' (layout( row_major std140) uniform block{ uniform int i, uniform uint u, uniform float f, uniform bool b, uniform 2-component vector of int i2, uniform 2-component vector of uint u2, uniform 2-component vector of float f2, uniform 2-component vector of bool b2, uniform uint upos, uniform float fpos})
122 0:40 move second child to first child ( temp uint)
123 0:40 'sizeQueryTemp' ( temp uint)
124 0:40 textureSize ( temp uint)
125 0:40 'g_tTex1df4' ( uniform texture1D)
128 0:40 move second child to first child ( temp int)
129 0:40 'WidthI' ( temp int)
130 0:40 Convert uint to int ( temp int)
131 0:40 'sizeQueryTemp' ( temp uint)
133 0:41 move second child to first child ( temp uint)
134 0:41 'sizeQueryTemp' ( temp uint)
135 0:41 textureSize ( temp uint)
136 0:41 'g_tTex1df4' ( uniform texture1D)
139 0:41 move second child to first child ( temp int)
140 0:41 'WidthI' ( temp int)
141 0:41 Convert uint to int ( temp int)
142 0:41 'sizeQueryTemp' ( temp uint)
143 0:41 move second child to first child ( temp uint)
144 0:41 'NumberOfLevelsU' ( temp uint)
145 0:41 textureQueryLevels ( temp uint)
146 0:41 'g_tTex1df4' ( uniform texture1D)
148 0:42 move second child to first child ( temp uint)
149 0:42 'sizeQueryTemp' ( temp uint)
150 0:42 textureSize ( temp uint)
151 0:42 'g_tTex1df4' ( uniform texture1D)
154 0:42 move second child to first child ( temp uint)
155 0:42 'WidthU' ( temp uint)
156 0:42 'sizeQueryTemp' ( temp uint)
157 0:42 move second child to first child ( temp int)
158 0:42 'NumberOfLevelsI' ( temp int)
159 0:42 Convert uint to int ( temp int)
160 0:42 textureQueryLevels ( temp uint)
161 0:42 'g_tTex1df4' ( uniform texture1D)
163 0:43 move second child to first child ( temp uint)
164 0:43 'sizeQueryTemp' ( temp uint)
165 0:43 textureSize ( temp uint)
166 0:43 'g_tTex1df4' ( uniform texture1D)
169 0:43 move second child to first child ( temp int)
170 0:43 'WidthI' ( temp int)
171 0:43 Convert uint to int ( temp int)
172 0:43 'sizeQueryTemp' ( temp uint)
173 0:43 move second child to first child ( temp int)
174 0:43 'NumberOfLevelsI' ( temp int)
175 0:43 Convert uint to int ( temp int)
176 0:43 textureQueryLevels ( temp uint)
177 0:43 'g_tTex1df4' ( uniform texture1D)
178 0:47 move second child to first child ( temp 4-component vector of float)
179 0:47 color: direct index for structure ( temp 4-component vector of float)
180 0:47 'ps_output' ( temp structure{ temp 4-component vector of float color})
188 0:48 Branch: Return with expression
189 0:48 'ps_output' ( temp structure{ temp 4-component vector of float color})
190 0:20 Function Definition: main( ( temp void)
191 0:20 Function Parameters:
194 0:20 move second child to first child ( temp 4-component vector of float)
195 0:? '@entryPointOutput.color' (layout( location=0) out 4-component vector of float)
196 0:20 color: direct index for structure ( temp 4-component vector of float)
197 0:20 Function Call: @main( ( temp structure{ temp 4-component vector of float color})
201 0:? 'anon@0' (layout( row_major std140) uniform block{ uniform int i, uniform uint u, uniform float f, uniform bool b, uniform 2-component vector of int i2, uniform 2-component vector of uint u2, uniform 2-component vector of float f2, uniform 2-component vector of bool b2, uniform uint upos, uniform float fpos})
202 0:? 'g_tTexbfs' (layout( r32f) uniform textureBuffer)
203 0:? 'g_tTex1df4' ( uniform texture1D)
204 0:? '@entryPointOutput.color' (layout( location=0) out 4-component vector of float)
206 // Module Version 10000
207 // Generated by (magic number): 8000b
208 // Id's are bound by 80
212 Capability SampledBuffer
213 Capability ImageQuery
214 1: ExtInstImport "GLSL.std.450"
215 MemoryModel Logical GLSL450
216 EntryPoint Fragment 4 "main" 74
217 ExecutionMode 4 OriginUpperLeft
221 MemberName 8(PS_OUTPUT) 0 "color"
224 MemberName 17($Global) 0 "i"
225 MemberName 17($Global) 1 "u"
226 MemberName 17($Global) 2 "f"
227 MemberName 17($Global) 3 "b"
228 MemberName 17($Global) 4 "i2"
229 MemberName 17($Global) 5 "u2"
230 MemberName 17($Global) 6 "f2"
231 MemberName 17($Global) 7 "b2"
232 MemberName 17($Global) 8 "upos"
233 MemberName 17($Global) 9 "fpos"
235 Name 28 "sizeQueryTemp"
238 Name 39 "sizeQueryTemp"
239 Name 45 "NumberOfLevelsU"
240 Name 48 "sizeQueryTemp"
242 Name 53 "NumberOfLevelsI"
243 Name 57 "sizeQueryTemp"
245 Name 74 "@entryPointOutput.color"
247 MemberDecorate 17($Global) 0 Offset 0
248 MemberDecorate 17($Global) 1 Offset 4
249 MemberDecorate 17($Global) 2 Offset 8
250 MemberDecorate 17($Global) 3 Offset 12
251 MemberDecorate 17($Global) 4 Offset 16
252 MemberDecorate 17($Global) 5 Offset 24
253 MemberDecorate 17($Global) 6 Offset 32
254 MemberDecorate 17($Global) 7 Offset 40
255 MemberDecorate 17($Global) 8 Offset 48
256 MemberDecorate 17($Global) 9 Offset 52
257 Decorate 17($Global) Block
258 Decorate 19 DescriptorSet 0
259 Decorate 19 Binding 0
260 Decorate 31(g_tTex1df4) DescriptorSet 0
261 Decorate 31(g_tTex1df4) Binding 1
262 Decorate 74(@entryPointOutput.color) Location 0
263 Decorate 79(g_tTexbfs) DescriptorSet 0
264 Decorate 79(g_tTexbfs) Binding 0
268 7: TypeVector 6(float) 4
269 8(PS_OUTPUT): TypeStruct 7(fvec4)
270 9: TypeFunction 8(PS_OUTPUT)
273 14: TypeVector 12(int) 2
274 15: TypeVector 13(int) 2
275 16: TypeVector 6(float) 2
276 17($Global): TypeStruct 12(int) 13(int) 6(float) 13(int) 14(ivec2) 15(ivec2) 16(fvec2) 15(ivec2) 13(int) 6(float)
277 18: TypePointer Uniform 17($Global)
278 19: 18(ptr) Variable Uniform
279 20: 12(int) Constant 9
280 21: TypePointer Uniform 6(float)
281 24: 6(float) Constant 0
282 25: 6(float) Constant 1065353216
283 27: TypePointer Function 13(int)
284 29: TypeImage 6(float) 1D sampled format:Unknown
285 30: TypePointer UniformConstant 29
286 31(g_tTex1df4): 30(ptr) Variable UniformConstant
287 33: 12(int) Constant 0
288 35: TypePointer Function 12(int)
289 41: 13(int) Constant 6
290 65: TypePointer Function 8(PS_OUTPUT)
291 67: 7(fvec4) ConstantComposite 24 24 24 24
292 68: TypePointer Function 7(fvec4)
293 73: TypePointer Output 7(fvec4)
294 74(@entryPointOutput.color): 73(ptr) Variable Output
295 77: TypeImage 6(float) Buffer sampled format:R32f
296 78: TypePointer UniformConstant 77
297 79(g_tTexbfs): 78(ptr) Variable UniformConstant
298 4(main): 2 Function None 3
300 75:8(PS_OUTPUT) FunctionCall 10(@main()
301 76: 7(fvec4) CompositeExtract 75 0
302 Store 74(@entryPointOutput.color) 76
305 10(@main():8(PS_OUTPUT) Function None 9
307 28(sizeQueryTemp): 27(ptr) Variable Function
308 36(WidthI): 35(ptr) Variable Function
309 39(sizeQueryTemp): 27(ptr) Variable Function
310 45(NumberOfLevelsU): 27(ptr) Variable Function
311 48(sizeQueryTemp): 27(ptr) Variable Function
312 51(WidthU): 27(ptr) Variable Function
313 53(NumberOfLevelsI): 35(ptr) Variable Function
314 57(sizeQueryTemp): 27(ptr) Variable Function
315 66(ps_output): 65(ptr) Variable Function
316 22: 21(ptr) AccessChain 19 20
318 26: 6(float) ExtInst 1(GLSL.std.450) 43(FClamp) 23 24 25
319 32: 29 Load 31(g_tTex1df4)
320 34: 13(int) ImageQuerySizeLod 32 33
321 Store 28(sizeQueryTemp) 34
322 37: 13(int) Load 28(sizeQueryTemp)
323 38: 12(int) Bitcast 37
325 40: 29 Load 31(g_tTex1df4)
326 42: 13(int) ImageQuerySizeLod 40 41
327 Store 39(sizeQueryTemp) 42
328 43: 13(int) Load 39(sizeQueryTemp)
329 44: 12(int) Bitcast 43
331 46: 29 Load 31(g_tTex1df4)
332 47: 13(int) ImageQueryLevels 46
333 Store 45(NumberOfLevelsU) 47
334 49: 29 Load 31(g_tTex1df4)
335 50: 13(int) ImageQuerySizeLod 49 41
336 Store 48(sizeQueryTemp) 50
337 52: 13(int) Load 48(sizeQueryTemp)
339 54: 29 Load 31(g_tTex1df4)
340 55: 13(int) ImageQueryLevels 54
341 56: 12(int) Bitcast 55
342 Store 53(NumberOfLevelsI) 56
343 58: 29 Load 31(g_tTex1df4)
344 59: 13(int) ImageQuerySizeLod 58 41
345 Store 57(sizeQueryTemp) 59
346 60: 13(int) Load 57(sizeQueryTemp)
347 61: 12(int) Bitcast 60
349 62: 29 Load 31(g_tTex1df4)
350 63: 13(int) ImageQueryLevels 62
351 64: 12(int) Bitcast 63
352 Store 53(NumberOfLevelsI) 64
353 69: 68(ptr) AccessChain 66(ps_output) 33
355 70:8(PS_OUTPUT) Load 66(ps_output)