blob: 5e3821393ae592676d378e27935183608560ce85 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 31
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %main "main" %main_instance_index_Input %main_position_Output %main___point_size_Output
OpMemberName %tint_symbol_1 0 "tint_symbol"
OpName %tint_symbol_1 "tint_symbol_1"
OpName %main_instance_index_Input "main_instance_index_Input"
OpName %main_position_Output "main_position_Output"
OpName %main___point_size_Output "main___point_size_Output"
OpName %main_inner "main_inner"
OpName %b "b"
OpName %main "main"
OpMemberDecorate %tint_symbol_1 0 Offset 0
OpDecorate %tint_symbol_1 Block
OpDecorate %main_instance_index_Input BuiltIn InstanceIndex
OpDecorate %main_position_Output BuiltIn Position
OpDecorate %main___point_size_Output BuiltIn PointSize
%float = OpTypeFloat 32
%tint_symbol_1 = OpTypeStruct %float
%_ptr_PushConstant_tint_symbol_1 = OpTypePointer PushConstant %tint_symbol_1
%1 = OpVariable %_ptr_PushConstant_tint_symbol_1 PushConstant
%uint = OpTypeInt 32 0
%_ptr_Input_uint = OpTypePointer Input %uint
%main_instance_index_Input = OpVariable %_ptr_Input_uint Input
%v4float = OpTypeVector %float 4
%_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
%15 = OpTypeFunction %v4float %uint
%_ptr_PushConstant_float = OpTypePointer PushConstant %float
%uint_0 = OpConstant %uint 0
%void = OpTypeVoid
%26 = OpTypeFunction %void
%float_1 = OpConstant %float 1
%main_inner = OpFunction %v4float None %15
%b = OpFunctionParameter %uint
%16 = OpLabel
%17 = OpAccessChain %_ptr_PushConstant_float %1 %uint_0
%20 = OpLoad %float %17
%21 = OpConvertUToF %float %b
%22 = OpFAdd %float %20 %21
%23 = OpCompositeConstruct %v4float %22 %22 %22 %22
OpReturnValue %23
OpFunctionEnd
%main = OpFunction %void None %26
%27 = OpLabel
%28 = OpLoad %uint %main_instance_index_Input
%29 = OpFunctionCall %v4float %main_inner %28
OpStore %main_position_Output %29
OpStore %main___point_size_Output %float_1
OpReturn
OpFunctionEnd