1hlsl.identifier.sample.frag
2Shader version: 500
3gl_FragCoord origin is upper left
40:? Sequence
50:9  Function Definition: sample(i1; ( temp int)
60:9    Function Parameters:
70:9      'x' ( in int)
80:?     Sequence
90:9      Branch: Return with expression
100:9        'x' ( in int)
110:12  Function Definition: @main( ( temp 4-component vector of float)
120:12    Function Parameters:
130:?     Sequence
140:15      Sequence
150:15        move second child to first child ( temp 4-component vector of float)
160:15          'sample' ( temp 4-component vector of float)
170:?           Constant:
180:?             3.000000
190:?             4.000000
200:?             5.000000
210:?             6.000000
220:17      Branch: Return with expression
230:17        vector swizzle ( temp 4-component vector of float)
240:17          'sample' ( temp 4-component vector of float)
250:17          Sequence
260:17            Constant:
270:17              0 (const int)
280:17            Constant:
290:17              1 (const int)
300:17            Constant:
310:17              2 (const int)
320:17            Constant:
330:17              3 (const int)
340:12  Function Definition: main( ( temp void)
350:12    Function Parameters:
360:?     Sequence
370:12      move second child to first child ( temp 4-component vector of float)
380:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
390:12        Function Call: @main( ( temp 4-component vector of float)
400:?   Linker Objects
410:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
42
43
44Linked fragment stage:
45
46
47Shader version: 500
48gl_FragCoord origin is upper left
490:? Sequence
500:9  Function Definition: sample(i1; ( temp int)
510:9    Function Parameters:
520:9      'x' ( in int)
530:?     Sequence
540:9      Branch: Return with expression
550:9        'x' ( in int)
560:12  Function Definition: @main( ( temp 4-component vector of float)
570:12    Function Parameters:
580:?     Sequence
590:15      Sequence
600:15        move second child to first child ( temp 4-component vector of float)
610:15          'sample' ( temp 4-component vector of float)
620:?           Constant:
630:?             3.000000
640:?             4.000000
650:?             5.000000
660:?             6.000000
670:17      Branch: Return with expression
680:17        vector swizzle ( temp 4-component vector of float)
690:17          'sample' ( temp 4-component vector of float)
700:17          Sequence
710:17            Constant:
720:17              0 (const int)
730:17            Constant:
740:17              1 (const int)
750:17            Constant:
760:17              2 (const int)
770:17            Constant:
780:17              3 (const int)
790:12  Function Definition: main( ( temp void)
800:12    Function Parameters:
810:?     Sequence
820:12      move second child to first child ( temp 4-component vector of float)
830:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
840:12        Function Call: @main( ( temp 4-component vector of float)
850:?   Linker Objects
860:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
87
88// Module Version 10000
89// Generated by (magic number): 80007
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)
12031(@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
140