1 OpCapability Shader 2 %1 = OpExtInstImport "GLSL.std.450" 3 OpMemoryModel Logical GLSL450 4 OpEntryPoint Fragment %_entrypoint_v "_entrypoint" %sk_FragColor 5 OpExecutionMode %_entrypoint_v OriginUpperLeft 6 OpName %sk_FragColor "sk_FragColor" 7 OpName %globalArray "globalArray" 8 OpName %globalMatrix "globalMatrix" 9 OpName %_UniformBuffer "_UniformBuffer" 10 OpMemberName %_UniformBuffer 0 "colorRed" 11 OpMemberName %_UniformBuffer 1 "testMatrix2x2" 12 OpMemberName %_UniformBuffer 2 "testArray" 13 OpName %_entrypoint_v "_entrypoint_v" 14 OpName %main "main" 15 OpName %localArray "localArray" 16 OpName %localMatrix "localMatrix" 17 OpDecorate %sk_FragColor RelaxedPrecision 18 OpDecorate %sk_FragColor Location 0 19 OpDecorate %sk_FragColor Index 0 20 OpDecorate %globalArray RelaxedPrecision 21 OpDecorate %_arr_float_int_5 ArrayStride 16 22 OpDecorate %13 RelaxedPrecision 23 OpDecorate %globalMatrix RelaxedPrecision 24 OpMemberDecorate %_UniformBuffer 0 Offset 0 25 OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision 26 OpMemberDecorate %_UniformBuffer 1 Offset 16 27 OpMemberDecorate %_UniformBuffer 1 ColMajor 28 OpMemberDecorate %_UniformBuffer 1 MatrixStride 16 29 OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision 30 OpMemberDecorate %_UniformBuffer 2 Offset 48 31 OpMemberDecorate %_UniformBuffer 2 RelaxedPrecision 32 OpDecorate %_UniformBuffer Block 33 OpDecorate %20 Binding 0 34 OpDecorate %20 DescriptorSet 0 35 OpDecorate %localArray RelaxedPrecision 36 OpDecorate %40 RelaxedPrecision 37 OpDecorate %localMatrix RelaxedPrecision 38 OpDecorate %51 RelaxedPrecision 39 OpDecorate %52 RelaxedPrecision 40 OpDecorate %54 RelaxedPrecision 41 OpDecorate %57 RelaxedPrecision 42 OpDecorate %60 RelaxedPrecision 43 OpDecorate %63 RelaxedPrecision 44 OpDecorate %71 RelaxedPrecision 45 OpDecorate %72 RelaxedPrecision 46 OpDecorate %82 RelaxedPrecision 47 OpDecorate %83 RelaxedPrecision 48 OpDecorate %84 RelaxedPrecision 49 OpDecorate %86 RelaxedPrecision 50 OpDecorate %87 RelaxedPrecision 51 OpDecorate %94 RelaxedPrecision 52 OpDecorate %95 RelaxedPrecision 53 OpDecorate %97 RelaxedPrecision 54 OpDecorate %100 RelaxedPrecision 55 OpDecorate %103 RelaxedPrecision 56 OpDecorate %106 RelaxedPrecision 57 OpDecorate %113 RelaxedPrecision 58 OpDecorate %114 RelaxedPrecision 59 OpDecorate %121 RelaxedPrecision 60 OpDecorate %122 RelaxedPrecision 61 OpDecorate %123 RelaxedPrecision 62 OpDecorate %125 RelaxedPrecision 63 OpDecorate %126 RelaxedPrecision 64 OpDecorate %133 RelaxedPrecision 65 %float = OpTypeFloat 32 66 %v4float = OpTypeVector %float 4 67%_ptr_Output_v4float = OpTypePointer Output %v4float 68%sk_FragColor = OpVariable %_ptr_Output_v4float Output 69 %int = OpTypeInt 32 1 70 %int_5 = OpConstant %int 5 71%_arr_float_int_5 = OpTypeArray %float %int_5 72%_ptr_Private__arr_float_int_5 = OpTypePointer Private %_arr_float_int_5 73%globalArray = OpVariable %_ptr_Private__arr_float_int_5 Private 74 %float_1 = OpConstant %float 1 75 %v2float = OpTypeVector %float 2 76%mat2v2float = OpTypeMatrix %v2float 2 77%_ptr_Private_mat2v2float = OpTypePointer Private %mat2v2float 78%globalMatrix = OpVariable %_ptr_Private_mat2v2float Private 79 %18 = OpConstantComposite %v2float %float_1 %float_1 80 %19 = OpConstantComposite %mat2v2float %18 %18 81%_UniformBuffer = OpTypeStruct %v4float %mat2v2float %_arr_float_int_5 82%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer 83 %20 = OpVariable %_ptr_Uniform__UniformBuffer Uniform 84 %void = OpTypeVoid 85 %25 = OpTypeFunction %void 86 %float_0 = OpConstant %float 0 87 %28 = OpConstantComposite %v2float %float_0 %float_0 88%_ptr_Function_v2float = OpTypePointer Function %v2float 89 %32 = OpTypeFunction %v4float %_ptr_Function_v2float 90%_ptr_Function__arr_float_int_5 = OpTypePointer Function %_arr_float_int_5 91 %float_2 = OpConstant %float 2 92 %float_3 = OpConstant %float 3 93 %float_4 = OpConstant %float 4 94%_ptr_Function_mat2v2float = OpTypePointer Function %mat2v2float 95 %43 = OpConstantComposite %v2float %float_0 %float_1 96 %44 = OpConstantComposite %v2float %float_2 %float_3 97 %45 = OpConstantComposite %mat2v2float %43 %44 98 %bool = OpTypeBool 99 %true = OpConstantTrue %bool 100%_ptr_Uniform__arr_float_int_5 = OpTypePointer Uniform %_arr_float_int_5 101 %int_2 = OpConstant %int 2 102%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float 103 %int_0 = OpConstant %int 0 104 %v2bool = OpTypeVector %bool 2 105%_ptr_Uniform_mat2v2float = OpTypePointer Uniform %mat2v2float 106 %int_1 = OpConstant %int 1 107 %134 = OpConstantComposite %v4float %float_0 %float_1 %float_0 %float_1 108%_entrypoint_v = OpFunction %void None %25 109 %26 = OpLabel 110 %29 = OpVariable %_ptr_Function_v2float Function 111 OpStore %29 %28 112 %31 = OpFunctionCall %v4float %main %29 113 OpStore %sk_FragColor %31 114 OpReturn 115 OpFunctionEnd 116 %main = OpFunction %v4float None %32 117 %33 = OpFunctionParameter %_ptr_Function_v2float 118 %34 = OpLabel 119 %localArray = OpVariable %_ptr_Function__arr_float_int_5 Function 120%localMatrix = OpVariable %_ptr_Function_mat2v2float Function 121 %13 = OpCompositeConstruct %_arr_float_int_5 %float_1 %float_1 %float_1 %float_1 %float_1 122 OpStore %globalArray %13 123 OpStore %globalMatrix %19 124 %40 = OpCompositeConstruct %_arr_float_int_5 %float_0 %float_1 %float_2 %float_3 %float_4 125 OpStore %localArray %40 126 OpStore %localMatrix %45 127 %48 = OpAccessChain %_ptr_Uniform__arr_float_int_5 %20 %int_2 128 %51 = OpLoad %_arr_float_int_5 %48 129 %52 = OpCompositeExtract %float %51 0 130 %53 = OpFOrdEqual %bool %float_1 %52 131 %54 = OpCompositeExtract %float %51 1 132 %55 = OpFOrdEqual %bool %float_1 %54 133 %56 = OpLogicalAnd %bool %55 %53 134 %57 = OpCompositeExtract %float %51 2 135 %58 = OpFOrdEqual %bool %float_1 %57 136 %59 = OpLogicalAnd %bool %58 %56 137 %60 = OpCompositeExtract %float %51 3 138 %61 = OpFOrdEqual %bool %float_1 %60 139 %62 = OpLogicalAnd %bool %61 %59 140 %63 = OpCompositeExtract %float %51 4 141 %64 = OpFOrdEqual %bool %float_1 %63 142 %65 = OpLogicalAnd %bool %64 %62 143 OpSelectionMerge %67 None 144 OpBranchConditional %65 %67 %66 145 %66 = OpLabel 146 %68 = OpAccessChain %_ptr_Uniform_v4float %20 %int_0 147 %71 = OpLoad %v4float %68 148 %72 = OpVectorShuffle %v2float %71 %71 0 1 149 %73 = OpFOrdEqual %v2bool %18 %72 150 %75 = OpAll %bool %73 151 OpBranch %67 152 %67 = OpLabel 153 %76 = OpPhi %bool %true %34 %75 %66 154 OpSelectionMerge %78 None 155 OpBranchConditional %76 %78 %77 156 %77 = OpLabel 157 %79 = OpAccessChain %_ptr_Uniform_mat2v2float %20 %int_1 158 %82 = OpLoad %mat2v2float %79 159 %83 = OpCompositeExtract %v2float %82 0 160 %84 = OpFOrdEqual %v2bool %18 %83 161 %85 = OpAll %bool %84 162 %86 = OpCompositeExtract %v2float %82 1 163 %87 = OpFOrdEqual %v2bool %18 %86 164 %88 = OpAll %bool %87 165 %89 = OpLogicalAnd %bool %85 %88 166 OpBranch %78 167 %78 = OpLabel 168 %90 = OpPhi %bool %true %67 %89 %77 169 OpSelectionMerge %92 None 170 OpBranchConditional %90 %92 %91 171 %91 = OpLabel 172 %93 = OpAccessChain %_ptr_Uniform__arr_float_int_5 %20 %int_2 173 %94 = OpLoad %_arr_float_int_5 %93 174 %95 = OpCompositeExtract %float %94 0 175 %96 = OpFOrdEqual %bool %float_0 %95 176 %97 = OpCompositeExtract %float %94 1 177 %98 = OpFOrdEqual %bool %float_1 %97 178 %99 = OpLogicalAnd %bool %98 %96 179 %100 = OpCompositeExtract %float %94 2 180 %101 = OpFOrdEqual %bool %float_2 %100 181 %102 = OpLogicalAnd %bool %101 %99 182 %103 = OpCompositeExtract %float %94 3 183 %104 = OpFOrdEqual %bool %float_3 %103 184 %105 = OpLogicalAnd %bool %104 %102 185 %106 = OpCompositeExtract %float %94 4 186 %107 = OpFOrdEqual %bool %float_4 %106 187 %108 = OpLogicalAnd %bool %107 %105 188 OpBranch %92 189 %92 = OpLabel 190 %109 = OpPhi %bool %true %78 %108 %91 191 OpSelectionMerge %111 None 192 OpBranchConditional %109 %111 %110 193 %110 = OpLabel 194 %112 = OpAccessChain %_ptr_Uniform_v4float %20 %int_0 195 %113 = OpLoad %v4float %112 196 %114 = OpVectorShuffle %v2float %113 %113 0 1 197 %115 = OpFOrdEqual %v2bool %18 %114 198 %116 = OpAll %bool %115 199 OpBranch %111 200 %111 = OpLabel 201 %117 = OpPhi %bool %true %92 %116 %110 202 OpSelectionMerge %119 None 203 OpBranchConditional %117 %119 %118 204 %118 = OpLabel 205 %120 = OpAccessChain %_ptr_Uniform_mat2v2float %20 %int_1 206 %121 = OpLoad %mat2v2float %120 207 %122 = OpCompositeExtract %v2float %121 0 208 %123 = OpFOrdEqual %v2bool %43 %122 209 %124 = OpAll %bool %123 210 %125 = OpCompositeExtract %v2float %121 1 211 %126 = OpFOrdEqual %v2bool %44 %125 212 %127 = OpAll %bool %126 213 %128 = OpLogicalAnd %bool %124 %127 214 OpBranch %119 215 %119 = OpLabel 216 %129 = OpPhi %bool %true %111 %128 %118 217 OpSelectionMerge %131 None 218 OpBranchConditional %129 %130 %131 219 %130 = OpLabel 220 %132 = OpAccessChain %_ptr_Uniform_v4float %20 %int_0 221 %133 = OpLoad %v4float %132 222 OpReturnValue %133 223 %131 = OpLabel 224 OpReturnValue %134 225 OpFunctionEnd 226