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