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 "colorGreen" 9 OpMemberName %_UniformBuffer 1 "colorRed" 10 OpName %_entrypoint_v "_entrypoint_v" 11 OpName %main "main" 12 OpName %test1 "test1" 13 OpName %test2 "test2" 14 OpName %test3 "test3" 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 RelaxedPrecision 20 OpMemberDecorate %_UniformBuffer 1 Offset 16 21 OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision 22 OpDecorate %_UniformBuffer Block 23 OpDecorate %7 Binding 0 24 OpDecorate %7 DescriptorSet 0 25 OpDecorate %_arr_float_int_4 ArrayStride 16 26 OpDecorate %_arr_v2float_int_2 ArrayStride 16 27 OpDecorate %_arr_mat4v4float_int_1 ArrayStride 64 28 OpDecorate %75 RelaxedPrecision 29 OpDecorate %77 RelaxedPrecision 30 OpDecorate %78 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%_UniformBuffer = OpTypeStruct %v4float %v4float 36%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer 37 %7 = OpVariable %_ptr_Uniform__UniformBuffer Uniform 38 %void = OpTypeVoid 39 %12 = OpTypeFunction %void 40 %float_0 = OpConstant %float 0 41 %v2float = OpTypeVector %float 2 42 %16 = OpConstantComposite %v2float %float_0 %float_0 43%_ptr_Function_v2float = OpTypePointer Function %v2float 44 %20 = OpTypeFunction %v4float %_ptr_Function_v2float 45 %int = OpTypeInt 32 1 46 %int_4 = OpConstant %int 4 47%_arr_float_int_4 = OpTypeArray %float %int_4 48%_ptr_Function__arr_float_int_4 = OpTypePointer Function %_arr_float_int_4 49 %float_1 = OpConstant %float 1 50 %float_2 = OpConstant %float 2 51 %float_3 = OpConstant %float 3 52 %float_4 = OpConstant %float 4 53 %int_2 = OpConstant %int 2 54%_arr_v2float_int_2 = OpTypeArray %v2float %int_2 55%_ptr_Function__arr_v2float_int_2 = OpTypePointer Function %_arr_v2float_int_2 56 %37 = OpConstantComposite %v2float %float_1 %float_2 57 %38 = OpConstantComposite %v2float %float_3 %float_4 58%mat4v4float = OpTypeMatrix %v4float 4 59 %int_1 = OpConstant %int 1 60%_arr_mat4v4float_int_1 = OpTypeArray %mat4v4float %int_1 61%_ptr_Function__arr_mat4v4float_int_1 = OpTypePointer Function %_arr_mat4v4float_int_1 62 %float_16 = OpConstant %float 16 63 %46 = OpConstantComposite %v4float %float_16 %float_0 %float_0 %float_0 64 %47 = OpConstantComposite %v4float %float_0 %float_16 %float_0 %float_0 65 %48 = OpConstantComposite %v4float %float_0 %float_0 %float_16 %float_0 66 %49 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_16 67 %50 = OpConstantComposite %mat4v4float %46 %47 %48 %49 68 %int_3 = OpConstant %int 3 69%_ptr_Function_float = OpTypePointer Function %float 70 %int_0 = OpConstant %int 0 71%_ptr_Function_v4float = OpTypePointer Function %v4float 72 %float_24 = OpConstant %float 24 73 %bool = OpTypeBool 74%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float 75%_entrypoint_v = OpFunction %void None %12 76 %13 = OpLabel 77 %17 = OpVariable %_ptr_Function_v2float Function 78 OpStore %17 %16 79 %19 = OpFunctionCall %v4float %main %17 80 OpStore %sk_FragColor %19 81 OpReturn 82 OpFunctionEnd 83 %main = OpFunction %v4float None %20 84 %21 = OpFunctionParameter %_ptr_Function_v2float 85 %22 = OpLabel 86 %test1 = OpVariable %_ptr_Function__arr_float_int_4 Function 87 %test2 = OpVariable %_ptr_Function__arr_v2float_int_2 Function 88 %test3 = OpVariable %_ptr_Function__arr_mat4v4float_int_1 Function 89 %69 = OpVariable %_ptr_Function_v4float Function 90 %32 = OpCompositeConstruct %_arr_float_int_4 %float_1 %float_2 %float_3 %float_4 91 OpStore %test1 %32 92 %39 = OpCompositeConstruct %_arr_v2float_int_2 %37 %38 93 OpStore %test2 %39 94 %51 = OpCompositeConstruct %_arr_mat4v4float_int_1 %50 95 OpStore %test3 %51 96 %53 = OpAccessChain %_ptr_Function_float %test1 %int_3 97 %55 = OpLoad %float %53 98 %56 = OpAccessChain %_ptr_Function_v2float %test2 %int_1 99 %57 = OpLoad %v2float %56 100 %58 = OpCompositeExtract %float %57 1 101 %59 = OpFAdd %float %55 %58 102 %61 = OpAccessChain %_ptr_Function_v4float %test3 %int_0 %int_3 103 %63 = OpLoad %v4float %61 104 %64 = OpCompositeExtract %float %63 3 105 %65 = OpFAdd %float %59 %64 106 %67 = OpFOrdEqual %bool %65 %float_24 107 OpSelectionMerge %72 None 108 OpBranchConditional %67 %70 %71 109 %70 = OpLabel 110 %73 = OpAccessChain %_ptr_Uniform_v4float %7 %int_0 111 %75 = OpLoad %v4float %73 112 OpStore %69 %75 113 OpBranch %72 114 %71 = OpLabel 115 %76 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1 116 %77 = OpLoad %v4float %76 117 OpStore %69 %77 118 OpBranch %72 119 %72 = OpLabel 120 %78 = OpLoad %v4float %69 121 OpReturnValue %78 122 OpFunctionEnd 123