| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 44 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Vertex %vert_main "vert_main" %vert_main_loc1_Output %vert_main_loc2_Output %vert_main_position_Output %vert_main___point_size_Output |
| OpEntryPoint Fragment %frag_main "frag_main" %frag_main_loc1_Input %frag_main_loc2_Input %frag_main_position_Input |
| OpExecutionMode %frag_main OriginUpperLeft |
| OpName %vert_main_loc1_Output "vert_main_loc1_Output" |
| OpName %vert_main_loc2_Output "vert_main_loc2_Output" |
| OpName %vert_main_position_Output "vert_main_position_Output" |
| OpName %vert_main___point_size_Output "vert_main___point_size_Output" |
| OpName %frag_main_loc1_Input "frag_main_loc1_Input" |
| OpName %frag_main_loc2_Input "frag_main_loc2_Input" |
| OpName %frag_main_position_Input "frag_main_position_Input" |
| OpName %vert_main_inner "vert_main_inner" |
| OpMemberName %Interface 0 "col1" |
| OpMemberName %Interface 1 "col2" |
| OpMemberName %Interface 2 "pos" |
| OpName %Interface "Interface" |
| OpName %frag_main_inner "frag_main_inner" |
| OpName %colors "colors" |
| OpName %r "r" |
| OpName %g "g" |
| OpName %vert_main "vert_main" |
| OpName %frag_main "frag_main" |
| OpDecorate %vert_main_loc1_Output Location 1 |
| OpDecorate %vert_main_loc2_Output Location 2 |
| OpDecorate %vert_main_position_Output BuiltIn Position |
| OpDecorate %vert_main___point_size_Output BuiltIn PointSize |
| OpDecorate %frag_main_loc1_Input Location 1 |
| OpDecorate %frag_main_loc2_Input Location 2 |
| OpDecorate %frag_main_position_Input BuiltIn FragCoord |
| OpMemberDecorate %Interface 0 Offset 0 |
| OpMemberDecorate %Interface 1 Offset 4 |
| OpMemberDecorate %Interface 2 Offset 16 |
| %float = OpTypeFloat 32 |
| %_ptr_Output_float = OpTypePointer Output %float |
| %vert_main_loc1_Output = OpVariable %_ptr_Output_float Output |
| %vert_main_loc2_Output = OpVariable %_ptr_Output_float Output |
| %v4float = OpTypeVector %float 4 |
| %_ptr_Output_v4float = OpTypePointer Output %v4float |
| %vert_main_position_Output = OpVariable %_ptr_Output_v4float Output |
| %vert_main___point_size_Output = OpVariable %_ptr_Output_float Output |
| %_ptr_Input_float = OpTypePointer Input %float |
| %frag_main_loc1_Input = OpVariable %_ptr_Input_float Input |
| %frag_main_loc2_Input = OpVariable %_ptr_Input_float Input |
| %_ptr_Input_v4float = OpTypePointer Input %v4float |
| %frag_main_position_Input = OpVariable %_ptr_Input_v4float Input |
| %Interface = OpTypeStruct %float %float %v4float |
| %16 = OpTypeFunction %Interface |
| %float_0_400000006 = OpConstant %float 0.400000006 |
| %float_0_600000024 = OpConstant %float 0.600000024 |
| %21 = OpConstantNull %v4float |
| %18 = OpConstantComposite %Interface %float_0_400000006 %float_0_600000024 %21 |
| %void = OpTypeVoid |
| %25 = OpTypeFunction %void %Interface |
| %30 = OpTypeFunction %void |
| %float_1 = OpConstant %float 1 |
| %vert_main_inner = OpFunction %Interface None %16 |
| %17 = OpLabel |
| OpReturnValue %18 |
| OpFunctionEnd |
| %frag_main_inner = OpFunction %void None %25 |
| %colors = OpFunctionParameter %Interface |
| %26 = OpLabel |
| %r = OpCompositeExtract %float %colors 0 |
| %g = OpCompositeExtract %float %colors 1 |
| OpReturn |
| OpFunctionEnd |
| %vert_main = OpFunction %void None %30 |
| %31 = OpLabel |
| %32 = OpFunctionCall %Interface %vert_main_inner |
| %33 = OpCompositeExtract %float %32 0 |
| OpStore %vert_main_loc1_Output %33 None |
| %34 = OpCompositeExtract %float %32 1 |
| OpStore %vert_main_loc2_Output %34 None |
| %35 = OpCompositeExtract %v4float %32 2 |
| OpStore %vert_main_position_Output %35 None |
| OpStore %vert_main___point_size_Output %float_1 None |
| OpReturn |
| OpFunctionEnd |
| %frag_main = OpFunction %void None %30 |
| %38 = OpLabel |
| %39 = OpLoad %float %frag_main_loc1_Input None |
| %40 = OpLoad %float %frag_main_loc2_Input None |
| %41 = OpLoad %v4float %frag_main_position_Input None |
| %42 = OpCompositeConstruct %Interface %39 %40 %41 |
| %43 = OpFunctionCall %void %frag_main_inner %42 |
| OpReturn |
| OpFunctionEnd |