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