blob: 78b7de68d910ae239373ae8aea61f998b97c7d10 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 24
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %main "main" %VertexIndex_1 %value %vertex_point_size
OpName %VertexIndex_1 "VertexIndex_1"
OpName %value "value"
OpName %vertex_point_size "vertex_point_size"
OpName %main_inner "main_inner"
OpName %VertexIndex "VertexIndex"
OpName %main "main"
OpDecorate %VertexIndex_1 BuiltIn VertexIndex
OpDecorate %value BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
%uint = OpTypeInt 32 0
%_ptr_Input_uint = OpTypePointer Input %uint
%VertexIndex_1 = OpVariable %_ptr_Input_uint Input
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%8 = OpConstantNull %v4float
%value = OpVariable %_ptr_Output_v4float Output %8
%_ptr_Output_float = OpTypePointer Output %float
%11 = OpConstantNull %float
%vertex_point_size = OpVariable %_ptr_Output_float Output %11
%12 = OpTypeFunction %v4float %uint
%float_1 = OpConstant %float 1
%17 = OpConstantComposite %v4float %11 %11 %11 %float_1
%void = OpTypeVoid
%18 = OpTypeFunction %void
%main_inner = OpFunction %v4float None %12
%VertexIndex = OpFunctionParameter %uint
%15 = OpLabel
OpReturnValue %17
OpFunctionEnd
%main = OpFunction %void None %18
%21 = OpLabel
%23 = OpLoad %uint %VertexIndex_1
%22 = OpFunctionCall %v4float %main_inner %23
OpStore %value %22
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd