1cb93a386Sopenharmony_ciOpCapability Shader 2cb93a386Sopenharmony_ci%1 = OpExtInstImport "GLSL.std.450" 3cb93a386Sopenharmony_ciOpMemoryModel Logical GLSL450 4cb93a386Sopenharmony_ciOpEntryPoint Fragment %_entrypoint_v "_entrypoint" %sk_FragColor %sk_Clockwise 5cb93a386Sopenharmony_ciOpExecutionMode %_entrypoint_v OriginUpperLeft 6cb93a386Sopenharmony_ciOpName %sk_FragColor "sk_FragColor" 7cb93a386Sopenharmony_ciOpName %sk_Clockwise "sk_Clockwise" 8cb93a386Sopenharmony_ciOpName %_UniformBuffer "_UniformBuffer" 9cb93a386Sopenharmony_ciOpMemberName %_UniformBuffer 0 "colorGreen" 10cb93a386Sopenharmony_ciOpMemberName %_UniformBuffer 1 "colorRed" 11cb93a386Sopenharmony_ciOpName %_entrypoint_v "_entrypoint_v" 12cb93a386Sopenharmony_ciOpName %main "main" 13cb93a386Sopenharmony_ciOpName %inv2x2 "inv2x2" 14cb93a386Sopenharmony_ciOpName %inv3x3 "inv3x3" 15cb93a386Sopenharmony_ciOpName %inv4x4 "inv4x4" 16cb93a386Sopenharmony_ciOpDecorate %sk_FragColor RelaxedPrecision 17cb93a386Sopenharmony_ciOpDecorate %sk_FragColor Location 0 18cb93a386Sopenharmony_ciOpDecorate %sk_FragColor Index 0 19cb93a386Sopenharmony_ciOpDecorate %sk_Clockwise BuiltIn FrontFacing 20cb93a386Sopenharmony_ciOpMemberDecorate %_UniformBuffer 0 Offset 0 21cb93a386Sopenharmony_ciOpMemberDecorate %_UniformBuffer 0 RelaxedPrecision 22cb93a386Sopenharmony_ciOpMemberDecorate %_UniformBuffer 1 Offset 16 23cb93a386Sopenharmony_ciOpMemberDecorate %_UniformBuffer 1 RelaxedPrecision 24cb93a386Sopenharmony_ciOpDecorate %_UniformBuffer Block 25cb93a386Sopenharmony_ciOpDecorate %10 Binding 0 26cb93a386Sopenharmony_ciOpDecorate %10 DescriptorSet 0 27cb93a386Sopenharmony_ciOpDecorate %inv2x2 RelaxedPrecision 28cb93a386Sopenharmony_ciOpDecorate %33 RelaxedPrecision 29cb93a386Sopenharmony_ciOpDecorate %34 RelaxedPrecision 30cb93a386Sopenharmony_ciOpDecorate %35 RelaxedPrecision 31cb93a386Sopenharmony_ciOpDecorate %inv3x3 RelaxedPrecision 32cb93a386Sopenharmony_ciOpDecorate %48 RelaxedPrecision 33cb93a386Sopenharmony_ciOpDecorate %49 RelaxedPrecision 34cb93a386Sopenharmony_ciOpDecorate %50 RelaxedPrecision 35cb93a386Sopenharmony_ciOpDecorate %51 RelaxedPrecision 36cb93a386Sopenharmony_ciOpDecorate %inv4x4 RelaxedPrecision 37cb93a386Sopenharmony_ciOpDecorate %60 RelaxedPrecision 38cb93a386Sopenharmony_ciOpDecorate %61 RelaxedPrecision 39cb93a386Sopenharmony_ciOpDecorate %62 RelaxedPrecision 40cb93a386Sopenharmony_ciOpDecorate %63 RelaxedPrecision 41cb93a386Sopenharmony_ciOpDecorate %64 RelaxedPrecision 42cb93a386Sopenharmony_ciOpDecorate %66 RelaxedPrecision 43cb93a386Sopenharmony_ciOpDecorate %67 RelaxedPrecision 44cb93a386Sopenharmony_ciOpDecorate %68 RelaxedPrecision 45cb93a386Sopenharmony_ciOpDecorate %69 RelaxedPrecision 46cb93a386Sopenharmony_ciOpDecorate %82 RelaxedPrecision 47cb93a386Sopenharmony_ciOpDecorate %83 RelaxedPrecision 48cb93a386Sopenharmony_ciOpDecorate %84 RelaxedPrecision 49cb93a386Sopenharmony_ciOpDecorate %85 RelaxedPrecision 50cb93a386Sopenharmony_ciOpDecorate %86 RelaxedPrecision 51cb93a386Sopenharmony_ciOpDecorate %105 RelaxedPrecision 52cb93a386Sopenharmony_ciOpDecorate %106 RelaxedPrecision 53cb93a386Sopenharmony_ciOpDecorate %107 RelaxedPrecision 54cb93a386Sopenharmony_ciOpDecorate %108 RelaxedPrecision 55cb93a386Sopenharmony_ciOpDecorate %109 RelaxedPrecision 56cb93a386Sopenharmony_ciOpDecorate %110 RelaxedPrecision 57cb93a386Sopenharmony_ciOpDecorate %134 RelaxedPrecision 58cb93a386Sopenharmony_ciOpDecorate %139 RelaxedPrecision 59cb93a386Sopenharmony_ciOpDecorate %140 RelaxedPrecision 60cb93a386Sopenharmony_ciOpDecorate %141 RelaxedPrecision 61cb93a386Sopenharmony_ciOpDecorate %142 RelaxedPrecision 62cb93a386Sopenharmony_ciOpDecorate %143 RelaxedPrecision 63cb93a386Sopenharmony_ciOpDecorate %168 RelaxedPrecision 64cb93a386Sopenharmony_ciOpDecorate %171 RelaxedPrecision 65cb93a386Sopenharmony_ciOpDecorate %172 RelaxedPrecision 66cb93a386Sopenharmony_ci%float = OpTypeFloat 32 67cb93a386Sopenharmony_ci%v4float = OpTypeVector %float 4 68cb93a386Sopenharmony_ci%_ptr_Output_v4float = OpTypePointer Output %v4float 69cb93a386Sopenharmony_ci%sk_FragColor = OpVariable %_ptr_Output_v4float Output 70cb93a386Sopenharmony_ci%bool = OpTypeBool 71cb93a386Sopenharmony_ci%_ptr_Input_bool = OpTypePointer Input %bool 72cb93a386Sopenharmony_ci%sk_Clockwise = OpVariable %_ptr_Input_bool Input 73cb93a386Sopenharmony_ci%_UniformBuffer = OpTypeStruct %v4float %v4float 74cb93a386Sopenharmony_ci%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer 75cb93a386Sopenharmony_ci%10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform 76cb93a386Sopenharmony_ci%void = OpTypeVoid 77cb93a386Sopenharmony_ci%15 = OpTypeFunction %void 78cb93a386Sopenharmony_ci%v2float = OpTypeVector %float 2 79cb93a386Sopenharmony_ci%float_0 = OpConstant %float 0 80cb93a386Sopenharmony_ci%19 = OpConstantComposite %v2float %float_0 %float_0 81cb93a386Sopenharmony_ci%_ptr_Function_v2float = OpTypePointer Function %v2float 82cb93a386Sopenharmony_ci%23 = OpTypeFunction %v4float %_ptr_Function_v2float 83cb93a386Sopenharmony_ci%mat2v2float = OpTypeMatrix %v2float 2 84cb93a386Sopenharmony_ci%_ptr_Function_mat2v2float = OpTypePointer Function %mat2v2float 85cb93a386Sopenharmony_ci%float_n2 = OpConstant %float -2 86cb93a386Sopenharmony_ci%float_1 = OpConstant %float 1 87cb93a386Sopenharmony_ci%float_1_5 = OpConstant %float 1.5 88cb93a386Sopenharmony_ci%float_n0_5 = OpConstant %float -0.5 89cb93a386Sopenharmony_ci%v3float = OpTypeVector %float 3 90cb93a386Sopenharmony_ci%mat3v3float = OpTypeMatrix %v3float 3 91cb93a386Sopenharmony_ci%_ptr_Function_mat3v3float = OpTypePointer Function %mat3v3float 92cb93a386Sopenharmony_ci%float_n24 = OpConstant %float -24 93cb93a386Sopenharmony_ci%float_18 = OpConstant %float 18 94cb93a386Sopenharmony_ci%float_5 = OpConstant %float 5 95cb93a386Sopenharmony_ci%float_20 = OpConstant %float 20 96cb93a386Sopenharmony_ci%float_n15 = OpConstant %float -15 97cb93a386Sopenharmony_ci%float_n4 = OpConstant %float -4 98cb93a386Sopenharmony_ci%float_n5 = OpConstant %float -5 99cb93a386Sopenharmony_ci%float_4 = OpConstant %float 4 100cb93a386Sopenharmony_ci%mat4v4float = OpTypeMatrix %v4float 4 101cb93a386Sopenharmony_ci%_ptr_Function_mat4v4float = OpTypePointer Function %mat4v4float 102cb93a386Sopenharmony_ci%float_0_5 = OpConstant %float 0.5 103cb93a386Sopenharmony_ci%float_n8 = OpConstant %float -8 104cb93a386Sopenharmony_ci%float_n1 = OpConstant %float -1 105cb93a386Sopenharmony_ci%float_2 = OpConstant %float 2 106cb93a386Sopenharmony_ci%float_3 = OpConstant %float 3 107cb93a386Sopenharmony_ci%false = OpConstantFalse %bool 108cb93a386Sopenharmony_ci%v2bool = OpTypeVector %bool 2 109cb93a386Sopenharmony_ci%v3bool = OpTypeVector %bool 3 110cb93a386Sopenharmony_ci%v4bool = OpTypeVector %bool 4 111cb93a386Sopenharmony_ci%float_6 = OpConstant %float 6 112cb93a386Sopenharmony_ci%float_7 = OpConstant %float 7 113cb93a386Sopenharmony_ci%float_8 = OpConstant %float 8 114cb93a386Sopenharmony_ci%float_9 = OpConstant %float 9 115cb93a386Sopenharmony_ci%_ptr_Function_v4float = OpTypePointer Function %v4float 116cb93a386Sopenharmony_ci%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float 117cb93a386Sopenharmony_ci%int = OpTypeInt 32 1 118cb93a386Sopenharmony_ci%int_0 = OpConstant %int 0 119cb93a386Sopenharmony_ci%int_1 = OpConstant %int 1 120cb93a386Sopenharmony_ci%_entrypoint_v = OpFunction %void None %15 121cb93a386Sopenharmony_ci%16 = OpLabel 122cb93a386Sopenharmony_ci%20 = OpVariable %_ptr_Function_v2float Function 123cb93a386Sopenharmony_ciOpStore %20 %19 124cb93a386Sopenharmony_ci%22 = OpFunctionCall %v4float %main %20 125cb93a386Sopenharmony_ciOpStore %sk_FragColor %22 126cb93a386Sopenharmony_ciOpReturn 127cb93a386Sopenharmony_ciOpFunctionEnd 128cb93a386Sopenharmony_ci%main = OpFunction %v4float None %23 129cb93a386Sopenharmony_ci%24 = OpFunctionParameter %_ptr_Function_v2float 130cb93a386Sopenharmony_ci%25 = OpLabel 131cb93a386Sopenharmony_ci%inv2x2 = OpVariable %_ptr_Function_mat2v2float Function 132cb93a386Sopenharmony_ci%inv3x3 = OpVariable %_ptr_Function_mat3v3float Function 133cb93a386Sopenharmony_ci%inv4x4 = OpVariable %_ptr_Function_mat4v4float Function 134cb93a386Sopenharmony_ci%159 = OpVariable %_ptr_Function_v4float Function 135cb93a386Sopenharmony_ci%33 = OpCompositeConstruct %v2float %float_n2 %float_1 136cb93a386Sopenharmony_ci%34 = OpCompositeConstruct %v2float %float_1_5 %float_n0_5 137cb93a386Sopenharmony_ci%35 = OpCompositeConstruct %mat2v2float %33 %34 138cb93a386Sopenharmony_ciOpStore %inv2x2 %35 139cb93a386Sopenharmony_ci%48 = OpCompositeConstruct %v3float %float_n24 %float_18 %float_5 140cb93a386Sopenharmony_ci%49 = OpCompositeConstruct %v3float %float_20 %float_n15 %float_n4 141cb93a386Sopenharmony_ci%50 = OpCompositeConstruct %v3float %float_n5 %float_4 %float_1 142cb93a386Sopenharmony_ci%51 = OpCompositeConstruct %mat3v3float %48 %49 %50 143cb93a386Sopenharmony_ciOpStore %inv3x3 %51 144cb93a386Sopenharmony_ci%60 = OpCompositeConstruct %v4float %float_n2 %float_n0_5 %float_1 %float_0_5 145cb93a386Sopenharmony_ci%61 = OpCompositeConstruct %v4float %float_1 %float_0_5 %float_0 %float_n0_5 146cb93a386Sopenharmony_ci%62 = OpCompositeConstruct %v4float %float_n8 %float_n1 %float_2 %float_2 147cb93a386Sopenharmony_ci%63 = OpCompositeConstruct %v4float %float_3 %float_0_5 %float_n1 %float_n0_5 148cb93a386Sopenharmony_ci%64 = OpCompositeConstruct %mat4v4float %60 %61 %62 %63 149cb93a386Sopenharmony_ciOpStore %inv4x4 %64 150cb93a386Sopenharmony_ci%66 = OpCompositeConstruct %v2float %float_n2 %float_1 151cb93a386Sopenharmony_ci%67 = OpCompositeConstruct %v2float %float_1_5 %float_n0_5 152cb93a386Sopenharmony_ci%68 = OpCompositeConstruct %mat2v2float %66 %67 153cb93a386Sopenharmony_ci%69 = OpLoad %mat2v2float %inv2x2 154cb93a386Sopenharmony_ci%71 = OpCompositeExtract %v2float %68 0 155cb93a386Sopenharmony_ci%72 = OpCompositeExtract %v2float %69 0 156cb93a386Sopenharmony_ci%73 = OpFOrdEqual %v2bool %71 %72 157cb93a386Sopenharmony_ci%74 = OpAll %bool %73 158cb93a386Sopenharmony_ci%75 = OpCompositeExtract %v2float %68 1 159cb93a386Sopenharmony_ci%76 = OpCompositeExtract %v2float %69 1 160cb93a386Sopenharmony_ci%77 = OpFOrdEqual %v2bool %75 %76 161cb93a386Sopenharmony_ci%78 = OpAll %bool %77 162cb93a386Sopenharmony_ci%79 = OpLogicalAnd %bool %74 %78 163cb93a386Sopenharmony_ciOpSelectionMerge %81 None 164cb93a386Sopenharmony_ciOpBranchConditional %79 %80 %81 165cb93a386Sopenharmony_ci%80 = OpLabel 166cb93a386Sopenharmony_ci%82 = OpCompositeConstruct %v3float %float_n24 %float_18 %float_5 167cb93a386Sopenharmony_ci%83 = OpCompositeConstruct %v3float %float_20 %float_n15 %float_n4 168cb93a386Sopenharmony_ci%84 = OpCompositeConstruct %v3float %float_n5 %float_4 %float_1 169cb93a386Sopenharmony_ci%85 = OpCompositeConstruct %mat3v3float %82 %83 %84 170cb93a386Sopenharmony_ci%86 = OpLoad %mat3v3float %inv3x3 171cb93a386Sopenharmony_ci%88 = OpCompositeExtract %v3float %85 0 172cb93a386Sopenharmony_ci%89 = OpCompositeExtract %v3float %86 0 173cb93a386Sopenharmony_ci%90 = OpFOrdEqual %v3bool %88 %89 174cb93a386Sopenharmony_ci%91 = OpAll %bool %90 175cb93a386Sopenharmony_ci%92 = OpCompositeExtract %v3float %85 1 176cb93a386Sopenharmony_ci%93 = OpCompositeExtract %v3float %86 1 177cb93a386Sopenharmony_ci%94 = OpFOrdEqual %v3bool %92 %93 178cb93a386Sopenharmony_ci%95 = OpAll %bool %94 179cb93a386Sopenharmony_ci%96 = OpLogicalAnd %bool %91 %95 180cb93a386Sopenharmony_ci%97 = OpCompositeExtract %v3float %85 2 181cb93a386Sopenharmony_ci%98 = OpCompositeExtract %v3float %86 2 182cb93a386Sopenharmony_ci%99 = OpFOrdEqual %v3bool %97 %98 183cb93a386Sopenharmony_ci%100 = OpAll %bool %99 184cb93a386Sopenharmony_ci%101 = OpLogicalAnd %bool %96 %100 185cb93a386Sopenharmony_ciOpBranch %81 186cb93a386Sopenharmony_ci%81 = OpLabel 187cb93a386Sopenharmony_ci%102 = OpPhi %bool %false %25 %101 %80 188cb93a386Sopenharmony_ciOpSelectionMerge %104 None 189cb93a386Sopenharmony_ciOpBranchConditional %102 %103 %104 190cb93a386Sopenharmony_ci%103 = OpLabel 191cb93a386Sopenharmony_ci%105 = OpCompositeConstruct %v4float %float_n2 %float_n0_5 %float_1 %float_0_5 192cb93a386Sopenharmony_ci%106 = OpCompositeConstruct %v4float %float_1 %float_0_5 %float_0 %float_n0_5 193cb93a386Sopenharmony_ci%107 = OpCompositeConstruct %v4float %float_n8 %float_n1 %float_2 %float_2 194cb93a386Sopenharmony_ci%108 = OpCompositeConstruct %v4float %float_3 %float_0_5 %float_n1 %float_n0_5 195cb93a386Sopenharmony_ci%109 = OpCompositeConstruct %mat4v4float %105 %106 %107 %108 196cb93a386Sopenharmony_ci%110 = OpLoad %mat4v4float %inv4x4 197cb93a386Sopenharmony_ci%112 = OpCompositeExtract %v4float %109 0 198cb93a386Sopenharmony_ci%113 = OpCompositeExtract %v4float %110 0 199cb93a386Sopenharmony_ci%114 = OpFOrdEqual %v4bool %112 %113 200cb93a386Sopenharmony_ci%115 = OpAll %bool %114 201cb93a386Sopenharmony_ci%116 = OpCompositeExtract %v4float %109 1 202cb93a386Sopenharmony_ci%117 = OpCompositeExtract %v4float %110 1 203cb93a386Sopenharmony_ci%118 = OpFOrdEqual %v4bool %116 %117 204cb93a386Sopenharmony_ci%119 = OpAll %bool %118 205cb93a386Sopenharmony_ci%120 = OpLogicalAnd %bool %115 %119 206cb93a386Sopenharmony_ci%121 = OpCompositeExtract %v4float %109 2 207cb93a386Sopenharmony_ci%122 = OpCompositeExtract %v4float %110 2 208cb93a386Sopenharmony_ci%123 = OpFOrdEqual %v4bool %121 %122 209cb93a386Sopenharmony_ci%124 = OpAll %bool %123 210cb93a386Sopenharmony_ci%125 = OpLogicalAnd %bool %120 %124 211cb93a386Sopenharmony_ci%126 = OpCompositeExtract %v4float %109 3 212cb93a386Sopenharmony_ci%127 = OpCompositeExtract %v4float %110 3 213cb93a386Sopenharmony_ci%128 = OpFOrdEqual %v4bool %126 %127 214cb93a386Sopenharmony_ci%129 = OpAll %bool %128 215cb93a386Sopenharmony_ci%130 = OpLogicalAnd %bool %125 %129 216cb93a386Sopenharmony_ciOpBranch %104 217cb93a386Sopenharmony_ci%104 = OpLabel 218cb93a386Sopenharmony_ci%131 = OpPhi %bool %false %81 %130 %103 219cb93a386Sopenharmony_ciOpSelectionMerge %133 None 220cb93a386Sopenharmony_ciOpBranchConditional %131 %132 %133 221cb93a386Sopenharmony_ci%132 = OpLabel 222cb93a386Sopenharmony_ci%139 = OpCompositeConstruct %v3float %float_1 %float_2 %float_3 223cb93a386Sopenharmony_ci%140 = OpCompositeConstruct %v3float %float_4 %float_5 %float_6 224cb93a386Sopenharmony_ci%141 = OpCompositeConstruct %v3float %float_7 %float_8 %float_9 225cb93a386Sopenharmony_ci%142 = OpCompositeConstruct %mat3v3float %139 %140 %141 226cb93a386Sopenharmony_ci%134 = OpExtInst %mat3v3float %1 MatrixInverse %142 227cb93a386Sopenharmony_ci%143 = OpLoad %mat3v3float %inv3x3 228cb93a386Sopenharmony_ci%144 = OpCompositeExtract %v3float %134 0 229cb93a386Sopenharmony_ci%145 = OpCompositeExtract %v3float %143 0 230cb93a386Sopenharmony_ci%146 = OpFOrdNotEqual %v3bool %144 %145 231cb93a386Sopenharmony_ci%147 = OpAny %bool %146 232cb93a386Sopenharmony_ci%148 = OpCompositeExtract %v3float %134 1 233cb93a386Sopenharmony_ci%149 = OpCompositeExtract %v3float %143 1 234cb93a386Sopenharmony_ci%150 = OpFOrdNotEqual %v3bool %148 %149 235cb93a386Sopenharmony_ci%151 = OpAny %bool %150 236cb93a386Sopenharmony_ci%152 = OpLogicalOr %bool %147 %151 237cb93a386Sopenharmony_ci%153 = OpCompositeExtract %v3float %134 2 238cb93a386Sopenharmony_ci%154 = OpCompositeExtract %v3float %143 2 239cb93a386Sopenharmony_ci%155 = OpFOrdNotEqual %v3bool %153 %154 240cb93a386Sopenharmony_ci%156 = OpAny %bool %155 241cb93a386Sopenharmony_ci%157 = OpLogicalOr %bool %152 %156 242cb93a386Sopenharmony_ciOpBranch %133 243cb93a386Sopenharmony_ci%133 = OpLabel 244cb93a386Sopenharmony_ci%158 = OpPhi %bool %false %104 %157 %132 245cb93a386Sopenharmony_ciOpSelectionMerge %163 None 246cb93a386Sopenharmony_ciOpBranchConditional %158 %161 %162 247cb93a386Sopenharmony_ci%161 = OpLabel 248cb93a386Sopenharmony_ci%164 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0 249cb93a386Sopenharmony_ci%168 = OpLoad %v4float %164 250cb93a386Sopenharmony_ciOpStore %159 %168 251cb93a386Sopenharmony_ciOpBranch %163 252cb93a386Sopenharmony_ci%162 = OpLabel 253cb93a386Sopenharmony_ci%169 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1 254cb93a386Sopenharmony_ci%171 = OpLoad %v4float %169 255cb93a386Sopenharmony_ciOpStore %159 %171 256cb93a386Sopenharmony_ciOpBranch %163 257cb93a386Sopenharmony_ci%163 = OpLabel 258cb93a386Sopenharmony_ci%172 = OpLoad %v4float %159 259cb93a386Sopenharmony_ciOpReturnValue %172 260cb93a386Sopenharmony_ciOpFunctionEnd 261