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