blob: 62dc2ba610ed8ce52ea37b88a0663e05cd20cd14 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 46
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %tint_symbol_5 "tint_symbol_5" %tint_symbol_5_vertex_index_Input %tint_symbol_5_position_Output %tint_symbol_5___point_size_Output
OpName %tint_symbol_5_vertex_index_Input "tint_symbol_5_vertex_index_Input"
OpName %tint_symbol_5_position_Output "tint_symbol_5_position_Output"
OpName %tint_symbol_5___point_size_Output "tint_symbol_5___point_size_Output"
OpName %tint_symbol "tint_symbol"
OpName %tint_symbol_1 "tint_symbol_1"
OpName %tint_symbol_2 "tint_symbol_2"
OpName %tint_symbol_3 "tint_symbol_3"
OpName %tint_symbol_4 "tint_symbol_4"
OpName %tint_symbol_5_inner "tint_symbol_5_inner"
OpName %tint_symbol_6 "tint_symbol_6"
OpName %tint_symbol_5 "tint_symbol_5"
OpDecorate %tint_symbol_5_vertex_index_Input BuiltIn VertexIndex
OpDecorate %tint_symbol_5_position_Output BuiltIn Position
OpDecorate %tint_symbol_5___point_size_Output BuiltIn PointSize
%uint = OpTypeInt 32 0
%_ptr_Input_uint = OpTypePointer Input %uint
%tint_symbol_5_vertex_index_Input = OpVariable %_ptr_Input_uint Input
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%tint_symbol_5_position_Output = OpVariable %_ptr_Output_v4float Output
%_ptr_Output_float = OpTypePointer Output %float
%tint_symbol_5___point_size_Output = OpVariable %_ptr_Output_float Output
%int = OpTypeInt 32 1
%12 = OpTypeFunction %int
%int_0 = OpConstant %int 0
%17 = OpTypeFunction %float %int
%bool = OpTypeBool
%23 = OpTypeFunction %bool %float
%26 = OpConstantNull %float
%29 = OpTypeFunction %v4float %uint
%v4bool = OpTypeVector %bool 4
%float_1 = OpConstant %float 1
%37 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1
%39 = OpConstantNull %v4float
%void = OpTypeVoid
%42 = OpTypeFunction %void
%tint_symbol = OpFunction %int None %12
%13 = OpLabel
OpReturnValue %int_0
OpFunctionEnd
%tint_symbol_1 = OpFunction %float None %17
%tint_symbol_2 = OpFunctionParameter %int
%18 = OpLabel
%19 = OpConvertSToF %float %tint_symbol_2
OpReturnValue %19
OpFunctionEnd
%tint_symbol_3 = OpFunction %bool None %23
%tint_symbol_4 = OpFunctionParameter %float
%24 = OpLabel
%25 = OpFUnordNotEqual %bool %tint_symbol_4 %26
OpReturnValue %25
OpFunctionEnd
%tint_symbol_5_inner = OpFunction %v4float None %29
%tint_symbol_6 = OpFunctionParameter %uint
%30 = OpLabel
%31 = OpFunctionCall %int %tint_symbol
%32 = OpFunctionCall %float %tint_symbol_1 %31
%33 = OpFunctionCall %bool %tint_symbol_3 %32
%35 = OpCompositeConstruct %v4bool %33 %33 %33 %33
%36 = OpSelect %v4float %35 %37 %39
OpReturnValue %36
OpFunctionEnd
%tint_symbol_5 = OpFunction %void None %42
%43 = OpLabel
%44 = OpLoad %uint %tint_symbol_5_vertex_index_Input None
%45 = OpFunctionCall %v4float %tint_symbol_5_inner %44
OpStore %tint_symbol_5_position_Output %45 None
OpStore %tint_symbol_5___point_size_Output %float_1 None
OpReturn
OpFunctionEnd