John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame^] | 1 | spv.voidFunction.frag |
| 2 | |
| 3 | Linked fragment stage: |
| 4 | |
| 5 | |
| 6 | // Module Version 10000 |
| 7 | // Generated by (magic number): 80001 |
| 8 | // Id's are bound by 44 |
| 9 | |
| 10 | Capability Shader |
| 11 | 1: ExtInstImport "GLSL.std.450" |
| 12 | MemoryModel Logical GLSL450 |
| 13 | EntryPoint Fragment 4 "main" 41 |
| 14 | ExecutionMode 4 OriginLowerLeft |
| 15 | Source GLSL 120 |
| 16 | Name 4 "main" |
| 17 | Name 6 "foo(" |
| 18 | Name 8 "foo2(" |
| 19 | Name 12 "bar" |
| 20 | Name 22 "outColor" |
| 21 | Name 24 "bigColor" |
| 22 | Name 37 "gl_FragColor" |
| 23 | Name 41 "BaseColor" |
| 24 | Name 43 "d" |
| 25 | 2: TypeVoid |
| 26 | 3: TypeFunction 2 |
| 27 | 10: TypeFloat 32 |
| 28 | 11: TypePointer Private 10(float) |
| 29 | 12(bar): 11(ptr) Variable Private |
| 30 | 13: 10(float) Constant 1073741824 |
| 31 | 15: 10(float) Constant 1065353216 |
| 32 | 20: TypeVector 10(float) 4 |
| 33 | 21: TypePointer Function 20(fvec4) |
| 34 | 23: TypePointer UniformConstant 20(fvec4) |
| 35 | 24(bigColor): 23(ptr) Variable UniformConstant |
| 36 | 29: TypeInt 32 0 |
| 37 | 30: 29(int) Constant 0 |
| 38 | 31: TypePointer Function 10(float) |
| 39 | 36: TypePointer Output 20(fvec4) |
| 40 | 37(gl_FragColor): 36(ptr) Variable Output |
| 41 | 40: TypePointer Input 20(fvec4) |
| 42 | 41(BaseColor): 40(ptr) Variable Input |
| 43 | 42: TypePointer UniformConstant 10(float) |
| 44 | 43(d): 42(ptr) Variable UniformConstant |
| 45 | 4(main): 2 Function None 3 |
| 46 | 5: Label |
| 47 | 22(outColor): 21(ptr) Variable Function |
| 48 | Store 12(bar) 13 |
| 49 | 25: 20(fvec4) Load 24(bigColor) |
| 50 | Store 22(outColor) 25 |
| 51 | 26: 2 FunctionCall 6(foo() |
| 52 | 27: 2 FunctionCall 8(foo2() |
| 53 | 28: 10(float) Load 12(bar) |
| 54 | 32: 31(ptr) AccessChain 22(outColor) 30 |
| 55 | 33: 10(float) Load 32 |
| 56 | 34: 10(float) FAdd 33 28 |
| 57 | 35: 31(ptr) AccessChain 22(outColor) 30 |
| 58 | Store 35 34 |
| 59 | 38: 20(fvec4) Load 22(outColor) |
| 60 | Store 37(gl_FragColor) 38 |
| 61 | Return |
| 62 | FunctionEnd |
| 63 | 6(foo(): 2 Function None 3 |
| 64 | 7: Label |
| 65 | 14: 10(float) Load 12(bar) |
| 66 | 16: 10(float) FAdd 14 15 |
| 67 | Store 12(bar) 16 |
| 68 | Return |
| 69 | FunctionEnd |
| 70 | 8(foo2(): 2 Function None 3 |
| 71 | 9: Label |
| 72 | 18: 10(float) Load 12(bar) |
| 73 | 19: 10(float) FAdd 18 15 |
| 74 | Store 12(bar) 19 |
| 75 | Return |
| 76 | FunctionEnd |