OpCapability Shader %1 = OpExtInstImport "GLSL.std.450" OpMemoryModel Logical GLSL450 OpEntryPoint Fragment %_entrypoint_v "_entrypoint" %sk_FragColor OpExecutionMode %_entrypoint_v OriginUpperLeft OpName %sk_FragColor "sk_FragColor" OpName %_UniformBuffer "_UniformBuffer" OpMemberName %_UniformBuffer 0 "testMatrix2x2" OpMemberName %_UniformBuffer 1 "colorGreen" OpMemberName %_UniformBuffer 2 "colorRed" OpName %_entrypoint_v "_entrypoint_v" OpName %main "main" OpName %inputVal "inputVal" OpName %expectedB "expectedB" OpDecorate %sk_FragColor RelaxedPrecision OpDecorate %sk_FragColor Location 0 OpDecorate %sk_FragColor Index 0 OpMemberDecorate %_UniformBuffer 0 Offset 0 OpMemberDecorate %_UniformBuffer 0 ColMajor OpMemberDecorate %_UniformBuffer 0 MatrixStride 16 OpMemberDecorate %_UniformBuffer 1 Offset 32 OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision OpMemberDecorate %_UniformBuffer 2 Offset 48 OpMemberDecorate %_UniformBuffer 2 RelaxedPrecision OpDecorate %_UniformBuffer Block OpDecorate %7 Binding 0 OpDecorate %7 DescriptorSet 0 OpDecorate %88 RelaxedPrecision OpDecorate %91 RelaxedPrecision OpDecorate %92 RelaxedPrecision %float = OpTypeFloat 32 %v4float = OpTypeVector %float 4 %_ptr_Output_v4float = OpTypePointer Output %v4float %sk_FragColor = OpVariable %_ptr_Output_v4float Output %v2float = OpTypeVector %float 2 %mat2v2float = OpTypeMatrix %v2float 2 %_UniformBuffer = OpTypeStruct %mat2v2float %v4float %v4float %_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer %7 = OpVariable %_ptr_Uniform__UniformBuffer Uniform %void = OpTypeVoid %14 = OpTypeFunction %void %float_0 = OpConstant %float 0 %17 = OpConstantComposite %v2float %float_0 %float_0 %_ptr_Function_v2float = OpTypePointer Function %v2float %21 = OpTypeFunction %v4float %_ptr_Function_v2float %_ptr_Function_v4float = OpTypePointer Function %v4float %_ptr_Uniform_mat2v2float = OpTypePointer Uniform %mat2v2float %int = OpTypeInt 32 1 %int_0 = OpConstant %int 0 %float_1 = OpConstant %float 1 %float_n1 = OpConstant %float -1 %38 = OpConstantComposite %v4float %float_1 %float_1 %float_n1 %float_n1 %v4int = OpTypeVector %int 4 %_ptr_Function_v4int = OpTypePointer Function %v4int %int_1065353216 = OpConstant %int 1065353216 %int_1073741824 = OpConstant %int 1073741824 %int_n1069547520 = OpConstant %int -1069547520 %int_n1065353216 = OpConstant %int -1065353216 %47 = OpConstantComposite %v4int %int_1065353216 %int_1073741824 %int_n1069547520 %int_n1065353216 %bool = OpTypeBool %false = OpConstantFalse %bool %v2int = OpTypeVector %int 2 %v2bool = OpTypeVector %bool 2 %v3float = OpTypeVector %float 3 %v3int = OpTypeVector %int 3 %v3bool = OpTypeVector %bool 3 %v4bool = OpTypeVector %bool 4 %_ptr_Uniform_v4float = OpTypePointer Uniform %v4float %int_1 = OpConstant %int 1 %int_2 = OpConstant %int 2 %_entrypoint_v = OpFunction %void None %14 %15 = OpLabel %18 = OpVariable %_ptr_Function_v2float Function OpStore %18 %17 %20 = OpFunctionCall %v4float %main %18 OpStore %sk_FragColor %20 OpReturn OpFunctionEnd %main = OpFunction %v4float None %21 %22 = OpFunctionParameter %_ptr_Function_v2float %23 = OpLabel %inputVal = OpVariable %_ptr_Function_v4float Function %expectedB = OpVariable %_ptr_Function_v4int Function %81 = OpVariable %_ptr_Function_v4float Function %26 = OpAccessChain %_ptr_Uniform_mat2v2float %7 %int_0 %30 = OpLoad %mat2v2float %26 %31 = OpCompositeExtract %float %30 0 0 %32 = OpCompositeExtract %float %30 0 1 %33 = OpCompositeExtract %float %30 1 0 %34 = OpCompositeExtract %float %30 1 1 %35 = OpCompositeConstruct %v4float %31 %32 %33 %34 %39 = OpFMul %v4float %35 %38 OpStore %inputVal %39 OpStore %expectedB %47 %50 = OpCompositeExtract %float %39 0 %51 = OpBitcast %float %int_1065353216 %52 = OpFOrdEqual %bool %50 %51 OpSelectionMerge %54 None OpBranchConditional %52 %53 %54 %53 = OpLabel %55 = OpVectorShuffle %v2float %39 %39 0 1 %57 = OpVectorShuffle %v2int %47 %47 0 1 %56 = OpBitcast %v2float %57 %59 = OpFOrdEqual %v2bool %55 %56 %61 = OpAll %bool %59 OpBranch %54 %54 = OpLabel %62 = OpPhi %bool %false %23 %61 %53 OpSelectionMerge %64 None OpBranchConditional %62 %63 %64 %63 = OpLabel %65 = OpVectorShuffle %v3float %39 %39 0 1 2 %68 = OpVectorShuffle %v3int %47 %47 0 1 2 %67 = OpBitcast %v3float %68 %70 = OpFOrdEqual %v3bool %65 %67 %72 = OpAll %bool %70 OpBranch %64 %64 = OpLabel %73 = OpPhi %bool %false %54 %72 %63 OpSelectionMerge %75 None OpBranchConditional %73 %74 %75 %74 = OpLabel %76 = OpBitcast %v4float %47 %77 = OpFOrdEqual %v4bool %39 %76 %79 = OpAll %bool %77 OpBranch %75 %75 = OpLabel %80 = OpPhi %bool %false %64 %79 %74 OpSelectionMerge %84 None OpBranchConditional %80 %82 %83 %82 = OpLabel %85 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1 %88 = OpLoad %v4float %85 OpStore %81 %88 OpBranch %84 %83 = OpLabel %89 = OpAccessChain %_ptr_Uniform_v4float %7 %int_2 %91 = OpLoad %v4float %89 OpStore %81 %91 OpBranch %84 %84 = OpLabel %92 = OpLoad %v4float %81 OpReturnValue %92 OpFunctionEnd