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 OpDecorate %sk_FragColor RelaxedPrecision 13 OpDecorate %sk_FragColor Location 0 14 OpDecorate %sk_FragColor Index 0 15 OpMemberDecorate %_UniformBuffer 0 Offset 0 16 OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision 17 OpMemberDecorate %_UniformBuffer 1 Offset 16 18 OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision 19 OpDecorate %_UniformBuffer Block 20 OpDecorate %7 Binding 0 21 OpDecorate %7 DescriptorSet 0 22 OpDecorate %27 RelaxedPrecision 23 %float = OpTypeFloat 32 24 %v4float = OpTypeVector %float 4 25%_ptr_Output_v4float = OpTypePointer Output %v4float 26%sk_FragColor = OpVariable %_ptr_Output_v4float Output 27%_UniformBuffer = OpTypeStruct %v4float %v4float 28%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer 29 %7 = OpVariable %_ptr_Uniform__UniformBuffer Uniform 30 %void = OpTypeVoid 31 %12 = OpTypeFunction %void 32 %float_0 = OpConstant %float 0 33 %v2float = OpTypeVector %float 2 34 %16 = OpConstantComposite %v2float %float_0 %float_0 35%_ptr_Function_v2float = OpTypePointer Function %v2float 36 %20 = OpTypeFunction %v4float %_ptr_Function_v2float 37%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float 38 %int = OpTypeInt 32 1 39 %int_0 = OpConstant %int 0 40%_entrypoint_v = OpFunction %void None %12 41 %13 = OpLabel 42 %17 = OpVariable %_ptr_Function_v2float Function 43 OpStore %17 %16 44 %19 = OpFunctionCall %v4float %main %17 45 OpStore %sk_FragColor %19 46 OpReturn 47 OpFunctionEnd 48 %main = OpFunction %v4float None %20 49 %21 = OpFunctionParameter %_ptr_Function_v2float 50 %22 = OpLabel 51 %23 = OpAccessChain %_ptr_Uniform_v4float %7 %int_0 52 %27 = OpLoad %v4float %23 53 OpReturnValue %27 54 OpFunctionEnd 55