blob: 845718e3266639996f978f10342fdb4a8e840af7 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 54
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %main "main" %x_2_param_1 %x_3_param_1 %x_4_1_1 %gl_Position_1 %vertex_point_size
OpName %x_2_param_1 "x_2_param_1"
OpName %x_3_param_1 "x_3_param_1"
OpName %x_4_1_1 "x_4_1_1"
OpName %gl_Position_1 "gl_Position_1"
OpName %vertex_point_size "vertex_point_size"
OpName %x_2 "x_2"
OpName %x_3 "x_3"
OpName %x_4 "x_4"
OpName %gl_Position "gl_Position"
OpName %main_1 "main_1"
OpName %main_out "main_out"
OpMemberName %main_out 0 "x_4_1"
OpMemberName %main_out 1 "gl_Position"
OpName %main_inner "main_inner"
OpName %x_2_param "x_2_param"
OpName %x_3_param "x_3_param"
OpName %main "main"
OpDecorate %x_2_param_1 Location 0
OpDecorate %x_3_param_1 Location 1
OpDecorate %x_4_1_1 Location 0
OpDecorate %x_4_1_1 Flat
OpDecorate %gl_Position_1 BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
OpMemberDecorate %main_out 0 Offset 0
OpMemberDecorate %main_out 1 Offset 16
%float = OpTypeFloat 32
%v3float = OpTypeVector %float 3
%_ptr_Input_v3float = OpTypePointer Input %v3float
%x_2_param_1 = OpVariable %_ptr_Input_v3float Input
%int = OpTypeInt 32 1
%_ptr_Input_int = OpTypePointer Input %int
%x_3_param_1 = OpVariable %_ptr_Input_int Input
%_ptr_Output_int = OpTypePointer Output %int
%10 = OpConstantNull %int
%x_4_1_1 = OpVariable %_ptr_Output_int Output %10
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%14 = OpConstantNull %v4float
%gl_Position_1 = OpVariable %_ptr_Output_v4float Output %14
%_ptr_Output_float = OpTypePointer Output %float
%17 = OpConstantNull %float
%vertex_point_size = OpVariable %_ptr_Output_float Output %17
%_ptr_Private_v3float = OpTypePointer Private %v3float
%20 = OpConstantNull %v3float
%x_2 = OpVariable %_ptr_Private_v3float Private %20
%_ptr_Private_int = OpTypePointer Private %int
%x_3 = OpVariable %_ptr_Private_int Private %10
%x_4 = OpVariable %_ptr_Private_int Private %10
%_ptr_Private_v4float = OpTypePointer Private %v4float
%gl_Position = OpVariable %_ptr_Private_v4float Private %14
%void = OpTypeVoid
%26 = OpTypeFunction %void
%float_1 = OpConstant %float 1
%main_out = OpTypeStruct %int %v4float
%37 = OpTypeFunction %main_out %v3float %int
%main_1 = OpFunction %void None %26
%29 = OpLabel
%30 = OpLoad %v3float %x_2
%31 = OpCompositeExtract %float %30 0
%32 = OpCompositeExtract %float %30 1
%33 = OpCompositeExtract %float %30 2
%35 = OpCompositeConstruct %v4float %31 %32 %33 %float_1
OpStore %gl_Position %35
%36 = OpLoad %int %x_3
OpStore %x_4 %36
OpReturn
OpFunctionEnd
%main_inner = OpFunction %main_out None %37
%x_2_param = OpFunctionParameter %v3float
%x_3_param = OpFunctionParameter %int
%42 = OpLabel
OpStore %x_2 %x_2_param
OpStore %x_3 %x_3_param
%43 = OpFunctionCall %void %main_1
%44 = OpLoad %int %x_4
%45 = OpLoad %v4float %gl_Position
%46 = OpCompositeConstruct %main_out %44 %45
OpReturnValue %46
OpFunctionEnd
%main = OpFunction %void None %26
%48 = OpLabel
%50 = OpLoad %v3float %x_2_param_1
%51 = OpLoad %int %x_3_param_1
%49 = OpFunctionCall %main_out %main_inner %50 %51
%52 = OpCompositeExtract %int %49 0
OpStore %x_4_1_1 %52
%53 = OpCompositeExtract %v4float %49 1
OpStore %gl_Position_1 %53
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd