e0a89aa4a4f142fc51d6163cfdd2debfd68bddbb
[platform/upstream/glslang.git] / Test / baseResults / hlsl.identifier.sample.frag.out
1 hlsl.identifier.sample.frag
2 Shader version: 500
3 gl_FragCoord origin is upper left
4 0:? Sequence
5 0:9  Function Definition: sample(i1; ( temp int)
6 0:9    Function Parameters: 
7 0:9      'x' ( in int)
8 0:?     Sequence
9 0:9      Branch: Return with expression
10 0:9        'x' ( in int)
11 0:12  Function Definition: @main( ( temp 4-component vector of float)
12 0:12    Function Parameters: 
13 0:?     Sequence
14 0:15      Sequence
15 0:15        move second child to first child ( temp 4-component vector of float)
16 0:15          'sample' ( temp 4-component vector of float)
17 0:15          Constant:
18 0:15            3.000000
19 0:15            4.000000
20 0:15            5.000000
21 0:15            6.000000
22 0:17      Branch: Return with expression
23 0:17        vector swizzle ( temp 4-component vector of float)
24 0:17          'sample' ( temp 4-component vector of float)
25 0:17          Sequence
26 0:17            Constant:
27 0:17              0 (const int)
28 0:17            Constant:
29 0:17              1 (const int)
30 0:17            Constant:
31 0:17              2 (const int)
32 0:17            Constant:
33 0:17              3 (const int)
34 0:12  Function Definition: main( ( temp void)
35 0:12    Function Parameters: 
36 0:?     Sequence
37 0:12      move second child to first child ( temp 4-component vector of float)
38 0:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
39 0:12        Function Call: @main( ( temp 4-component vector of float)
40 0:?   Linker Objects
41 0:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
42
43
44 Linked fragment stage:
45
46
47 Shader version: 500
48 gl_FragCoord origin is upper left
49 0:? Sequence
50 0:9  Function Definition: sample(i1; ( temp int)
51 0:9    Function Parameters: 
52 0:9      'x' ( in int)
53 0:?     Sequence
54 0:9      Branch: Return with expression
55 0:9        'x' ( in int)
56 0:12  Function Definition: @main( ( temp 4-component vector of float)
57 0:12    Function Parameters: 
58 0:?     Sequence
59 0:15      Sequence
60 0:15        move second child to first child ( temp 4-component vector of float)
61 0:15          'sample' ( temp 4-component vector of float)
62 0:15          Constant:
63 0:15            3.000000
64 0:15            4.000000
65 0:15            5.000000
66 0:15            6.000000
67 0:17      Branch: Return with expression
68 0:17        vector swizzle ( temp 4-component vector of float)
69 0:17          'sample' ( temp 4-component vector of float)
70 0:17          Sequence
71 0:17            Constant:
72 0:17              0 (const int)
73 0:17            Constant:
74 0:17              1 (const int)
75 0:17            Constant:
76 0:17              2 (const int)
77 0:17            Constant:
78 0:17              3 (const int)
79 0:12  Function Definition: main( ( temp void)
80 0:12    Function Parameters: 
81 0:?     Sequence
82 0:12      move second child to first child ( temp 4-component vector of float)
83 0:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
84 0:12        Function Call: @main( ( temp 4-component vector of float)
85 0:?   Linker Objects
86 0:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
87
88 // Module Version 10000
89 // Generated by (magic number): 8000a
90 // Id's are bound by 33
91
92                               Capability Shader
93                1:             ExtInstImport  "GLSL.std.450"
94                               MemoryModel Logical GLSL450
95                               EntryPoint Fragment 4  "main" 31
96                               ExecutionMode 4 OriginUpperLeft
97                               Source HLSL 500
98                               Name 4  "main"
99                               Name 10  "sample(i1;"
100                               Name 9  "x"
101                               Name 15  "@main("
102                               Name 21  "sample"
103                               Name 31  "@entryPointOutput"
104                               Decorate 31(@entryPointOutput) Location 0
105                2:             TypeVoid
106                3:             TypeFunction 2
107                6:             TypeInt 32 1
108                7:             TypePointer Function 6(int)
109                8:             TypeFunction 6(int) 7(ptr)
110               12:             TypeFloat 32
111               13:             TypeVector 12(float) 4
112               14:             TypeFunction 13(fvec4)
113               20:             TypePointer Function 13(fvec4)
114               22:   12(float) Constant 1077936128
115               23:   12(float) Constant 1082130432
116               24:   12(float) Constant 1084227584
117               25:   12(float) Constant 1086324736
118               26:   13(fvec4) ConstantComposite 22 23 24 25
119               30:             TypePointer Output 13(fvec4)
120 31(@entryPointOutput):     30(ptr) Variable Output
121          4(main):           2 Function None 3
122                5:             Label
123               32:   13(fvec4) FunctionCall 15(@main()
124                               Store 31(@entryPointOutput) 32
125                               Return
126                               FunctionEnd
127   10(sample(i1;):      6(int) Function None 8
128             9(x):      7(ptr) FunctionParameter
129               11:             Label
130               17:      6(int) Load 9(x)
131                               ReturnValue 17
132                               FunctionEnd
133       15(@main():   13(fvec4) Function None 14
134               16:             Label
135       21(sample):     20(ptr) Variable Function
136                               Store 21(sample) 26
137               27:   13(fvec4) Load 21(sample)
138                               ReturnValue 27
139                               FunctionEnd