8a0ac8151ae2f6fe4a8c47d04b63a4b56c7a33a8
[platform/upstream/glslang.git] / Test / baseResults / hlsl.precise.frag.out
1 hlsl.precise.frag
2 Shader version: 450
3 gl_FragCoord origin is upper left
4 0:? Sequence
5 0:6  Function Definition: MyFunction(f1;vf3; ( temp void)
6 0:6    Function Parameters: 
7 0:6      'myfloat' ( noContraction in float)
8 0:6      'myfloat3' ( noContraction out 3-component vector of float)
9 0:9  Function Definition: @main( ( temp structure{ noContraction temp 4-component vector of float color})
10 0:9    Function Parameters: 
11 0:?     Sequence
12 0:11      move second child to first child ( noContraction temp 4-component vector of float)
13 0:11        color: direct index for structure ( noContraction temp 4-component vector of float)
14 0:11          'ps_output' ( temp structure{ noContraction temp 4-component vector of float color})
15 0:11          Constant:
16 0:11            0 (const int)
17 0:11        Constant:
18 0:11          1.000000
19 0:11          1.000000
20 0:11          1.000000
21 0:11          1.000000
22 0:12      Branch: Return with expression
23 0:12        'ps_output' ( temp structure{ noContraction temp 4-component vector of float color})
24 0:9  Function Definition: main( ( temp void)
25 0:9    Function Parameters: 
26 0:?     Sequence
27 0:9      Sequence
28 0:9        move second child to first child ( noContraction temp 4-component vector of float)
29 0:?           'color' (layout( location=0) noContraction out 4-component vector of float)
30 0:9          color: direct index for structure ( noContraction temp 4-component vector of float)
31 0:9            Function Call: @main( ( temp structure{ noContraction temp 4-component vector of float color})
32 0:9            Constant:
33 0:9              0 (const int)
34 0:?   Linker Objects
35 0:?     'precisefloat' ( noContraction global float)
36 0:?     'color' (layout( location=0) noContraction out 4-component vector of float)
37
38
39 Linked fragment stage:
40
41
42 Shader version: 450
43 gl_FragCoord origin is upper left
44 0:? Sequence
45 0:6  Function Definition: MyFunction(f1;vf3; ( temp void)
46 0:6    Function Parameters: 
47 0:6      'myfloat' ( noContraction in float)
48 0:6      'myfloat3' ( noContraction out 3-component vector of float)
49 0:9  Function Definition: @main( ( temp structure{ noContraction temp 4-component vector of float color})
50 0:9    Function Parameters: 
51 0:?     Sequence
52 0:11      move second child to first child ( noContraction temp 4-component vector of float)
53 0:11        color: direct index for structure ( noContraction temp 4-component vector of float)
54 0:11          'ps_output' ( temp structure{ noContraction temp 4-component vector of float color})
55 0:11          Constant:
56 0:11            0 (const int)
57 0:11        Constant:
58 0:11          1.000000
59 0:11          1.000000
60 0:11          1.000000
61 0:11          1.000000
62 0:12      Branch: Return with expression
63 0:12        'ps_output' ( temp structure{ noContraction temp 4-component vector of float color})
64 0:9  Function Definition: main( ( temp void)
65 0:9    Function Parameters: 
66 0:?     Sequence
67 0:9      Sequence
68 0:9        move second child to first child ( noContraction temp 4-component vector of float)
69 0:?           'color' (layout( location=0) noContraction out 4-component vector of float)
70 0:9          color: direct index for structure ( noContraction temp 4-component vector of float)
71 0:9            Function Call: @main( ( temp structure{ noContraction temp 4-component vector of float color})
72 0:9            Constant:
73 0:9              0 (const int)
74 0:?   Linker Objects
75 0:?     'precisefloat' ( noContraction global float)
76 0:?     'color' (layout( location=0) noContraction out 4-component vector of float)
77
78 // Module Version 10000
79 // Generated by (magic number): 80001
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                               Name 4  "main"
88                               Name 13  "MyFunction(f1;vf3;"
89                               Name 11  "myfloat"
90                               Name 12  "myfloat3"
91                               Name 16  "PS_OUTPUT"
92                               MemberName 16(PS_OUTPUT) 0  "color"
93                               Name 18  "@main("
94                               Name 21  "ps_output"
95                               Name 32  "color"
96                               Name 36  "precisefloat"
97                               Decorate 32(color) Location 0
98                2:             TypeVoid
99                3:             TypeFunction 2
100                6:             TypeFloat 32
101                7:             TypePointer Function 6(float)
102                8:             TypeVector 6(float) 3
103                9:             TypePointer Function 8(fvec3)
104               10:             TypeFunction 2 7(ptr) 9(ptr)
105               15:             TypeVector 6(float) 4
106    16(PS_OUTPUT):             TypeStruct 15(fvec4)
107               17:             TypeFunction 16(PS_OUTPUT)
108               20:             TypePointer Function 16(PS_OUTPUT)
109               22:             TypeInt 32 1
110               23:     22(int) Constant 0
111               24:    6(float) Constant 1065353216
112               25:   15(fvec4) ConstantComposite 24 24 24 24
113               26:             TypePointer Function 15(fvec4)
114               31:             TypePointer Output 15(fvec4)
115        32(color):     31(ptr) Variable Output
116               35:             TypePointer Private 6(float)
117 36(precisefloat):     35(ptr) Variable Private
118          4(main):           2 Function None 3
119                5:             Label
120               33:16(PS_OUTPUT) FunctionCall 18(@main()
121               34:   15(fvec4) CompositeExtract 33 0
122                               Store 32(color) 34
123                               Return
124                               FunctionEnd
125 13(MyFunction(f1;vf3;):           2 Function None 10
126      11(myfloat):      7(ptr) FunctionParameter
127     12(myfloat3):      9(ptr) FunctionParameter
128               14:             Label
129                               Return
130                               FunctionEnd
131       18(@main():16(PS_OUTPUT) Function None 17
132               19:             Label
133    21(ps_output):     20(ptr) Variable Function
134               27:     26(ptr) AccessChain 21(ps_output) 23
135                               Store 27 25
136               28:16(PS_OUTPUT) Load 21(ps_output)
137                               ReturnValue 28
138                               FunctionEnd