| 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" |
| 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 %41 RelaxedPrecision |
| OpDecorate %44 RelaxedPrecision |
| OpDecorate %45 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_Uniform_mat2v2float = OpTypePointer Uniform %mat2v2float |
| %int = OpTypeInt 32 1 |
| %int_0 = OpConstant %int 0 |
| %float_n2 = OpConstant %float -2 |
| %bool = OpTypeBool |
| %_ptr_Function_v4float = OpTypePointer Function %v4float |
| %_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 |
| %33 = OpVariable %_ptr_Function_v4float Function |
| %25 = OpAccessChain %_ptr_Uniform_mat2v2float %7 %int_0 |
| %29 = OpLoad %mat2v2float %25 |
| %24 = OpExtInst %float %1 Determinant %29 |
| %31 = OpFOrdEqual %bool %24 %float_n2 |
| OpSelectionMerge %37 None |
| OpBranchConditional %31 %35 %36 |
| %35 = OpLabel |
| %38 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1 |
| %41 = OpLoad %v4float %38 |
| OpStore %33 %41 |
| OpBranch %37 |
| %36 = OpLabel |
| %42 = OpAccessChain %_ptr_Uniform_v4float %7 %int_2 |
| %44 = OpLoad %v4float %42 |
| OpStore %33 %44 |
| OpBranch %37 |
| %37 = OpLabel |
| %45 = OpLoad %v4float %33 |
| OpReturnValue %45 |
| OpFunctionEnd |