e0da9852112646f5f94b6642bf43ae2768ffae12
[platform/upstream/glslang.git] / Test / baseResults / hlsl.emptystructreturn.frag.out
1 hlsl.emptystructreturn.frag
2 Shader version: 450
3 gl_FragCoord origin is upper left
4 0:? Sequence
5 0:10  Function Definition: @main(struct-ps_in1; ( temp structure{})
6 0:10    Function Parameters: 
7 0:10      'i' ( in structure{})
8 0:?     Sequence
9 0:12      Branch: Return with expression
10 0:12        'o' ( temp structure{})
11 0:10  Function Definition: main( ( temp void)
12 0:10    Function Parameters: 
13 0:?     Sequence
14 0:10      move second child to first child ( temp structure{})
15 0:?         'i' ( temp structure{})
16 0:?         'i' (layout( location=0) in structure{})
17 0:10      Sequence
18 0:10        move second child to first child ( temp structure{})
19 0:?           '@entryPointOutput' ( out structure{})
20 0:10          Function Call: @main(struct-ps_in1; ( temp structure{})
21 0:?             'i' ( temp structure{})
22 0:?   Linker Objects
23 0:?     'i' (layout( location=0) in structure{})
24
25
26 Linked fragment stage:
27
28
29 Shader version: 450
30 gl_FragCoord origin is upper left
31 0:? Sequence
32 0:10  Function Definition: @main(struct-ps_in1; ( temp structure{})
33 0:10    Function Parameters: 
34 0:10      'i' ( in structure{})
35 0:?     Sequence
36 0:12      Branch: Return with expression
37 0:12        'o' ( temp structure{})
38 0:10  Function Definition: main( ( temp void)
39 0:10    Function Parameters: 
40 0:?     Sequence
41 0:10      move second child to first child ( temp structure{})
42 0:?         'i' ( temp structure{})
43 0:?         'i' (layout( location=0) in structure{})
44 0:10      Sequence
45 0:10        move second child to first child ( temp structure{})
46 0:?           '@entryPointOutput' ( out structure{})
47 0:10          Function Call: @main(struct-ps_in1; ( temp structure{})
48 0:?             'i' ( temp structure{})
49 0:?   Linker Objects
50 0:?     'i' (layout( location=0) in structure{})
51
52 // Module Version 10000
53 // Generated by (magic number): 80001
54 // Id's are bound by 27
55
56                               Capability Shader
57                1:             ExtInstImport  "GLSL.std.450"
58                               MemoryModel Logical GLSL450
59                               EntryPoint Fragment 4  "main" 20 23
60                               ExecutionMode 4 OriginUpperLeft
61                               Name 4  "main"
62                               Name 6  "ps_in"
63                               Name 8  "ps_out"
64                               Name 11  "@main(struct-ps_in1;"
65                               Name 10  "i"
66                               Name 14  "o"
67                               Name 18  "i"
68                               Name 20  "i"
69                               Name 23  "@entryPointOutput"
70                               Name 24  "param"
71                               Decorate 20(i) Location 0
72                2:             TypeVoid
73                3:             TypeFunction 2
74         6(ps_in):             TypeStruct
75                7:             TypePointer Function 6(ps_in)
76        8(ps_out):             TypeStruct
77                9:             TypeFunction 8(ps_out) 7(ptr)
78               13:             TypePointer Function 8(ps_out)
79               19:             TypePointer Input 6(ps_in)
80            20(i):     19(ptr) Variable Input
81               22:             TypePointer Output 8(ps_out)
82 23(@entryPointOutput):     22(ptr) Variable Output
83          4(main):           2 Function None 3
84                5:             Label
85            18(i):      7(ptr) Variable Function
86        24(param):      7(ptr) Variable Function
87               21:    6(ps_in) Load 20(i)
88                               Store 18(i) 21
89               25:    6(ps_in) Load 18(i)
90                               Store 24(param) 25
91               26:   8(ps_out) FunctionCall 11(@main(struct-ps_in1;) 24(param)
92                               Store 23(@entryPointOutput) 26
93                               Return
94                               FunctionEnd
95 11(@main(struct-ps_in1;):   8(ps_out) Function None 9
96            10(i):      7(ptr) FunctionParameter
97               12:             Label
98            14(o):     13(ptr) Variable Function
99               15:   8(ps_out) Load 14(o)
100                               ReturnValue 15
101                               FunctionEnd