| ; SPIR-V | |
| ; Version: 1.3 | |
| ; Generator: Google Tint Compiler; 1 | |
| ; Bound: 44 | |
| ; Schema: 0 | |
| OpCapability Shader | |
| OpMemoryModel Logical GLSL450 | |
| OpEntryPoint Vertex %main "main" %main_vertex_index_Input %main_loc0_Input %main_loc1_Input %main_instance_index_Input %main_loc2_Input %main_loc3_Input %main_position_Output %main___point_size_Output | |
| OpName %main_vertex_index_Input "main_vertex_index_Input" | |
| OpName %main_loc0_Input "main_loc0_Input" | |
| OpName %main_loc1_Input "main_loc1_Input" | |
| OpName %main_instance_index_Input "main_instance_index_Input" | |
| OpName %main_loc2_Input "main_loc2_Input" | |
| OpName %main_loc3_Input "main_loc3_Input" | |
| OpName %main_position_Output "main_position_Output" | |
| OpName %main___point_size_Output "main___point_size_Output" | |
| OpName %main_inner "main_inner" | |
| OpMemberName %VertexInputs0 0 "vertex_index" | |
| OpMemberName %VertexInputs0 1 "loc0" | |
| OpName %VertexInputs0 "VertexInputs0" | |
| OpName %inputs0 "inputs0" | |
| OpName %loc1 "loc1" | |
| OpName %instance_index "instance_index" | |
| OpMemberName %VertexInputs1 0 "loc1" | |
| OpMemberName %VertexInputs1 1 "loc3" | |
| OpName %VertexInputs1 "VertexInputs1" | |
| OpName %inputs1 "inputs1" | |
| OpName %foo "foo" | |
| OpName %main "main" | |
| OpDecorate %main_vertex_index_Input BuiltIn VertexIndex | |
| OpDecorate %main_loc0_Input Location 0 | |
| OpDecorate %main_loc1_Input Location 1 | |
| OpDecorate %main_instance_index_Input BuiltIn InstanceIndex | |
| OpDecorate %main_loc2_Input Location 2 | |
| OpDecorate %main_loc3_Input Location 3 | |
| OpDecorate %main_position_Output BuiltIn Position | |
| OpDecorate %main___point_size_Output BuiltIn PointSize | |
| OpMemberDecorate %VertexInputs0 0 Offset 0 | |
| OpMemberDecorate %VertexInputs0 1 Offset 4 | |
| OpMemberDecorate %VertexInputs1 0 Offset 0 | |
| OpMemberDecorate %VertexInputs1 1 Offset 16 | |
| %uint = OpTypeInt 32 0 | |
| %_ptr_Input_uint = OpTypePointer Input %uint | |
| %main_vertex_index_Input = OpVariable %_ptr_Input_uint Input | |
| %int = OpTypeInt 32 1 | |
| %_ptr_Input_int = OpTypePointer Input %int | |
| %main_loc0_Input = OpVariable %_ptr_Input_int Input | |
| %main_loc1_Input = OpVariable %_ptr_Input_uint Input | |
| %main_instance_index_Input = OpVariable %_ptr_Input_uint Input | |
| %main_loc2_Input = OpVariable %_ptr_Input_uint Input | |
| %float = OpTypeFloat 32 | |
| %v4float = OpTypeVector %float 4 | |
| %_ptr_Input_v4float = OpTypePointer Input %v4float | |
| %main_loc3_Input = OpVariable %_ptr_Input_v4float Input | |
| %_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 | |
| %VertexInputs0 = OpTypeStruct %uint %int | |
| %VertexInputs1 = OpTypeStruct %uint %v4float | |
| %25 = OpTypeFunction %v4float %VertexInputs0 %uint %uint %VertexInputs1 | |
| %29 = OpConstantNull %v4float | |
| %void = OpTypeVoid | |
| %32 = OpTypeFunction %void | |
| %float_1 = OpConstant %float 1 | |
| %main_inner = OpFunction %v4float None %25 | |
| %inputs0 = OpFunctionParameter %VertexInputs0 | |
| %loc1 = OpFunctionParameter %uint | |
| %instance_index = OpFunctionParameter %uint | |
| %inputs1 = OpFunctionParameter %VertexInputs1 | |
| %26 = OpLabel | |
| %27 = OpCompositeExtract %uint %inputs0 0 | |
| %foo = OpIAdd %uint %27 %instance_index | |
| OpReturnValue %29 | |
| OpFunctionEnd | |
| %main = OpFunction %void None %32 | |
| %33 = OpLabel | |
| %34 = OpLoad %uint %main_vertex_index_Input None | |
| %35 = OpLoad %int %main_loc0_Input None | |
| %36 = OpCompositeConstruct %VertexInputs0 %34 %35 | |
| %37 = OpLoad %uint %main_loc1_Input None | |
| %38 = OpLoad %uint %main_instance_index_Input None | |
| %39 = OpLoad %uint %main_loc2_Input None | |
| %40 = OpLoad %v4float %main_loc3_Input None | |
| %41 = OpCompositeConstruct %VertexInputs1 %39 %40 | |
| %42 = OpFunctionCall %v4float %main_inner %36 %37 %38 %41 | |
| OpStore %main_position_Output %42 None | |
| OpStore %main___point_size_Output %float_1 None | |
| OpReturn | |
| OpFunctionEnd |