OpCapability Shader %1 = OpExtInstImport "GLSL.std.450" OpMemoryModel Logical GLSL450 OpEntryPoint Fragment %_entrypoint_v "_entrypoint" %sk_FragColor %sk_Clockwise OpExecutionMode %_entrypoint_v OriginUpperLeft OpName %sk_FragColor "sk_FragColor" OpName %sk_Clockwise "sk_Clockwise" OpName %_UniformBuffer "_UniformBuffer" OpMemberName %_UniformBuffer 0 "testInputs" OpMemberName %_UniformBuffer 1 "colorGreen" OpMemberName %_UniformBuffer 2 "colorRed" OpMemberName %_UniformBuffer 3 "colorWhite" OpName %_entrypoint_v "_entrypoint_v" OpName %main "main" OpName %expectedA "expectedA" OpName %expectedB "expectedB" OpDecorate %sk_FragColor RelaxedPrecision OpDecorate %sk_FragColor Location 0 OpDecorate %sk_FragColor Index 0 OpDecorate %sk_Clockwise BuiltIn FrontFacing OpMemberDecorate %_UniformBuffer 0 Offset 0 OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision OpMemberDecorate %_UniformBuffer 1 Offset 16 OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision OpMemberDecorate %_UniformBuffer 2 Offset 32 OpMemberDecorate %_UniformBuffer 2 RelaxedPrecision OpMemberDecorate %_UniformBuffer 3 Offset 48 OpMemberDecorate %_UniformBuffer 3 RelaxedPrecision OpDecorate %_UniformBuffer Block OpDecorate %10 Binding 0 OpDecorate %10 DescriptorSet 0 OpDecorate %expectedA RelaxedPrecision OpDecorate %expectedB RelaxedPrecision OpDecorate %40 RelaxedPrecision OpDecorate %41 RelaxedPrecision OpDecorate %47 RelaxedPrecision OpDecorate %48 RelaxedPrecision OpDecorate %50 RelaxedPrecision OpDecorate %59 RelaxedPrecision OpDecorate %60 RelaxedPrecision OpDecorate %63 RelaxedPrecision OpDecorate %72 RelaxedPrecision OpDecorate %85 RelaxedPrecision OpDecorate %92 RelaxedPrecision OpDecorate %103 RelaxedPrecision OpDecorate %104 RelaxedPrecision OpDecorate %107 RelaxedPrecision OpDecorate %108 RelaxedPrecision OpDecorate %115 RelaxedPrecision OpDecorate %116 RelaxedPrecision OpDecorate %118 RelaxedPrecision OpDecorate %119 RelaxedPrecision OpDecorate %120 RelaxedPrecision OpDecorate %128 RelaxedPrecision OpDecorate %129 RelaxedPrecision OpDecorate %131 RelaxedPrecision OpDecorate %132 RelaxedPrecision OpDecorate %133 RelaxedPrecision OpDecorate %141 RelaxedPrecision OpDecorate %143 RelaxedPrecision OpDecorate %153 RelaxedPrecision OpDecorate %160 RelaxedPrecision OpDecorate %173 RelaxedPrecision OpDecorate %176 RelaxedPrecision OpDecorate %177 RelaxedPrecision %float = OpTypeFloat 32 %v4float = OpTypeVector %float 4 %_ptr_Output_v4float = OpTypePointer Output %v4float %sk_FragColor = OpVariable %_ptr_Output_v4float Output %bool = OpTypeBool %_ptr_Input_bool = OpTypePointer Input %bool %sk_Clockwise = OpVariable %_ptr_Input_bool Input %_UniformBuffer = OpTypeStruct %v4float %v4float %v4float %v4float %_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer %10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform %void = OpTypeVoid %15 = OpTypeFunction %void %float_0 = OpConstant %float 0 %v2float = OpTypeVector %float 2 %19 = OpConstantComposite %v2float %float_0 %float_0 %_ptr_Function_v2float = OpTypePointer Function %v2float %23 = OpTypeFunction %v4float %_ptr_Function_v2float %_ptr_Function_v4float = OpTypePointer Function %v4float %float_0_75 = OpConstant %float 0.75 %float_0_25 = OpConstant %float 0.25 %30 = OpConstantComposite %v4float %float_0_75 %float_0 %float_0_75 %float_0_25 %float_1 = OpConstant %float 1 %33 = OpConstantComposite %v4float %float_0_25 %float_0 %float_0_75 %float_1 %false = OpConstantFalse %bool %_ptr_Uniform_v4float = OpTypePointer Uniform %v4float %int = OpTypeInt 32 1 %int_0 = OpConstant %int 0 %49 = OpConstantComposite %v2float %float_1 %float_1 %v2bool = OpTypeVector %bool 2 %v3float = OpTypeVector %float 3 %62 = OpConstantComposite %v3float %float_1 %float_1 %float_1 %v3bool = OpTypeVector %bool 3 %73 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1 %v4bool = OpTypeVector %bool 4 %true = OpConstantTrue %bool %84 = OpConstantComposite %v2float %float_0_75 %float_0 %91 = OpConstantComposite %v3float %float_0_75 %float_0 %float_0_75 %int_3 = OpConstant %int 3 %152 = OpConstantComposite %v2float %float_0_25 %float_0 %159 = OpConstantComposite %v3float %float_0_25 %float_0 %float_0_75 %int_1 = OpConstant %int 1 %int_2 = OpConstant %int 2 %_entrypoint_v = OpFunction %void None %15 %16 = OpLabel %20 = OpVariable %_ptr_Function_v2float Function OpStore %20 %19 %22 = OpFunctionCall %v4float %main %20 OpStore %sk_FragColor %22 OpReturn OpFunctionEnd %main = OpFunction %v4float None %23 %24 = OpFunctionParameter %_ptr_Function_v2float %25 = OpLabel %expectedA = OpVariable %_ptr_Function_v4float Function %expectedB = OpVariable %_ptr_Function_v4float Function %167 = OpVariable %_ptr_Function_v4float Function OpStore %expectedA %30 OpStore %expectedB %33 %36 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0 %40 = OpLoad %v4float %36 %41 = OpCompositeExtract %float %40 0 %35 = OpFMod %float %41 %float_1 %42 = OpFOrdEqual %bool %35 %float_0_75 OpSelectionMerge %44 None OpBranchConditional %42 %43 %44 %43 = OpLabel %46 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0 %47 = OpLoad %v4float %46 %48 = OpVectorShuffle %v2float %47 %47 0 1 %45 = OpFMod %v2float %48 %49 %50 = OpVectorShuffle %v2float %30 %30 0 1 %51 = OpFOrdEqual %v2bool %45 %50 %53 = OpAll %bool %51 OpBranch %44 %44 = OpLabel %54 = OpPhi %bool %false %25 %53 %43 OpSelectionMerge %56 None OpBranchConditional %54 %55 %56 %55 = OpLabel %58 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0 %59 = OpLoad %v4float %58 %60 = OpVectorShuffle %v3float %59 %59 0 1 2 %57 = OpFMod %v3float %60 %62 %63 = OpVectorShuffle %v3float %30 %30 0 1 2 %64 = OpFOrdEqual %v3bool %57 %63 %66 = OpAll %bool %64 OpBranch %56 %56 = OpLabel %67 = OpPhi %bool %false %44 %66 %55 OpSelectionMerge %69 None OpBranchConditional %67 %68 %69 %68 = OpLabel %71 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0 %72 = OpLoad %v4float %71 %70 = OpFMod %v4float %72 %73 %74 = OpFOrdEqual %v4bool %70 %30 %76 = OpAll %bool %74 OpBranch %69 %69 = OpLabel %77 = OpPhi %bool %false %56 %76 %68 OpSelectionMerge %79 None OpBranchConditional %77 %78 %79 %78 = OpLabel OpBranch %79 %79 = OpLabel %81 = OpPhi %bool %false %69 %true %78 OpSelectionMerge %83 None OpBranchConditional %81 %82 %83 %82 = OpLabel %85 = OpVectorShuffle %v2float %30 %30 0 1 %86 = OpFOrdEqual %v2bool %84 %85 %87 = OpAll %bool %86 OpBranch %83 %83 = OpLabel %88 = OpPhi %bool %false %79 %87 %82 OpSelectionMerge %90 None OpBranchConditional %88 %89 %90 %89 = OpLabel %92 = OpVectorShuffle %v3float %30 %30 0 1 2 %93 = OpFOrdEqual %v3bool %91 %92 %94 = OpAll %bool %93 OpBranch %90 %90 = OpLabel %95 = OpPhi %bool %false %83 %94 %89 OpSelectionMerge %97 None OpBranchConditional %95 %96 %97 %96 = OpLabel OpBranch %97 %97 = OpLabel %98 = OpPhi %bool %false %90 %true %96 OpSelectionMerge %100 None OpBranchConditional %98 %99 %100 %99 = OpLabel %102 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0 %103 = OpLoad %v4float %102 %104 = OpCompositeExtract %float %103 0 %105 = OpAccessChain %_ptr_Uniform_v4float %10 %int_3 %107 = OpLoad %v4float %105 %108 = OpCompositeExtract %float %107 0 %101 = OpFMod %float %104 %108 %109 = OpFOrdEqual %bool %101 %float_0_75 OpBranch %100 %100 = OpLabel %110 = OpPhi %bool %false %97 %109 %99 OpSelectionMerge %112 None OpBranchConditional %110 %111 %112 %111 = OpLabel %114 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0 %115 = OpLoad %v4float %114 %116 = OpVectorShuffle %v2float %115 %115 0 1 %117 = OpAccessChain %_ptr_Uniform_v4float %10 %int_3 %118 = OpLoad %v4float %117 %119 = OpVectorShuffle %v2float %118 %118 0 1 %113 = OpFMod %v2float %116 %119 %120 = OpVectorShuffle %v2float %30 %30 0 1 %121 = OpFOrdEqual %v2bool %113 %120 %122 = OpAll %bool %121 OpBranch %112 %112 = OpLabel %123 = OpPhi %bool %false %100 %122 %111 OpSelectionMerge %125 None OpBranchConditional %123 %124 %125 %124 = OpLabel %127 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0 %128 = OpLoad %v4float %127 %129 = OpVectorShuffle %v3float %128 %128 0 1 2 %130 = OpAccessChain %_ptr_Uniform_v4float %10 %int_3 %131 = OpLoad %v4float %130 %132 = OpVectorShuffle %v3float %131 %131 0 1 2 %126 = OpFMod %v3float %129 %132 %133 = OpVectorShuffle %v3float %30 %30 0 1 2 %134 = OpFOrdEqual %v3bool %126 %133 %135 = OpAll %bool %134 OpBranch %125 %125 = OpLabel %136 = OpPhi %bool %false %112 %135 %124 OpSelectionMerge %138 None OpBranchConditional %136 %137 %138 %137 = OpLabel %140 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0 %141 = OpLoad %v4float %140 %142 = OpAccessChain %_ptr_Uniform_v4float %10 %int_3 %143 = OpLoad %v4float %142 %139 = OpFMod %v4float %141 %143 %144 = OpFOrdEqual %v4bool %139 %30 %145 = OpAll %bool %144 OpBranch %138 %138 = OpLabel %146 = OpPhi %bool %false %125 %145 %137 OpSelectionMerge %148 None OpBranchConditional %146 %147 %148 %147 = OpLabel OpBranch %148 %148 = OpLabel %149 = OpPhi %bool %false %138 %true %147 OpSelectionMerge %151 None OpBranchConditional %149 %150 %151 %150 = OpLabel %153 = OpVectorShuffle %v2float %33 %33 0 1 %154 = OpFOrdEqual %v2bool %152 %153 %155 = OpAll %bool %154 OpBranch %151 %151 = OpLabel %156 = OpPhi %bool %false %148 %155 %150 OpSelectionMerge %158 None OpBranchConditional %156 %157 %158 %157 = OpLabel %160 = OpVectorShuffle %v3float %33 %33 0 1 2 %161 = OpFOrdEqual %v3bool %159 %160 %162 = OpAll %bool %161 OpBranch %158 %158 = OpLabel %163 = OpPhi %bool %false %151 %162 %157 OpSelectionMerge %165 None OpBranchConditional %163 %164 %165 %164 = OpLabel OpBranch %165 %165 = OpLabel %166 = OpPhi %bool %false %158 %true %164 OpSelectionMerge %170 None OpBranchConditional %166 %168 %169 %168 = OpLabel %171 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1 %173 = OpLoad %v4float %171 OpStore %167 %173 OpBranch %170 %169 = OpLabel %174 = OpAccessChain %_ptr_Uniform_v4float %10 %int_2 %176 = OpLoad %v4float %174 OpStore %167 %176 OpBranch %170 %170 = OpLabel %177 = OpLoad %v4float %167 OpReturnValue %177 OpFunctionEnd