1spv.specConstant.vert 2// Module Version 10000 3// Generated by (magic number): 8000a 4// Id's are bound by 81 5 6 Capability Shader 7 Capability Float64 8 1: ExtInstImport "GLSL.std.450" 9 MemoryModel Logical GLSL450 10 EntryPoint Vertex 4 "main" 20 22 28 53 11 Source GLSL 400 12 Name 4 "main" 13 Name 9 "arraySize" 14 Name 14 "foo(vf4[s216172782];" 15 Name 13 "p" 16 Name 17 "builtin_spec_constant(" 17 Name 20 "color" 18 Name 22 "ucol" 19 Name 28 "size" 20 Name 30 "spBool" 21 Name 34 "scale" 22 Name 39 "spDouble" 23 Name 40 "spFloat" 24 Name 47 "param" 25 Name 50 "dupArraySize" 26 Name 53 "dupUcol" 27 Name 60 "spDupBool" 28 Name 63 "dupScale" 29 Name 67 "spDupDouble" 30 Name 68 "spDupFloat" 31 Name 76 "result" 32 Name 77 "gl_MaxImageUnits" 33 Decorate 9(arraySize) SpecId 16 34 Decorate 20(color) Location 0 35 Decorate 22(ucol) Location 0 36 Decorate 28(size) Location 1 37 Decorate 30(spBool) SpecId 17 38 Decorate 34(scale) SpecId 22 39 Decorate 39(spDouble) SpecId 19 40 Decorate 40(spFloat) SpecId 18 41 Decorate 50(dupArraySize) SpecId 116 42 Decorate 53(dupUcol) Location 5 43 Decorate 60(spDupBool) SpecId 117 44 Decorate 63(dupScale) SpecId 122 45 Decorate 67(spDupDouble) SpecId 119 46 Decorate 68(spDupFloat) SpecId 118 47 Decorate 77(gl_MaxImageUnits) SpecId 24 48 2: TypeVoid 49 3: TypeFunction 2 50 6: TypeFloat 32 51 7: TypeVector 6(float) 4 52 8: TypeInt 32 1 53 9(arraySize): 8(int) SpecConstant 5 54 10: TypeArray 7(fvec4) 9(arraySize) 55 11: TypePointer Function 10 56 12: TypeFunction 2 11(ptr) 57 16: TypeFunction 8(int) 58 19: TypePointer Output 7(fvec4) 59 20(color): 19(ptr) Variable Output 60 21: TypePointer Input 10 61 22(ucol): 21(ptr) Variable Input 62 23: 8(int) Constant 2 63 24: TypePointer Input 7(fvec4) 64 27: TypePointer Output 8(int) 65 28(size): 27(ptr) Variable Output 66 29: TypeBool 67 30(spBool): 29(bool) SpecConstantTrue 68 33: TypeInt 32 0 69 34(scale): 33(int) SpecConstant 2 70 38: TypeFloat 64 71 39(spDouble):38(float64_t) SpecConstant 1413754136 1074340347 72 40(spFloat): 6(float) SpecConstant 1078523331 73 41:38(float64_t) SpecConstantOp 115 40(spFloat) 7450(dupArraySize): 8(int) SpecConstant 12 75 51: TypeArray 7(fvec4) 50(dupArraySize) 76 52: TypePointer Input 51 77 53(dupUcol): 52(ptr) Variable Input 78 60(spDupBool): 29(bool) SpecConstantTrue 79 63(dupScale): 33(int) SpecConstant 2 80 67(spDupDouble):38(float64_t) SpecConstant 1413754136 1074340347 81 68(spDupFloat): 6(float) SpecConstant 1078523331 82 69:38(float64_t) SpecConstantOp 115 68(spDupFloat) 83 75: TypePointer Function 8(int) 8477(gl_MaxImageUnits): 8(int) SpecConstant 8 85 4(main): 2 Function None 3 86 5: Label 87 47(param): 11(ptr) Variable Function 88 25: 24(ptr) AccessChain 22(ucol) 23 89 26: 7(fvec4) Load 25 90 Store 20(color) 26 91 Store 28(size) 9(arraySize) 92 SelectionMerge 32 None 93 BranchConditional 30(spBool) 31 32 94 31: Label 95 35: 6(float) ConvertUToF 34(scale) 96 36: 7(fvec4) Load 20(color) 97 37: 7(fvec4) VectorTimesScalar 36 35 98 Store 20(color) 37 99 Branch 32 100 32: Label 101 42:38(float64_t) FDiv 39(spDouble) 41 102 43: 6(float) FConvert 42 103 44: 7(fvec4) Load 20(color) 104 45: 7(fvec4) CompositeConstruct 43 43 43 43 105 46: 7(fvec4) FAdd 44 45 106 Store 20(color) 46 107 48: 10 Load 22(ucol) 108 Store 47(param) 48 109 49: 2 FunctionCall 14(foo(vf4[s216172782];) 47(param) 110 Return 111 FunctionEnd 11214(foo(vf4[s216172782];): 2 Function None 12 113 13(p): 11(ptr) FunctionParameter 114 15: Label 115 54: 24(ptr) AccessChain 53(dupUcol) 23 116 55: 7(fvec4) Load 54 117 56: 7(fvec4) Load 20(color) 118 57: 7(fvec4) FAdd 56 55 119 Store 20(color) 57 120 58: 8(int) Load 28(size) 121 59: 8(int) IAdd 58 50(dupArraySize) 122 Store 28(size) 59 123 SelectionMerge 62 None 124 BranchConditional 60(spDupBool) 61 62 125 61: Label 126 64: 6(float) ConvertUToF 63(dupScale) 127 65: 7(fvec4) Load 20(color) 128 66: 7(fvec4) VectorTimesScalar 65 64 129 Store 20(color) 66 130 Branch 62 131 62: Label 132 70:38(float64_t) FDiv 67(spDupDouble) 69 133 71: 6(float) FConvert 70 134 72: 7(fvec4) Load 20(color) 135 73: 7(fvec4) CompositeConstruct 71 71 71 71 136 74: 7(fvec4) FAdd 72 73 137 Store 20(color) 74 138 Return 139 FunctionEnd 14017(builtin_spec_constant(): 8(int) Function None 16 141 18: Label 142 76(result): 75(ptr) Variable Function 143 Store 76(result) 77(gl_MaxImageUnits) 144 78: 8(int) Load 76(result) 145 ReturnValue 78 146 FunctionEnd 147