Alastair Donaldson | f7e73d4 | 2021-07-23 13:10:12 +0000 | [diff] [blame] | 1 | OpCapability Shader |
| 2 | %1 = OpExtInstImport "GLSL.std.450" |
| 3 | OpMemoryModel Logical GLSL450 |
| 4 | OpEntryPoint Fragment %main "main" %_GLF_color |
| 5 | OpExecutionMode %main OriginUpperLeft |
| 6 | OpSource ESSL 320 |
| 7 | OpName %main "main" |
| 8 | OpName %A "A" |
| 9 | OpName %buf0 "buf0" |
| 10 | OpMemberName %buf0 0 "_GLF_uniform_int_values" |
| 11 | OpName %_ "" |
| 12 | OpName %ref "ref" |
| 13 | OpName %a "a" |
| 14 | OpName %i "i" |
| 15 | OpName %ok "ok" |
| 16 | OpName %i_0 "i" |
| 17 | OpName %_GLF_color "_GLF_color" |
| 18 | OpDecorate %_arr_int_uint_19 ArrayStride 16 |
| 19 | OpMemberDecorate %buf0 0 Offset 0 |
| 20 | OpDecorate %buf0 Block |
| 21 | OpDecorate %_ DescriptorSet 0 |
| 22 | OpDecorate %_ Binding 0 |
| 23 | OpDecorate %_GLF_color Location 0 |
| 24 | %void = OpTypeVoid |
| 25 | %14 = OpTypeFunction %void |
| 26 | %int = OpTypeInt 32 1 |
| 27 | %uint = OpTypeInt 32 0 |
| 28 | %uint_17 = OpConstant %uint 17 |
| 29 | %_arr_int_uint_17 = OpTypeArray %int %uint_17 |
| 30 | %_ptr_Function__arr_int_uint_17 = OpTypePointer Function %_arr_int_uint_17 |
| 31 | %uint_19 = OpConstant %uint 19 |
| 32 | %_arr_int_uint_19 = OpTypeArray %int %uint_19 |
| 33 | %buf0 = OpTypeStruct %_arr_int_uint_19 |
| 34 | %_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0 |
| 35 | %_ = OpVariable %_ptr_Uniform_buf0 Uniform |
| 36 | %int_0 = OpConstant %int 0 |
| 37 | %int_2 = OpConstant %int 2 |
| 38 | %_ptr_Uniform_int = OpTypePointer Uniform %int |
| 39 | %int_3 = OpConstant %int 3 |
| 40 | %int_4 = OpConstant %int 4 |
| 41 | %int_5 = OpConstant %int 5 |
| 42 | %int_6 = OpConstant %int 6 |
| 43 | %int_7 = OpConstant %int 7 |
| 44 | %int_8 = OpConstant %int 8 |
| 45 | %int_9 = OpConstant %int 9 |
| 46 | %int_10 = OpConstant %int 10 |
| 47 | %int_11 = OpConstant %int 11 |
| 48 | %int_12 = OpConstant %int 12 |
| 49 | %int_13 = OpConstant %int 13 |
| 50 | %int_14 = OpConstant %int 14 |
| 51 | %int_15 = OpConstant %int 15 |
| 52 | %int_16 = OpConstant %int 16 |
| 53 | %int_17 = OpConstant %int 17 |
| 54 | %int_18 = OpConstant %int 18 |
| 55 | %int_1 = OpConstant %int 1 |
| 56 | %_ptr_Function_int = OpTypePointer Function %int |
| 57 | %bool = OpTypeBool |
| 58 | %_ptr_Function_bool = OpTypePointer Function %bool |
| 59 | %true = OpConstantTrue %bool |
| 60 | %false = OpConstantFalse %bool |
| 61 | %float = OpTypeFloat 32 |
| 62 | %v4float = OpTypeVector %float 4 |
| 63 | %_ptr_Output_v4float = OpTypePointer Output %v4float |
| 64 | %_GLF_color = OpVariable %_ptr_Output_v4float Output |
| 65 | %main = OpFunction %void None %14 |
| 66 | %50 = OpLabel |
| 67 | %A = OpVariable %_ptr_Function__arr_int_uint_17 Function |
| 68 | %ref = OpVariable %_ptr_Function__arr_int_uint_17 Function |
| 69 | %a = OpVariable %_ptr_Function_int Function |
| 70 | %i = OpVariable %_ptr_Function_int Function |
| 71 | %ok = OpVariable %_ptr_Function_bool Function |
| 72 | %i_0 = OpVariable %_ptr_Function_int Function |
| 73 | %51 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2 |
| 74 | %52 = OpLoad %int %51 |
| 75 | %53 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2 |
| 76 | %54 = OpLoad %int %53 |
| 77 | %55 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2 |
| 78 | %56 = OpLoad %int %55 |
| 79 | %57 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2 |
| 80 | %58 = OpLoad %int %57 |
| 81 | %59 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2 |
| 82 | %60 = OpLoad %int %59 |
| 83 | %61 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2 |
| 84 | %62 = OpLoad %int %61 |
| 85 | %63 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2 |
| 86 | %64 = OpLoad %int %63 |
| 87 | %65 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2 |
| 88 | %66 = OpLoad %int %65 |
| 89 | %67 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2 |
| 90 | %68 = OpLoad %int %67 |
| 91 | %69 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2 |
| 92 | %70 = OpLoad %int %69 |
| 93 | %71 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2 |
| 94 | %72 = OpLoad %int %71 |
| 95 | %73 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2 |
| 96 | %74 = OpLoad %int %73 |
| 97 | %75 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2 |
| 98 | %76 = OpLoad %int %75 |
| 99 | %77 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2 |
| 100 | %78 = OpLoad %int %77 |
| 101 | %79 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2 |
| 102 | %80 = OpLoad %int %79 |
| 103 | %81 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2 |
| 104 | %82 = OpLoad %int %81 |
| 105 | %83 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2 |
| 106 | %84 = OpLoad %int %83 |
| 107 | %85 = OpCompositeConstruct %_arr_int_uint_17 %52 %54 %56 %58 %60 %62 %64 %66 %68 %70 %72 %74 %76 %78 %80 %82 %84 |
| 108 | OpStore %A %85 |
| 109 | %86 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_3 |
| 110 | %87 = OpLoad %int %86 |
| 111 | %88 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_4 |
| 112 | %89 = OpLoad %int %88 |
| 113 | %90 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_5 |
| 114 | %91 = OpLoad %int %90 |
| 115 | %92 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_6 |
| 116 | %93 = OpLoad %int %92 |
| 117 | %94 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_7 |
| 118 | %95 = OpLoad %int %94 |
| 119 | %96 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_8 |
| 120 | %97 = OpLoad %int %96 |
| 121 | %98 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_9 |
| 122 | %99 = OpLoad %int %98 |
| 123 | %100 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_10 |
| 124 | %101 = OpLoad %int %100 |
| 125 | %102 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_11 |
| 126 | %103 = OpLoad %int %102 |
| 127 | %104 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_12 |
| 128 | %105 = OpLoad %int %104 |
| 129 | %106 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_13 |
| 130 | %107 = OpLoad %int %106 |
| 131 | %108 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_14 |
| 132 | %109 = OpLoad %int %108 |
| 133 | %110 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_15 |
| 134 | %111 = OpLoad %int %110 |
| 135 | %112 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_16 |
| 136 | %113 = OpLoad %int %112 |
| 137 | %114 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_17 |
| 138 | %115 = OpLoad %int %114 |
| 139 | %116 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_18 |
| 140 | %117 = OpLoad %int %116 |
| 141 | %118 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_1 |
| 142 | %119 = OpLoad %int %118 |
| 143 | %120 = OpCompositeConstruct %_arr_int_uint_17 %87 %89 %91 %93 %95 %97 %99 %101 %103 %105 %107 %109 %111 %113 %115 %117 %119 |
| 144 | OpStore %ref %120 |
| 145 | %121 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2 |
| 146 | %122 = OpLoad %int %121 |
| 147 | OpStore %a %122 |
| 148 | %123 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2 |
| 149 | %124 = OpLoad %int %123 |
| 150 | OpStore %i %124 |
| 151 | OpBranch %125 |
| 152 | %125 = OpLabel |
| 153 | OpLoopMerge %126 %127 None |
| 154 | OpBranch %128 |
| 155 | %128 = OpLabel |
| 156 | %129 = OpLoad %int %i |
| 157 | %130 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_1 |
| 158 | %131 = OpLoad %int %130 |
| 159 | %132 = OpSLessThan %bool %129 %131 |
| 160 | OpBranchConditional %132 %133 %126 |
| 161 | %133 = OpLabel |
| 162 | %134 = OpLoad %int %i |
| 163 | %135 = OpLoad %int %a |
| 164 | %136 = OpISub %int %135 %int_1 |
| 165 | OpStore %a %136 |
| 166 | %137 = OpAccessChain %_ptr_Function_int %A %134 |
| 167 | OpStore %137 %135 |
| 168 | %138 = OpLoad %int %i |
| 169 | %139 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2 |
| 170 | %140 = OpLoad %int %139 |
| 171 | %141 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_18 |
| 172 | %142 = OpLoad %int %141 |
| 173 | %143 = OpExtInst %int %1 SClamp %138 %140 %142 |
| 174 | %144 = OpLoad %int %i |
| 175 | %145 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_3 |
| 176 | %146 = OpLoad %int %145 |
| 177 | %147 = OpIAdd %int %144 %146 |
| 178 | %148 = OpAccessChain %_ptr_Function_int %A %143 |
| 179 | OpStore %148 %147 |
| 180 | OpBranch %127 |
| 181 | %127 = OpLabel |
| 182 | %149 = OpLoad %int %i |
| 183 | %150 = OpIAdd %int %149 %int_1 |
| 184 | OpStore %i %150 |
| 185 | OpBranch %125 |
| 186 | %126 = OpLabel |
| 187 | OpStore %ok %true |
| 188 | %151 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2 |
| 189 | %152 = OpLoad %int %151 |
| 190 | OpStore %i_0 %152 |
| 191 | OpBranch %153 |
| 192 | %153 = OpLabel |
| 193 | OpLoopMerge %154 %155 None |
| 194 | OpBranch %156 |
| 195 | %156 = OpLabel |
| 196 | %157 = OpLoad %int %i_0 |
| 197 | %158 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_1 |
| 198 | %159 = OpLoad %int %158 |
| 199 | %160 = OpSLessThan %bool %157 %159 |
| 200 | OpBranchConditional %160 %161 %154 |
| 201 | %161 = OpLabel |
| 202 | %162 = OpLoad %int %i_0 |
| 203 | %163 = OpAccessChain %_ptr_Function_int %A %162 |
| 204 | %164 = OpLoad %int %163 |
| 205 | %165 = OpLoad %int %i_0 |
| 206 | %166 = OpAccessChain %_ptr_Function_int %ref %165 |
| 207 | %167 = OpLoad %int %166 |
| 208 | %168 = OpINotEqual %bool %164 %167 |
| 209 | OpSelectionMerge %169 None |
| 210 | OpBranchConditional %168 %170 %169 |
| 211 | %170 = OpLabel |
| 212 | OpStore %ok %false |
| 213 | OpBranch %169 |
| 214 | %169 = OpLabel |
| 215 | OpBranch %155 |
| 216 | %155 = OpLabel |
| 217 | %171 = OpLoad %int %i_0 |
| 218 | %172 = OpIAdd %int %171 %int_1 |
| 219 | OpStore %i_0 %172 |
| 220 | OpBranch %153 |
| 221 | %154 = OpLabel |
| 222 | %173 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2 |
| 223 | %174 = OpLoad %int %173 |
| 224 | %175 = OpConvertSToF %float %174 |
| 225 | %176 = OpCompositeConstruct %v4float %175 %175 %175 %175 |
| 226 | OpStore %_GLF_color %176 |
| 227 | %177 = OpLoad %bool %ok |
| 228 | OpSelectionMerge %178 None |
| 229 | OpBranchConditional %177 %179 %178 |
| 230 | %179 = OpLabel |
| 231 | %180 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_3 |
| 232 | %181 = OpLoad %int %180 |
| 233 | %182 = OpConvertSToF %float %181 |
| 234 | %183 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2 |
| 235 | %184 = OpLoad %int %183 |
| 236 | %185 = OpConvertSToF %float %184 |
| 237 | %186 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2 |
| 238 | %187 = OpLoad %int %186 |
| 239 | %188 = OpConvertSToF %float %187 |
| 240 | %189 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_3 |
| 241 | %190 = OpLoad %int %189 |
| 242 | %191 = OpConvertSToF %float %190 |
| 243 | %192 = OpCompositeConstruct %v4float %182 %185 %188 %191 |
| 244 | OpStore %_GLF_color %192 |
| 245 | OpBranch %178 |
| 246 | %178 = OpLabel |
| 247 | OpReturn |
| 248 | OpFunctionEnd |