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 %_UniformBuffer "_UniformBuffer" 8 OpMemberName %_UniformBuffer 0 "testMatrix2x2" 9 OpMemberName %_UniformBuffer 1 "colorGreen" 10 OpMemberName %_UniformBuffer 2 "colorRed" 11 OpName %_entrypoint_v "_entrypoint_v" 12 OpName %main "main" 13 OpName %inputVal "inputVal" 14 OpName %expectedB "expectedB" 15 OpDecorate %sk_FragColor RelaxedPrecision 16 OpDecorate %sk_FragColor Location 0 17 OpDecorate %sk_FragColor Index 0 18 OpMemberDecorate %_UniformBuffer 0 Offset 0 19 OpMemberDecorate %_UniformBuffer 0 ColMajor 20 OpMemberDecorate %_UniformBuffer 0 MatrixStride 16 21 OpMemberDecorate %_UniformBuffer 1 Offset 32 22 OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision 23 OpMemberDecorate %_UniformBuffer 2 Offset 48 24 OpMemberDecorate %_UniformBuffer 2 RelaxedPrecision 25 OpDecorate %_UniformBuffer Block 26 OpDecorate %7 Binding 0 27 OpDecorate %7 DescriptorSet 0 28 OpDecorate %88 RelaxedPrecision 29 OpDecorate %91 RelaxedPrecision 30 OpDecorate %92 RelaxedPrecision 31 %float = OpTypeFloat 32 32 %v4float = OpTypeVector %float 4 33%_ptr_Output_v4float = OpTypePointer Output %v4float 34%sk_FragColor = OpVariable %_ptr_Output_v4float Output 35 %v2float = OpTypeVector %float 2 36%mat2v2float = OpTypeMatrix %v2float 2 37%_UniformBuffer = OpTypeStruct %mat2v2float %v4float %v4float 38%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer 39 %7 = OpVariable %_ptr_Uniform__UniformBuffer Uniform 40 %void = OpTypeVoid 41 %14 = OpTypeFunction %void 42 %float_0 = OpConstant %float 0 43 %17 = OpConstantComposite %v2float %float_0 %float_0 44%_ptr_Function_v2float = OpTypePointer Function %v2float 45 %21 = OpTypeFunction %v4float %_ptr_Function_v2float 46%_ptr_Function_v4float = OpTypePointer Function %v4float 47%_ptr_Uniform_mat2v2float = OpTypePointer Uniform %mat2v2float 48 %int = OpTypeInt 32 1 49 %int_0 = OpConstant %int 0 50 %float_1 = OpConstant %float 1 51 %float_n1 = OpConstant %float -1 52 %38 = OpConstantComposite %v4float %float_1 %float_1 %float_n1 %float_n1 53 %v4int = OpTypeVector %int 4 54%_ptr_Function_v4int = OpTypePointer Function %v4int 55%int_1065353216 = OpConstant %int 1065353216 56%int_1073741824 = OpConstant %int 1073741824 57%int_n1069547520 = OpConstant %int -1069547520 58%int_n1065353216 = OpConstant %int -1065353216 59 %47 = OpConstantComposite %v4int %int_1065353216 %int_1073741824 %int_n1069547520 %int_n1065353216 60 %bool = OpTypeBool 61 %false = OpConstantFalse %bool 62 %v2int = OpTypeVector %int 2 63 %v2bool = OpTypeVector %bool 2 64 %v3float = OpTypeVector %float 3 65 %v3int = OpTypeVector %int 3 66 %v3bool = OpTypeVector %bool 3 67 %v4bool = OpTypeVector %bool 4 68%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float 69 %int_1 = OpConstant %int 1 70 %int_2 = OpConstant %int 2 71%_entrypoint_v = OpFunction %void None %14 72 %15 = OpLabel 73 %18 = OpVariable %_ptr_Function_v2float Function 74 OpStore %18 %17 75 %20 = OpFunctionCall %v4float %main %18 76 OpStore %sk_FragColor %20 77 OpReturn 78 OpFunctionEnd 79 %main = OpFunction %v4float None %21 80 %22 = OpFunctionParameter %_ptr_Function_v2float 81 %23 = OpLabel 82 %inputVal = OpVariable %_ptr_Function_v4float Function 83 %expectedB = OpVariable %_ptr_Function_v4int Function 84 %81 = OpVariable %_ptr_Function_v4float Function 85 %26 = OpAccessChain %_ptr_Uniform_mat2v2float %7 %int_0 86 %30 = OpLoad %mat2v2float %26 87 %31 = OpCompositeExtract %float %30 0 0 88 %32 = OpCompositeExtract %float %30 0 1 89 %33 = OpCompositeExtract %float %30 1 0 90 %34 = OpCompositeExtract %float %30 1 1 91 %35 = OpCompositeConstruct %v4float %31 %32 %33 %34 92 %39 = OpFMul %v4float %35 %38 93 OpStore %inputVal %39 94 OpStore %expectedB %47 95 %50 = OpCompositeExtract %float %39 0 96 %51 = OpBitcast %float %int_1065353216 97 %52 = OpFOrdEqual %bool %50 %51 98 OpSelectionMerge %54 None 99 OpBranchConditional %52 %53 %54 100 %53 = OpLabel 101 %55 = OpVectorShuffle %v2float %39 %39 0 1 102 %57 = OpVectorShuffle %v2int %47 %47 0 1 103 %56 = OpBitcast %v2float %57 104 %59 = OpFOrdEqual %v2bool %55 %56 105 %61 = OpAll %bool %59 106 OpBranch %54 107 %54 = OpLabel 108 %62 = OpPhi %bool %false %23 %61 %53 109 OpSelectionMerge %64 None 110 OpBranchConditional %62 %63 %64 111 %63 = OpLabel 112 %65 = OpVectorShuffle %v3float %39 %39 0 1 2 113 %68 = OpVectorShuffle %v3int %47 %47 0 1 2 114 %67 = OpBitcast %v3float %68 115 %70 = OpFOrdEqual %v3bool %65 %67 116 %72 = OpAll %bool %70 117 OpBranch %64 118 %64 = OpLabel 119 %73 = OpPhi %bool %false %54 %72 %63 120 OpSelectionMerge %75 None 121 OpBranchConditional %73 %74 %75 122 %74 = OpLabel 123 %76 = OpBitcast %v4float %47 124 %77 = OpFOrdEqual %v4bool %39 %76 125 %79 = OpAll %bool %77 126 OpBranch %75 127 %75 = OpLabel 128 %80 = OpPhi %bool %false %64 %79 %74 129 OpSelectionMerge %84 None 130 OpBranchConditional %80 %82 %83 131 %82 = OpLabel 132 %85 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1 133 %88 = OpLoad %v4float %85 134 OpStore %81 %88 135 OpBranch %84 136 %83 = OpLabel 137 %89 = OpAccessChain %_ptr_Uniform_v4float %7 %int_2 138 %91 = OpLoad %v4float %89 139 OpStore %81 %91 140 OpBranch %84 141 %84 = OpLabel 142 %92 = OpLoad %v4float %81 143 OpReturnValue %92 144 OpFunctionEnd 145