| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 43 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Vertex %vert_main1 "vert_main1" %vert_main1_position_Output %vert_main1_loc0_Output %vert_main1___point_size_Output |
| OpEntryPoint Vertex %vert_main2 "vert_main2" %vert_main2_position_Output %vert_main2_loc0_Output %vert_main2___point_size_Output |
| OpName %vert_main1_position_Output "vert_main1_position_Output" |
| OpName %vert_main1_loc0_Output "vert_main1_loc0_Output" |
| OpName %vert_main1___point_size_Output "vert_main1___point_size_Output" |
| OpName %vert_main2_position_Output "vert_main2_position_Output" |
| OpName %vert_main2_loc0_Output "vert_main2_loc0_Output" |
| OpName %vert_main2___point_size_Output "vert_main2___point_size_Output" |
| OpName %foo "foo" |
| OpMemberName %VertexOutput 0 "pos" |
| OpMemberName %VertexOutput 1 "loc0" |
| OpName %VertexOutput "VertexOutput" |
| OpName %x "x" |
| OpName %vert_main1_inner "vert_main1_inner" |
| OpName %vert_main2_inner "vert_main2_inner" |
| OpName %vert_main1 "vert_main1" |
| OpName %vert_main2 "vert_main2" |
| OpDecorate %vert_main1_position_Output BuiltIn Position |
| OpDecorate %vert_main1_loc0_Output Location 0 |
| OpDecorate %vert_main1_loc0_Output Flat |
| OpDecorate %vert_main1___point_size_Output BuiltIn PointSize |
| OpDecorate %vert_main2_position_Output BuiltIn Position |
| OpDecorate %vert_main2_loc0_Output Location 0 |
| OpDecorate %vert_main2_loc0_Output Flat |
| OpDecorate %vert_main2___point_size_Output BuiltIn PointSize |
| OpMemberDecorate %VertexOutput 0 Offset 0 |
| OpMemberDecorate %VertexOutput 1 Offset 16 |
| %float = OpTypeFloat 32 |
| %v4float = OpTypeVector %float 4 |
| %_ptr_Output_v4float = OpTypePointer Output %v4float |
| %vert_main1_position_Output = OpVariable %_ptr_Output_v4float Output |
| %int = OpTypeInt 32 1 |
| %_ptr_Output_int = OpTypePointer Output %int |
| %vert_main1_loc0_Output = OpVariable %_ptr_Output_int Output |
| %_ptr_Output_float = OpTypePointer Output %float |
| %vert_main1___point_size_Output = OpVariable %_ptr_Output_float Output |
| %vert_main2_position_Output = OpVariable %_ptr_Output_v4float Output |
| %vert_main2_loc0_Output = OpVariable %_ptr_Output_int Output |
| %vert_main2___point_size_Output = OpVariable %_ptr_Output_float Output |
| %VertexOutput = OpTypeStruct %v4float %int |
| %16 = OpTypeFunction %VertexOutput %float |
| %float_1 = OpConstant %float 1 |
| %int_42 = OpConstant %int 42 |
| %23 = OpTypeFunction %VertexOutput |
| %float_0_5 = OpConstant %float 0.5 |
| %float_0_25 = OpConstant %float 0.25 |
| %void = OpTypeVoid |
| %33 = OpTypeFunction %void |
| %foo = OpFunction %VertexOutput None %16 |
| %x = OpFunctionParameter %float |
| %17 = OpLabel |
| %18 = OpCompositeConstruct %v4float %x %x %x %float_1 |
| %20 = OpCompositeConstruct %VertexOutput %18 %int_42 |
| OpReturnValue %20 |
| OpFunctionEnd |
| %vert_main1_inner = OpFunction %VertexOutput None %23 |
| %24 = OpLabel |
| %25 = OpFunctionCall %VertexOutput %foo %float_0_5 |
| OpReturnValue %25 |
| OpFunctionEnd |
| %vert_main2_inner = OpFunction %VertexOutput None %23 |
| %28 = OpLabel |
| %29 = OpFunctionCall %VertexOutput %foo %float_0_25 |
| OpReturnValue %29 |
| OpFunctionEnd |
| %vert_main1 = OpFunction %void None %33 |
| %34 = OpLabel |
| %35 = OpFunctionCall %VertexOutput %vert_main1_inner |
| %36 = OpCompositeExtract %v4float %35 0 |
| OpStore %vert_main1_position_Output %36 None |
| %37 = OpCompositeExtract %int %35 1 |
| OpStore %vert_main1_loc0_Output %37 None |
| OpStore %vert_main1___point_size_Output %float_1 None |
| OpReturn |
| OpFunctionEnd |
| %vert_main2 = OpFunction %void None %33 |
| %39 = OpLabel |
| %40 = OpFunctionCall %VertexOutput %vert_main2_inner |
| %41 = OpCompositeExtract %v4float %40 0 |
| OpStore %vert_main2_position_Output %41 None |
| %42 = OpCompositeExtract %int %40 1 |
| OpStore %vert_main2_loc0_Output %42 None |
| OpStore %vert_main2___point_size_Output %float_1 None |
| OpReturn |
| OpFunctionEnd |