John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame] | 1 | spv.forwardFun.frag |
John Kessenich | 2b5ea9f | 2018-01-31 18:35:56 -0700 | [diff] [blame] | 2 | // Module Version 10000 |
John Kessenich | 71b5da6 | 2018-02-06 08:06:36 -0700 | [diff] [blame] | 3 | // Generated by (magic number): 80004 |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 4 | // Id's are bound by 60 |
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" 20 30 36 59 |
| 10 | ExecutionMode 4 OriginUpperLeft |
John Kessenich | f6eae2a | 2016-01-22 17:47:22 -0700 | [diff] [blame] | 11 | Source GLSL 140 |
John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame] | 12 | Name 4 "main" |
| 13 | Name 6 "bar(" |
| 14 | Name 10 "unreachableReturn(" |
| 15 | Name 16 "foo(vf4;" |
| 16 | Name 15 "bar" |
| 17 | Name 18 "color" |
| 18 | Name 20 "BaseColor" |
| 19 | Name 21 "param" |
| 20 | Name 27 "f" |
| 21 | Name 30 "gl_FragColor" |
| 22 | Name 36 "d" |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 23 | Name 59 "bigColor" |
John Kessenich | 54571c2 | 2016-08-03 16:41:53 -0600 | [diff] [blame] | 24 | Decorate 10(unreachableReturn() RelaxedPrecision |
| 25 | Decorate 16(foo(vf4;) RelaxedPrecision |
| 26 | Decorate 15(bar) RelaxedPrecision |
| 27 | Decorate 18(color) RelaxedPrecision |
| 28 | Decorate 20(BaseColor) RelaxedPrecision |
| 29 | Decorate 22 RelaxedPrecision |
| 30 | Decorate 23 RelaxedPrecision |
| 31 | Decorate 24 RelaxedPrecision |
| 32 | Decorate 27(f) RelaxedPrecision |
| 33 | Decorate 28 RelaxedPrecision |
| 34 | Decorate 30(gl_FragColor) RelaxedPrecision |
John Kessenich | 2c6f48b | 2017-05-20 13:23:25 -0600 | [diff] [blame] | 35 | Decorate 30(gl_FragColor) Location 0 |
John Kessenich | 54571c2 | 2016-08-03 16:41:53 -0600 | [diff] [blame] | 36 | Decorate 31 RelaxedPrecision |
| 37 | Decorate 32 RelaxedPrecision |
| 38 | Decorate 33 RelaxedPrecision |
| 39 | Decorate 36(d) RelaxedPrecision |
| 40 | Decorate 37 RelaxedPrecision |
| 41 | Decorate 52 RelaxedPrecision |
| 42 | Decorate 55 RelaxedPrecision |
| 43 | Decorate 56 RelaxedPrecision |
| 44 | Decorate 59(bigColor) RelaxedPrecision |
John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame] | 45 | 2: TypeVoid |
| 46 | 3: TypeFunction 2 |
| 47 | 8: TypeFloat 32 |
| 48 | 9: TypeFunction 8(float) |
| 49 | 12: TypeVector 8(float) 4 |
| 50 | 13: TypePointer Function 12(fvec4) |
| 51 | 14: TypeFunction 8(float) 13(ptr) |
| 52 | 19: TypePointer Input 12(fvec4) |
| 53 | 20(BaseColor): 19(ptr) Variable Input |
| 54 | 26: TypePointer Function 8(float) |
| 55 | 29: TypePointer Output 12(fvec4) |
| 56 | 30(gl_FragColor): 29(ptr) Variable Output |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 57 | 35: TypePointer Input 8(float) |
| 58 | 36(d): 35(ptr) Variable Input |
John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame] | 59 | 38: 8(float) Constant 1082549862 |
| 60 | 39: TypeBool |
| 61 | 43: 8(float) Constant 1067030938 |
| 62 | 46: 8(float) Constant 1083179008 |
| 63 | 49: TypeInt 32 0 |
| 64 | 50: 49(int) Constant 0 |
| 65 | 53: 49(int) Constant 1 |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 66 | 59(bigColor): 19(ptr) Variable Input |
John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame] | 67 | 4(main): 2 Function None 3 |
| 68 | 5: Label |
| 69 | 18(color): 13(ptr) Variable Function |
| 70 | 21(param): 13(ptr) Variable Function |
| 71 | 27(f): 26(ptr) Variable Function |
| 72 | 22: 12(fvec4) Load 20(BaseColor) |
| 73 | Store 21(param) 22 |
| 74 | 23: 8(float) FunctionCall 16(foo(vf4;) 21(param) |
| 75 | 24: 12(fvec4) CompositeConstruct 23 23 23 23 |
| 76 | Store 18(color) 24 |
| 77 | 25: 2 FunctionCall 6(bar() |
| 78 | 28: 8(float) FunctionCall 10(unreachableReturn() |
| 79 | Store 27(f) 28 |
| 80 | 31: 12(fvec4) Load 18(color) |
| 81 | 32: 8(float) Load 27(f) |
| 82 | 33: 12(fvec4) VectorTimesScalar 31 32 |
| 83 | Store 30(gl_FragColor) 33 |
| 84 | Return |
| 85 | FunctionEnd |
| 86 | 6(bar(): 2 Function None 3 |
| 87 | 7: Label |
| 88 | Return |
| 89 | FunctionEnd |
| 90 | 10(unreachableReturn(): 8(float) Function None 9 |
| 91 | 11: Label |
| 92 | 34: 2 FunctionCall 6(bar() |
| 93 | 37: 8(float) Load 36(d) |
| 94 | 40: 39(bool) FOrdLessThan 37 38 |
| 95 | SelectionMerge 42 None |
| 96 | BranchConditional 40 41 45 |
| 97 | 41: Label |
| 98 | ReturnValue 43 |
| 99 | 45: Label |
| 100 | ReturnValue 46 |
| 101 | 42: Label |
| 102 | 48: 8(float) Undef |
| 103 | ReturnValue 48 |
| 104 | FunctionEnd |
| 105 | 16(foo(vf4;): 8(float) Function None 14 |
| 106 | 15(bar): 13(ptr) FunctionParameter |
| 107 | 17: Label |
| 108 | 51: 26(ptr) AccessChain 15(bar) 50 |
| 109 | 52: 8(float) Load 51 |
| 110 | 54: 26(ptr) AccessChain 15(bar) 53 |
| 111 | 55: 8(float) Load 54 |
| 112 | 56: 8(float) FAdd 52 55 |
| 113 | ReturnValue 56 |
| 114 | FunctionEnd |