| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 69 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Fragment %main "main" %gl_FragCoord_param_1 %x_GLF_color_1_1 |
| OpExecutionMode %main OriginUpperLeft |
| OpName %gl_FragCoord_param_1 "gl_FragCoord_param_1" |
| OpName %x_GLF_color_1_1 "x_GLF_color_1_1" |
| OpName %buf0 "buf0" |
| OpMemberName %buf0 0 "injectionSwitch" |
| OpName %x_7 "x_7" |
| OpName %gl_FragCoord "gl_FragCoord" |
| OpName %x_GLF_color "x_GLF_color" |
| OpName %computePoint_ "computePoint_" |
| OpName %main_1 "main_1" |
| OpName %x_34 "x_34" |
| OpName %main_out "main_out" |
| OpMemberName %main_out 0 "x_GLF_color_1" |
| OpName %main_inner "main_inner" |
| OpName %gl_FragCoord_param "gl_FragCoord_param" |
| OpName %main "main" |
| OpDecorate %gl_FragCoord_param_1 BuiltIn FragCoord |
| OpDecorate %x_GLF_color_1_1 Location 0 |
| OpDecorate %buf0 Block |
| OpMemberDecorate %buf0 0 Offset 0 |
| OpDecorate %x_7 NonWritable |
| OpDecorate %x_7 DescriptorSet 0 |
| OpDecorate %x_7 Binding 0 |
| OpMemberDecorate %main_out 0 Offset 0 |
| %float = OpTypeFloat 32 |
| %v4float = OpTypeVector %float 4 |
| %_ptr_Input_v4float = OpTypePointer Input %v4float |
| %gl_FragCoord_param_1 = OpVariable %_ptr_Input_v4float Input |
| %_ptr_Output_v4float = OpTypePointer Output %v4float |
| %7 = OpConstantNull %v4float |
| %x_GLF_color_1_1 = OpVariable %_ptr_Output_v4float Output %7 |
| %v2float = OpTypeVector %float 2 |
| %buf0 = OpTypeStruct %v2float |
| %_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0 |
| %x_7 = OpVariable %_ptr_Uniform_buf0 Uniform |
| %_ptr_Private_v4float = OpTypePointer Private %v4float |
| %gl_FragCoord = OpVariable %_ptr_Private_v4float Private %7 |
| %x_GLF_color = OpVariable %_ptr_Private_v4float Private %7 |
| %v3float = OpTypeVector %float 3 |
| %15 = OpTypeFunction %v3float |
| %uint = OpTypeInt 32 0 |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_Uniform_float = OpTypePointer Uniform %float |
| %uint_1 = OpConstant %uint 1 |
| %bool = OpTypeBool |
| %float_0 = OpConstant %float 0 |
| %32 = OpConstantComposite %v3float %float_0 %float_0 %float_0 |
| %void = OpTypeVoid |
| %33 = OpTypeFunction %void |
| %false = OpConstantFalse %bool |
| %_ptr_Function_bool = OpTypePointer Function %bool |
| %40 = OpConstantNull %bool |
| %_ptr_Private_float = OpTypePointer Private %float |
| %true = OpConstantTrue %bool |
| %float_1 = OpConstant %float 1 |
| %55 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1 |
| %main_out = OpTypeStruct %v4float |
| %56 = OpTypeFunction %main_out %v4float |
| %computePoint_ = OpFunction %v3float None %15 |
| %18 = OpLabel |
| %22 = OpAccessChain %_ptr_Uniform_float %x_7 %uint_0 %uint_0 |
| %23 = OpLoad %float %22 |
| %25 = OpAccessChain %_ptr_Uniform_float %x_7 %uint_0 %uint_1 |
| %26 = OpLoad %float %25 |
| %27 = OpFOrdGreaterThan %bool %23 %26 |
| OpSelectionMerge %29 None |
| OpBranchConditional %27 %30 %29 |
| %30 = OpLabel |
| OpKill |
| %29 = OpLabel |
| OpReturnValue %32 |
| OpFunctionEnd |
| %main_1 = OpFunction %void None %33 |
| %36 = OpLabel |
| %x_34 = OpVariable %_ptr_Function_bool Function %40 |
| OpStore %x_34 %false |
| OpBranch %41 |
| %41 = OpLabel |
| OpLoopMerge %42 %43 None |
| OpBranch %44 |
| %44 = OpLabel |
| %45 = OpFunctionCall %v3float %computePoint_ |
| %47 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_0 |
| %48 = OpLoad %float %47 |
| %49 = OpFOrdLessThan %bool %48 %float_0 |
| OpSelectionMerge %50 None |
| OpBranchConditional %49 %51 %50 |
| %51 = OpLabel |
| OpStore %x_34 %true |
| OpBranch %42 |
| %50 = OpLabel |
| %53 = OpFunctionCall %v3float %computePoint_ |
| OpStore %x_GLF_color %55 |
| OpStore %x_34 %true |
| OpBranch %42 |
| %43 = OpLabel |
| OpBranch %41 |
| %42 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %main_inner = OpFunction %main_out None %56 |
| %gl_FragCoord_param = OpFunctionParameter %v4float |
| %60 = OpLabel |
| OpStore %gl_FragCoord %gl_FragCoord_param |
| %61 = OpFunctionCall %void %main_1 |
| %62 = OpLoad %v4float %x_GLF_color |
| %63 = OpCompositeConstruct %main_out %62 |
| OpReturnValue %63 |
| OpFunctionEnd |
| %main = OpFunction %void None %33 |
| %65 = OpLabel |
| %67 = OpLoad %v4float %gl_FragCoord_param_1 |
| %66 = OpFunctionCall %main_out %main_inner %67 |
| %68 = OpCompositeExtract %v4float %66 0 |
| OpStore %x_GLF_color_1_1 %68 |
| OpReturn |
| OpFunctionEnd |