blob: 03c988a3e79efdd09e0da6924ac5ada8b49d23d9 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 25
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %main "main" %b_1 %value %vertex_point_size
OpName %b_1 "b_1"
OpName %value "value"
OpName %vertex_point_size "vertex_point_size"
OpName %main_inner "main_inner"
OpName %b "b"
OpName %main "main"
OpDecorate %b_1 BuiltIn InstanceIndex
OpDecorate %value BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
%uint = OpTypeInt 32 0
%_ptr_Input_uint = OpTypePointer Input %uint
%b_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
%void = OpTypeVoid
%18 = OpTypeFunction %void
%float_1 = OpConstant %float 1
%main_inner = OpFunction %v4float None %12
%b = OpFunctionParameter %uint
%15 = OpLabel
%16 = OpConvertUToF %float %b
%17 = OpCompositeConstruct %v4float %16 %16 %16 %16
OpReturnValue %17
OpFunctionEnd
%main = OpFunction %void None %18
%21 = OpLabel
%23 = OpLoad %uint %b_1
%22 = OpFunctionCall %v4float %main_inner %23
OpStore %value %22
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd