blob: f93087973cc3c43e963c636da77d0659cea1b1ec [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 46
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %main "main" %tint_pointsize %tint_symbol %tint_symbol_1 %tint_symbol_5 %tint_symbol_6 %tint_symbol_4 %tint_symbol_3 %tint_symbol_9
OpName %tint_pointsize "tint_pointsize"
OpName %tint_symbol "tint_symbol"
OpName %tint_symbol_1 "tint_symbol_1"
OpName %tint_symbol_3 "tint_symbol_3"
OpName %tint_symbol_4 "tint_symbol_4"
OpName %tint_symbol_5 "tint_symbol_5"
OpName %tint_symbol_6 "tint_symbol_6"
OpName %tint_symbol_9 "tint_symbol_9"
OpName %tint_symbol_10 "tint_symbol_10"
OpName %tint_symbol_8 "tint_symbol_8"
OpName %main "main"
OpName %VertexInputs0 "VertexInputs0"
OpMemberName %VertexInputs0 0 "vertex_index"
OpMemberName %VertexInputs0 1 "loc0"
OpName %VertexInputs1 "VertexInputs1"
OpMemberName %VertexInputs1 0 "loc2"
OpMemberName %VertexInputs1 1 "loc3"
OpDecorate %tint_pointsize BuiltIn PointSize
OpDecorate %tint_symbol BuiltIn VertexIndex
OpDecorate %tint_symbol_1 Location 0
OpDecorate %tint_symbol_3 Location 1
OpDecorate %tint_symbol_4 BuiltIn InstanceIndex
OpDecorate %tint_symbol_5 Location 2
OpDecorate %tint_symbol_6 Location 3
OpDecorate %tint_symbol_9 BuiltIn Position
OpMemberDecorate %VertexInputs0 0 Offset 0
OpMemberDecorate %VertexInputs0 1 Offset 4
OpMemberDecorate %VertexInputs1 0 Offset 0
OpMemberDecorate %VertexInputs1 1 Offset 16
%float = OpTypeFloat 32
%_ptr_Output_float = OpTypePointer Output %float
%4 = OpConstantNull %float
%tint_pointsize = OpVariable %_ptr_Output_float Output %4
%uint = OpTypeInt 32 0
%_ptr_Input_uint = OpTypePointer Input %uint
%tint_symbol = OpVariable %_ptr_Input_uint Input
%int = OpTypeInt 32 1
%_ptr_Input_int = OpTypePointer Input %int
%tint_symbol_1 = OpVariable %_ptr_Input_int Input
%tint_symbol_3 = OpVariable %_ptr_Input_uint Input
%tint_symbol_4 = OpVariable %_ptr_Input_uint Input
%_ptr_Input_float = OpTypePointer Input %float
%tint_symbol_5 = OpVariable %_ptr_Input_float Input
%v4float = OpTypeVector %float 4
%_ptr_Input_v4float = OpTypePointer Input %v4float
%tint_symbol_6 = OpVariable %_ptr_Input_v4float Input
%_ptr_Output_v4float = OpTypePointer Output %v4float
%20 = OpConstantNull %v4float
%tint_symbol_9 = OpVariable %_ptr_Output_v4float Output %20
%void = OpTypeVoid
%21 = OpTypeFunction %void %v4float
%26 = OpTypeFunction %void
%float_1 = OpConstant %float 1
%VertexInputs0 = OpTypeStruct %uint %int
%VertexInputs1 = OpTypeStruct %float %v4float
%tint_symbol_10 = OpFunction %void None %21
%tint_symbol_8 = OpFunctionParameter %v4float
%25 = OpLabel
OpStore %tint_symbol_9 %tint_symbol_8
OpReturn
OpFunctionEnd
%main = OpFunction %void None %26
%28 = OpLabel
OpStore %tint_pointsize %float_1
%31 = OpLoad %uint %tint_symbol
%32 = OpLoad %int %tint_symbol_1
%33 = OpCompositeConstruct %VertexInputs0 %31 %32
%35 = OpLoad %float %tint_symbol_5
%36 = OpLoad %v4float %tint_symbol_6
%37 = OpCompositeConstruct %VertexInputs1 %35 %36
%38 = OpCompositeExtract %uint %33 0
%39 = OpLoad %uint %tint_symbol_4
%40 = OpIAdd %uint %38 %39
%41 = OpCompositeExtract %int %33 1
%42 = OpLoad %uint %tint_symbol_3
%43 = OpCompositeExtract %float %37 0
%44 = OpCompositeExtract %v4float %37 1
%45 = OpFunctionCall %void %tint_symbol_10 %20
OpReturn
OpFunctionEnd