| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 48 |
| ; Schema: 0 |
| OpCapability Shader |
| %28 = OpExtInstImport "GLSL.std.450" |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Vertex %vtx_main "vtx_main" %vtx_main_vertex_index_Input %vtx_main_position_Output %vtx_main___point_size_Output |
| OpEntryPoint Fragment %frag_main "frag_main" %frag_main_loc0_Output |
| OpExecutionMode %frag_main OriginUpperLeft |
| OpName %vtx_main_vertex_index_Input "vtx_main_vertex_index_Input" |
| OpName %vtx_main_position_Output "vtx_main_position_Output" |
| OpName %vtx_main___point_size_Output "vtx_main___point_size_Output" |
| OpName %frag_main_loc0_Output "frag_main_loc0_Output" |
| OpName %vtx_main_inner "vtx_main_inner" |
| OpName %VertexIndex "VertexIndex" |
| OpName %frag_main_inner "frag_main_inner" |
| OpName %vtx_main "vtx_main" |
| OpName %frag_main "frag_main" |
| OpDecorate %vtx_main_vertex_index_Input BuiltIn VertexIndex |
| OpDecorate %vtx_main_position_Output BuiltIn Position |
| OpDecorate %vtx_main___point_size_Output BuiltIn PointSize |
| OpDecorate %frag_main_loc0_Output Location 0 |
| OpDecorate %_arr_v2float_uint_3 ArrayStride 8 |
| %uint = OpTypeInt 32 0 |
| %_ptr_Input_uint = OpTypePointer Input %uint |
| %vtx_main_vertex_index_Input = OpVariable %_ptr_Input_uint Input |
| %float = OpTypeFloat 32 |
| %v4float = OpTypeVector %float 4 |
| %_ptr_Output_v4float = OpTypePointer Output %v4float |
| %vtx_main_position_Output = OpVariable %_ptr_Output_v4float Output |
| %_ptr_Output_float = OpTypePointer Output %float |
| %vtx_main___point_size_Output = OpVariable %_ptr_Output_float Output |
| %frag_main_loc0_Output = OpVariable %_ptr_Output_v4float Output |
| %v2float = OpTypeVector %float 2 |
| %uint_3 = OpConstant %uint 3 |
| %_arr_v2float_uint_3 = OpTypeArray %v2float %uint_3 |
| %_ptr_Private__arr_v2float_uint_3 = OpTypePointer Private %_arr_v2float_uint_3 |
| %float_0 = OpConstant %float 0 |
| %float_0_5 = OpConstant %float 0.5 |
| %17 = OpConstantComposite %v2float %float_0 %float_0_5 |
| %float_n0_5 = OpConstant %float -0.5 |
| %20 = OpConstantComposite %v2float %float_n0_5 %float_n0_5 |
| %22 = OpConstantComposite %v2float %float_0_5 %float_n0_5 |
| %16 = OpConstantComposite %_arr_v2float_uint_3 %17 %20 %22 |
| %11 = OpVariable %_ptr_Private__arr_v2float_uint_3 Private %16 |
| %25 = OpTypeFunction %v4float %uint |
| %uint_2 = OpConstant %uint 2 |
| %_ptr_Private_v2float = OpTypePointer Private %v2float |
| %float_1 = OpConstant %float 1 |
| %36 = OpTypeFunction %v4float |
| %38 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1 |
| %void = OpTypeVoid |
| %41 = OpTypeFunction %void |
| %vtx_main_inner = OpFunction %v4float None %25 |
| %VertexIndex = OpFunctionParameter %uint |
| %26 = OpLabel |
| %27 = OpExtInst %uint %28 UMin %VertexIndex %uint_2 |
| %30 = OpAccessChain %_ptr_Private_v2float %11 %27 |
| %32 = OpLoad %v2float %30 None |
| %33 = OpCompositeConstruct %v4float %32 %float_0 %float_1 |
| OpReturnValue %33 |
| OpFunctionEnd |
| %frag_main_inner = OpFunction %v4float None %36 |
| %37 = OpLabel |
| OpReturnValue %38 |
| OpFunctionEnd |
| %vtx_main = OpFunction %void None %41 |
| %42 = OpLabel |
| %43 = OpLoad %uint %vtx_main_vertex_index_Input None |
| %44 = OpFunctionCall %v4float %vtx_main_inner %43 |
| OpStore %vtx_main_position_Output %44 None |
| OpStore %vtx_main___point_size_Output %float_1 None |
| OpReturn |
| OpFunctionEnd |
| %frag_main = OpFunction %void None %41 |
| %46 = OpLabel |
| %47 = OpFunctionCall %v4float %frag_main_inner |
| OpStore %frag_main_loc0_Output %47 None |
| OpReturn |
| OpFunctionEnd |