| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 31 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Vertex %main "main" %main_instance_index_Input %main_position_Output %main___point_size_Output |
| OpMemberName %a_block 0 "inner" |
| OpName %a_block "a_block" |
| OpName %main_instance_index_Input "main_instance_index_Input" |
| OpName %main_position_Output "main_position_Output" |
| OpName %main___point_size_Output "main___point_size_Output" |
| OpName %main_inner "main_inner" |
| OpName %b "b" |
| OpName %main "main" |
| OpMemberDecorate %a_block 0 Offset 0 |
| OpDecorate %a_block Block |
| OpDecorate %main_instance_index_Input BuiltIn InstanceIndex |
| OpDecorate %main_position_Output BuiltIn Position |
| OpDecorate %main___point_size_Output BuiltIn PointSize |
| %float = OpTypeFloat 32 |
| %a_block = OpTypeStruct %float |
| %_ptr_PushConstant_a_block = OpTypePointer PushConstant %a_block |
| %1 = OpVariable %_ptr_PushConstant_a_block PushConstant |
| %uint = OpTypeInt 32 0 |
| %_ptr_Input_uint = OpTypePointer Input %uint |
| %main_instance_index_Input = OpVariable %_ptr_Input_uint Input |
| %v4float = OpTypeVector %float 4 |
| %_ptr_Output_v4float = OpTypePointer Output %v4float |
| %main_position_Output = OpVariable %_ptr_Output_v4float Output |
| %_ptr_Output_float = OpTypePointer Output %float |
| %main___point_size_Output = OpVariable %_ptr_Output_float Output |
| %15 = OpTypeFunction %v4float %uint |
| %_ptr_PushConstant_float = OpTypePointer PushConstant %float |
| %uint_0 = OpConstant %uint 0 |
| %void = OpTypeVoid |
| %26 = OpTypeFunction %void |
| %float_1 = OpConstant %float 1 |
| %main_inner = OpFunction %v4float None %15 |
| %b = OpFunctionParameter %uint |
| %16 = OpLabel |
| %17 = OpAccessChain %_ptr_PushConstant_float %1 %uint_0 |
| %20 = OpLoad %float %17 None |
| %21 = OpConvertUToF %float %b |
| %22 = OpFAdd %float %20 %21 |
| %23 = OpCompositeConstruct %v4float %22 %22 %22 %22 |
| OpReturnValue %23 |
| OpFunctionEnd |
| %main = OpFunction %void None %26 |
| %27 = OpLabel |
| %28 = OpLoad %uint %main_instance_index_Input None |
| %29 = OpFunctionCall %v4float %main_inner %28 |
| OpStore %main_position_Output %29 None |
| OpStore %main___point_size_Output %float_1 None |
| OpReturn |
| OpFunctionEnd |