blob: 1fbbd98ab1b59ac966a3c24167dbde03748c4648 [file] [log] [blame]
LoopDawg9249c702016-07-12 20:44:32 -06001hlsl.inoutquals.frag
John Kessenich6fa17642017-04-07 15:33:08 -06002Shader version: 500
LoopDawg9249c702016-07-12 20:44:32 -06003gl_FragCoord origin is upper left
40:? Sequence
xavierb1d97532017-06-20 07:49:22 +020050:8 Function Definition: MyFunc(f1;f1;f1;f1; ( temp void)
LoopDawg9249c702016-07-12 20:44:32 -060060:8 Function Parameters:
John Kessenich71c100d2017-03-14 19:43:13 -060070:8 'x' ( in float)
80:8 'y' ( out float)
90:8 'z' ( inout float)
xavierb1d97532017-06-20 07:49:22 +0200100:8 'w' ( inout float)
LoopDawg9249c702016-07-12 20:44:32 -0600110:? Sequence
John Kessenich71c100d2017-03-14 19:43:13 -0600120:9 move second child to first child ( temp float)
130:9 'y' ( out float)
140:9 'x' ( in float)
150:10 move second child to first child ( temp float)
160:10 'z' ( inout float)
170:10 'y' ( out float)
180:11 move second child to first child ( temp float)
190:11 'x' ( in float)
LoopDawg9249c702016-07-12 20:44:32 -0600200:11 Constant:
210:11 -1.000000
xavierb1d97532017-06-20 07:49:22 +0200220:12 multiply second child into first child ( temp float)
230:12 'w' ( inout float)
240:12 Constant:
250:12 1.000000
260:16 Function Definition: @main(vf4;i1; ( temp structure{ temp 4-component vector of float Color, temp float Depth})
270:16 Function Parameters:
280:16 'inpos' ( in 4-component vector of float)
290:16 'sampleMask' ( out int)
LoopDawg9249c702016-07-12 20:44:32 -0600300:? Sequence
xavierb1d97532017-06-20 07:49:22 +0200310:19 Sequence
320:19 move second child to first child ( temp float)
330:19 'x' ( temp float)
340:19 Constant:
350:19 7.000000
360:19 move second child to first child ( temp float)
370:19 'z' ( temp float)
380:19 Constant:
390:19 3.000000
400:20 Function Call: MyFunc(f1;f1;f1;f1; ( temp void)
410:20 'x' ( temp float)
420:20 'y' ( temp float)
430:20 'z' ( temp float)
440:20 direct index ( temp float)
450:20 'inpos' ( in 4-component vector of float)
460:20 Constant:
470:20 3 (const int)
480:22 move second child to first child ( temp 4-component vector of float)
490:22 Color: direct index for structure ( temp 4-component vector of float)
John Kessenich71c100d2017-03-14 19:43:13 -0600500:22 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
LoopDawg9249c702016-07-12 20:44:32 -0600510:22 Constant:
xavierb1d97532017-06-20 07:49:22 +0200520:22 0 (const int)
530:? Construct vec4 ( temp 4-component vector of float)
540:22 'x' ( temp float)
550:22 'y' ( temp float)
560:22 'z' ( temp float)
LoopDawg9249c702016-07-12 20:44:32 -0600570:22 Constant:
xavierb1d97532017-06-20 07:49:22 +0200580:22 1.000000
590:23 move second child to first child ( temp float)
600:23 Depth: direct index for structure ( temp float)
610:23 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
620:23 Constant:
630:23 1 (const int)
640:23 direct index ( temp float)
650:23 'inpos' ( in 4-component vector of float)
660:23 Constant:
670:23 3 (const int)
680:25 Branch: Return with expression
690:25 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
700:16 Function Definition: main( ( temp void)
710:16 Function Parameters:
John Kessenich02467d82017-01-19 15:41:47 -0700720:? Sequence
xavierb1d97532017-06-20 07:49:22 +0200730:16 move second child to first child ( temp 4-component vector of float)
John Kessenich71c100d2017-03-14 19:43:13 -0600740:? 'inpos' ( temp 4-component vector of float)
750:? 'inpos' ( noperspective in 4-component vector of float FragCoord)
xavierb1d97532017-06-20 07:49:22 +0200760:16 Sequence
770:16 move second child to first child ( temp structure{ temp 4-component vector of float Color, temp float Depth})
780:16 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
790:16 Function Call: @main(vf4;i1; ( temp structure{ temp 4-component vector of float Color, temp float Depth})
John Kessenich71c100d2017-03-14 19:43:13 -0600800:? 'inpos' ( temp 4-component vector of float)
810:? 'sampleMask' ( temp int)
xavierb1d97532017-06-20 07:49:22 +0200820:16 move second child to first child ( temp 4-component vector of float)
John Kesseniche516d432017-08-09 14:29:29 -0600830:? '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
xavierb1d97532017-06-20 07:49:22 +0200840:16 Color: direct index for structure ( temp 4-component vector of float)
850:16 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
860:16 Constant:
870:16 0 (const int)
880:16 move second child to first child ( temp float)
John Kesseniche516d432017-08-09 14:29:29 -0600890:? '@entryPointOutput.Depth' ( out float FragDepth)
xavierb1d97532017-06-20 07:49:22 +0200900:16 Depth: direct index for structure ( temp float)
910:16 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
920:16 Constant:
930:16 1 (const int)
940:16 move second child to first child ( temp int)
John Kessenich71c100d2017-03-14 19:43:13 -0600950:? 'sampleMask' ( out int SampleMaskIn)
960:? 'sampleMask' ( temp int)
LoopDawg9249c702016-07-12 20:44:32 -0600970:? Linker Objects
John Kesseniche516d432017-08-09 14:29:29 -0600980:? '@entryPointOutput.Depth' ( out float FragDepth)
990:? '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
John Kessenich71c100d2017-03-14 19:43:13 -06001000:? 'inpos' ( noperspective in 4-component vector of float FragCoord)
1010:? 'sampleMask' ( out int SampleMaskIn)
LoopDawg9249c702016-07-12 20:44:32 -0600102
103
104Linked fragment stage:
105
106
John Kessenich6fa17642017-04-07 15:33:08 -0600107Shader version: 500
LoopDawg9249c702016-07-12 20:44:32 -0600108gl_FragCoord origin is upper left
1090:? Sequence
xavierb1d97532017-06-20 07:49:22 +02001100:8 Function Definition: MyFunc(f1;f1;f1;f1; ( temp void)
LoopDawg9249c702016-07-12 20:44:32 -06001110:8 Function Parameters:
John Kessenich71c100d2017-03-14 19:43:13 -06001120:8 'x' ( in float)
1130:8 'y' ( out float)
1140:8 'z' ( inout float)
xavierb1d97532017-06-20 07:49:22 +02001150:8 'w' ( inout float)
LoopDawg9249c702016-07-12 20:44:32 -06001160:? Sequence
John Kessenich71c100d2017-03-14 19:43:13 -06001170:9 move second child to first child ( temp float)
1180:9 'y' ( out float)
1190:9 'x' ( in float)
1200:10 move second child to first child ( temp float)
1210:10 'z' ( inout float)
1220:10 'y' ( out float)
1230:11 move second child to first child ( temp float)
1240:11 'x' ( in float)
LoopDawg9249c702016-07-12 20:44:32 -06001250:11 Constant:
1260:11 -1.000000
xavierb1d97532017-06-20 07:49:22 +02001270:12 multiply second child into first child ( temp float)
1280:12 'w' ( inout float)
1290:12 Constant:
1300:12 1.000000
1310:16 Function Definition: @main(vf4;i1; ( temp structure{ temp 4-component vector of float Color, temp float Depth})
1320:16 Function Parameters:
1330:16 'inpos' ( in 4-component vector of float)
1340:16 'sampleMask' ( out int)
LoopDawg9249c702016-07-12 20:44:32 -06001350:? Sequence
xavierb1d97532017-06-20 07:49:22 +02001360:19 Sequence
1370:19 move second child to first child ( temp float)
1380:19 'x' ( temp float)
1390:19 Constant:
1400:19 7.000000
1410:19 move second child to first child ( temp float)
1420:19 'z' ( temp float)
1430:19 Constant:
1440:19 3.000000
1450:20 Function Call: MyFunc(f1;f1;f1;f1; ( temp void)
1460:20 'x' ( temp float)
1470:20 'y' ( temp float)
1480:20 'z' ( temp float)
1490:20 direct index ( temp float)
1500:20 'inpos' ( in 4-component vector of float)
1510:20 Constant:
1520:20 3 (const int)
1530:22 move second child to first child ( temp 4-component vector of float)
1540:22 Color: direct index for structure ( temp 4-component vector of float)
John Kessenich71c100d2017-03-14 19:43:13 -06001550:22 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
LoopDawg9249c702016-07-12 20:44:32 -06001560:22 Constant:
xavierb1d97532017-06-20 07:49:22 +02001570:22 0 (const int)
1580:? Construct vec4 ( temp 4-component vector of float)
1590:22 'x' ( temp float)
1600:22 'y' ( temp float)
1610:22 'z' ( temp float)
LoopDawg9249c702016-07-12 20:44:32 -06001620:22 Constant:
xavierb1d97532017-06-20 07:49:22 +02001630:22 1.000000
1640:23 move second child to first child ( temp float)
1650:23 Depth: direct index for structure ( temp float)
1660:23 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
1670:23 Constant:
1680:23 1 (const int)
1690:23 direct index ( temp float)
1700:23 'inpos' ( in 4-component vector of float)
1710:23 Constant:
1720:23 3 (const int)
1730:25 Branch: Return with expression
1740:25 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
1750:16 Function Definition: main( ( temp void)
1760:16 Function Parameters:
John Kessenich02467d82017-01-19 15:41:47 -07001770:? Sequence
xavierb1d97532017-06-20 07:49:22 +02001780:16 move second child to first child ( temp 4-component vector of float)
John Kessenich71c100d2017-03-14 19:43:13 -06001790:? 'inpos' ( temp 4-component vector of float)
1800:? 'inpos' ( noperspective in 4-component vector of float FragCoord)
xavierb1d97532017-06-20 07:49:22 +02001810:16 Sequence
1820:16 move second child to first child ( temp structure{ temp 4-component vector of float Color, temp float Depth})
1830:16 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
1840:16 Function Call: @main(vf4;i1; ( temp structure{ temp 4-component vector of float Color, temp float Depth})
John Kessenich71c100d2017-03-14 19:43:13 -06001850:? 'inpos' ( temp 4-component vector of float)
1860:? 'sampleMask' ( temp int)
xavierb1d97532017-06-20 07:49:22 +02001870:16 move second child to first child ( temp 4-component vector of float)
John Kesseniche516d432017-08-09 14:29:29 -06001880:? '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
xavierb1d97532017-06-20 07:49:22 +02001890:16 Color: direct index for structure ( temp 4-component vector of float)
1900:16 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
1910:16 Constant:
1920:16 0 (const int)
1930:16 move second child to first child ( temp float)
John Kesseniche516d432017-08-09 14:29:29 -06001940:? '@entryPointOutput.Depth' ( out float FragDepth)
xavierb1d97532017-06-20 07:49:22 +02001950:16 Depth: direct index for structure ( temp float)
1960:16 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
1970:16 Constant:
1980:16 1 (const int)
1990:16 move second child to first child ( temp int)
John Kessenich71c100d2017-03-14 19:43:13 -06002000:? 'sampleMask' ( out int SampleMaskIn)
2010:? 'sampleMask' ( temp int)
LoopDawg9249c702016-07-12 20:44:32 -06002020:? Linker Objects
John Kesseniche516d432017-08-09 14:29:29 -06002030:? '@entryPointOutput.Depth' ( out float FragDepth)
2040:? '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
John Kessenich71c100d2017-03-14 19:43:13 -06002050:? 'inpos' ( noperspective in 4-component vector of float FragCoord)
2060:? 'sampleMask' ( out int SampleMaskIn)
LoopDawg9249c702016-07-12 20:44:32 -0600207
John Kessenich2b5ea9f2018-01-31 18:35:56 -0700208// Module Version 10000
John Kessenich0216f242018-03-03 11:47:07 -0700209// Generated by (magic number): 80005
xavierb1d97532017-06-20 07:49:22 +0200210// Id's are bound by 88
LoopDawg9249c702016-07-12 20:44:32 -0600211
212 Capability Shader
213 1: ExtInstImport "GLSL.std.450"
214 MemoryModel Logical GLSL450
xavierb1d97532017-06-20 07:49:22 +0200215 EntryPoint Fragment 4 "main" 68 78 82 86
LoopDawg9249c702016-07-12 20:44:32 -0600216 ExecutionMode 4 OriginUpperLeft
John Kessenich6fa17642017-04-07 15:33:08 -0600217 Source HLSL 500
LoopDawg9249c702016-07-12 20:44:32 -0600218 Name 4 "main"
xavierb1d97532017-06-20 07:49:22 +0200219 Name 13 "MyFunc(f1;f1;f1;f1;"
LoopDawg9249c702016-07-12 20:44:32 -0600220 Name 9 "x"
221 Name 10 "y"
222 Name 11 "z"
xavierb1d97532017-06-20 07:49:22 +0200223 Name 12 "w"
224 Name 19 "PS_OUTPUT"
225 MemberName 19(PS_OUTPUT) 0 "Color"
226 MemberName 19(PS_OUTPUT) 1 "Depth"
227 Name 23 "@main(vf4;i1;"
228 Name 21 "inpos"
229 Name 22 "sampleMask"
230 Name 31 "x"
231 Name 33 "z"
232 Name 35 "y"
233 Name 36 "param"
234 Name 38 "param"
235 Name 39 "param"
236 Name 41 "param"
237 Name 52 "psout"
238 Name 66 "inpos"
239 Name 68 "inpos"
240 Name 70 "flattenTemp"
241 Name 71 "sampleMask"
242 Name 72 "param"
243 Name 74 "param"
John Kesseniche516d432017-08-09 14:29:29 -0600244 Name 78 "@entryPointOutput.Color"
245 Name 82 "@entryPointOutput.Depth"
xavierb1d97532017-06-20 07:49:22 +0200246 Name 86 "sampleMask"
247 Decorate 68(inpos) NoPerspective
248 Decorate 68(inpos) BuiltIn FragCoord
John Kesseniche516d432017-08-09 14:29:29 -0600249 Decorate 78(@entryPointOutput.Color) Location 0
250 Decorate 82(@entryPointOutput.Depth) BuiltIn FragDepth
xavierb1d97532017-06-20 07:49:22 +0200251 Decorate 86(sampleMask) BuiltIn SampleMask
LoopDawg9249c702016-07-12 20:44:32 -0600252 2: TypeVoid
253 3: TypeFunction 2
254 6: TypeFloat 32
255 7: TypePointer Function 6(float)
xavierb1d97532017-06-20 07:49:22 +0200256 8: TypeFunction 2 7(ptr) 7(ptr) 7(ptr) 7(ptr)
257 15: TypeVector 6(float) 4
258 16: TypePointer Function 15(fvec4)
259 17: TypeInt 32 1
260 18: TypePointer Function 17(int)
261 19(PS_OUTPUT): TypeStruct 15(fvec4) 6(float)
262 20: TypeFunction 19(PS_OUTPUT) 16(ptr) 18(ptr)
263 27: 6(float) Constant 3212836864
264 28: 6(float) Constant 1065353216
265 32: 6(float) Constant 1088421888
266 34: 6(float) Constant 1077936128
267 42: TypeInt 32 0
268 43: 42(int) Constant 3
269 51: TypePointer Function 19(PS_OUTPUT)
270 53: 17(int) Constant 0
271 59: 17(int) Constant 1
272 67: TypePointer Input 15(fvec4)
273 68(inpos): 67(ptr) Variable Input
274 77: TypePointer Output 15(fvec4)
John Kesseniche516d432017-08-09 14:29:29 -060027578(@entryPointOutput.Color): 77(ptr) Variable Output
xavierb1d97532017-06-20 07:49:22 +0200276 81: TypePointer Output 6(float)
John Kesseniche516d432017-08-09 14:29:29 -060027782(@entryPointOutput.Depth): 81(ptr) Variable Output
xavierb1d97532017-06-20 07:49:22 +0200278 85: TypePointer Output 17(int)
279 86(sampleMask): 85(ptr) Variable Output
LoopDawg9249c702016-07-12 20:44:32 -0600280 4(main): 2 Function None 3
281 5: Label
xavierb1d97532017-06-20 07:49:22 +0200282 66(inpos): 16(ptr) Variable Function
283 70(flattenTemp): 51(ptr) Variable Function
284 71(sampleMask): 18(ptr) Variable Function
285 72(param): 16(ptr) Variable Function
286 74(param): 18(ptr) Variable Function
287 69: 15(fvec4) Load 68(inpos)
288 Store 66(inpos) 69
289 73: 15(fvec4) Load 66(inpos)
290 Store 72(param) 73
291 75:19(PS_OUTPUT) FunctionCall 23(@main(vf4;i1;) 72(param) 74(param)
292 76: 17(int) Load 74(param)
293 Store 71(sampleMask) 76
294 Store 70(flattenTemp) 75
295 79: 16(ptr) AccessChain 70(flattenTemp) 53
296 80: 15(fvec4) Load 79
John Kesseniche516d432017-08-09 14:29:29 -0600297 Store 78(@entryPointOutput.Color) 80
xavierb1d97532017-06-20 07:49:22 +0200298 83: 7(ptr) AccessChain 70(flattenTemp) 59
299 84: 6(float) Load 83
John Kesseniche516d432017-08-09 14:29:29 -0600300 Store 82(@entryPointOutput.Depth) 84
xavierb1d97532017-06-20 07:49:22 +0200301 87: 17(int) Load 71(sampleMask)
302 Store 86(sampleMask) 87
John Kessenich6a70eb72016-08-28 15:00:23 -0600303 Return
LoopDawg9249c702016-07-12 20:44:32 -0600304 FunctionEnd
xavierb1d97532017-06-20 07:49:22 +020030513(MyFunc(f1;f1;f1;f1;): 2 Function None 8
LoopDawg9249c702016-07-12 20:44:32 -0600306 9(x): 7(ptr) FunctionParameter
307 10(y): 7(ptr) FunctionParameter
308 11(z): 7(ptr) FunctionParameter
xavierb1d97532017-06-20 07:49:22 +0200309 12(w): 7(ptr) FunctionParameter
310 14: Label
311 25: 6(float) Load 9(x)
312 Store 10(y) 25
313 26: 6(float) Load 10(y)
314 Store 11(z) 26
315 Store 9(x) 27
316 29: 6(float) Load 12(w)
317 30: 6(float) FMul 29 28
318 Store 12(w) 30
LoopDawg9249c702016-07-12 20:44:32 -0600319 Return
320 FunctionEnd
xavierb1d97532017-06-20 07:49:22 +020032123(@main(vf4;i1;):19(PS_OUTPUT) Function None 20
322 21(inpos): 16(ptr) FunctionParameter
323 22(sampleMask): 18(ptr) FunctionParameter
324 24: Label
325 31(x): 7(ptr) Variable Function
326 33(z): 7(ptr) Variable Function
327 35(y): 7(ptr) Variable Function
328 36(param): 7(ptr) Variable Function
329 38(param): 7(ptr) Variable Function
330 39(param): 7(ptr) Variable Function
331 41(param): 7(ptr) Variable Function
332 52(psout): 51(ptr) Variable Function
333 Store 31(x) 32
334 Store 33(z) 34
335 37: 6(float) Load 31(x)
336 Store 36(param) 37
337 40: 6(float) Load 33(z)
338 Store 39(param) 40
339 44: 7(ptr) AccessChain 21(inpos) 43
340 45: 6(float) Load 44
341 Store 41(param) 45
342 46: 2 FunctionCall 13(MyFunc(f1;f1;f1;f1;) 36(param) 38(param) 39(param) 41(param)
343 47: 6(float) Load 38(param)
344 Store 35(y) 47
345 48: 6(float) Load 39(param)
346 Store 33(z) 48
347 49: 6(float) Load 41(param)
348 50: 7(ptr) AccessChain 21(inpos) 43
349 Store 50 49
350 54: 6(float) Load 31(x)
351 55: 6(float) Load 35(y)
352 56: 6(float) Load 33(z)
353 57: 15(fvec4) CompositeConstruct 54 55 56 28
354 58: 16(ptr) AccessChain 52(psout) 53
355 Store 58 57
356 60: 7(ptr) AccessChain 21(inpos) 43
357 61: 6(float) Load 60
358 62: 7(ptr) AccessChain 52(psout) 59
359 Store 62 61
360 63:19(PS_OUTPUT) Load 52(psout)
361 ReturnValue 63
John Kessenich02467d82017-01-19 15:41:47 -0700362 FunctionEnd