1hlsl.precise.frag
2Shader version: 500
3gl_FragCoord origin is upper left
40:? Sequence
50:6  Function Definition: MyFunction(f1;vf3; ( temp void)
60:6    Function Parameters:
70:6      'myfloat' ( noContraction in float)
80:6      'myfloat3' ( noContraction out 3-component vector of float)
90:9  Function Definition: @main( ( temp structure{ noContraction temp 4-component vector of float color})
100:9    Function Parameters:
110:?     Sequence
120:11      move second child to first child ( noContraction temp 4-component vector of float)
130:11        color: direct index for structure ( noContraction temp 4-component vector of float)
140:11          'ps_output' ( temp structure{ noContraction temp 4-component vector of float color})
150:11          Constant:
160:11            0 (const int)
170:11        Constant:
180:11          1.000000
190:11          1.000000
200:11          1.000000
210:11          1.000000
220:12      Branch: Return with expression
230:12        'ps_output' ( temp structure{ noContraction temp 4-component vector of float color})
240:9  Function Definition: main( ( temp void)
250:9    Function Parameters:
260:?     Sequence
270:9      Sequence
280:9        move second child to first child ( noContraction temp 4-component vector of float)
290:?           '@entryPointOutput.color' (layout( location=0) noContraction out 4-component vector of float)
300:9          color: direct index for structure ( noContraction temp 4-component vector of float)
310:9            Function Call: @main( ( temp structure{ noContraction temp 4-component vector of float color})
320:9            Constant:
330:9              0 (const int)
340:?   Linker Objects
350:?     'precisefloat' ( noContraction global float)
360:?     '@entryPointOutput.color' (layout( location=0) noContraction out 4-component vector of float)
37
38
39Linked fragment stage:
40
41
42Shader version: 500
43gl_FragCoord origin is upper left
440:? Sequence
450:6  Function Definition: MyFunction(f1;vf3; ( temp void)
460:6    Function Parameters:
470:6      'myfloat' ( noContraction in float)
480:6      'myfloat3' ( noContraction out 3-component vector of float)
490:9  Function Definition: @main( ( temp structure{ noContraction temp 4-component vector of float color})
500:9    Function Parameters:
510:?     Sequence
520:11      move second child to first child ( noContraction temp 4-component vector of float)
530:11        color: direct index for structure ( noContraction temp 4-component vector of float)
540:11          'ps_output' ( temp structure{ noContraction temp 4-component vector of float color})
550:11          Constant:
560:11            0 (const int)
570:11        Constant:
580:11          1.000000
590:11          1.000000
600:11          1.000000
610:11          1.000000
620:12      Branch: Return with expression
630:12        'ps_output' ( temp structure{ noContraction temp 4-component vector of float color})
640:9  Function Definition: main( ( temp void)
650:9    Function Parameters:
660:?     Sequence
670:9      Sequence
680:9        move second child to first child ( noContraction temp 4-component vector of float)
690:?           '@entryPointOutput.color' (layout( location=0) noContraction out 4-component vector of float)
700:9          color: direct index for structure ( noContraction temp 4-component vector of float)
710:9            Function Call: @main( ( temp structure{ noContraction temp 4-component vector of float color})
720:9            Constant:
730:9              0 (const int)
740:?   Linker Objects
750:?     'precisefloat' ( noContraction global float)
760:?     '@entryPointOutput.color' (layout( location=0) noContraction out 4-component vector of float)
77
78// Module Version 10000
79// Generated by (magic number): 80007
80// Id's are bound by 37
81
82                              Capability Shader
83               1:             ExtInstImport  "GLSL.std.450"
84                              MemoryModel Logical GLSL450
85                              EntryPoint Fragment 4  "main" 32
86                              ExecutionMode 4 OriginUpperLeft
87                              Source HLSL 500
88                              Name 4  "main"
89                              Name 13  "MyFunction(f1;vf3;"
90                              Name 11  "myfloat"
91                              Name 12  "myfloat3"
92                              Name 16  "PS_OUTPUT"
93                              MemberName 16(PS_OUTPUT) 0  "color"
94                              Name 18  "@main("
95                              Name 21  "ps_output"
96                              Name 32  "@entryPointOutput.color"
97                              Name 36  "precisefloat"
98                              Decorate 32(@entryPointOutput.color) Location 0
99               2:             TypeVoid
100               3:             TypeFunction 2
101               6:             TypeFloat 32
102               7:             TypePointer Function 6(float)
103               8:             TypeVector 6(float) 3
104               9:             TypePointer Function 8(fvec3)
105              10:             TypeFunction 2 7(ptr) 9(ptr)
106              15:             TypeVector 6(float) 4
107   16(PS_OUTPUT):             TypeStruct 15(fvec4)
108              17:             TypeFunction 16(PS_OUTPUT)
109              20:             TypePointer Function 16(PS_OUTPUT)
110              22:             TypeInt 32 1
111              23:     22(int) Constant 0
112              24:    6(float) Constant 1065353216
113              25:   15(fvec4) ConstantComposite 24 24 24 24
114              26:             TypePointer Function 15(fvec4)
115              31:             TypePointer Output 15(fvec4)
11632(@entryPointOutput.color):     31(ptr) Variable Output
117              35:             TypePointer Private 6(float)
11836(precisefloat):     35(ptr) Variable Private
119         4(main):           2 Function None 3
120               5:             Label
121              33:16(PS_OUTPUT) FunctionCall 18(@main()
122              34:   15(fvec4) CompositeExtract 33 0
123                              Store 32(@entryPointOutput.color) 34
124                              Return
125                              FunctionEnd
12613(MyFunction(f1;vf3;):           2 Function None 10
127     11(myfloat):      7(ptr) FunctionParameter
128    12(myfloat3):      9(ptr) FunctionParameter
129              14:             Label
130                              Return
131                              FunctionEnd
132      18(@main():16(PS_OUTPUT) Function None 17
133              19:             Label
134   21(ps_output):     20(ptr) Variable Function
135              27:     26(ptr) AccessChain 21(ps_output) 23
136                              Store 27 25
137              28:16(PS_OUTPUT) Load 21(ps_output)
138                              ReturnValue 28
139                              FunctionEnd
140