blob: 05cb93060b0bed04d95992acdbf61837f5354a66 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 43
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %main "main" %x_1_1_1 %x_1_2_1 %x_2_1_1 %vertex_point_size
OpName %x_1_1_1 "x_1_1_1"
OpName %x_1_2_1 "x_1_2_1"
OpName %x_2_1_1 "x_2_1_1"
OpName %vertex_point_size "vertex_point_size"
OpName %Communicators "Communicators"
OpMemberName %Communicators 0 "alice"
OpMemberName %Communicators 1 "bob"
OpName %x_1 "x_1"
OpName %x_2 "x_2"
OpName %main_1 "main_1"
OpName %main_out "main_out"
OpMemberName %main_out 0 "x_1_1"
OpMemberName %main_out 1 "x_1_2"
OpMemberName %main_out 2 "x_2_1"
OpName %main_inner "main_inner"
OpName %main "main"
OpDecorate %x_1_1_1 Location 9
OpDecorate %x_1_2_1 Location 10
OpDecorate %x_2_1_1 BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
OpMemberDecorate %Communicators 0 Offset 0
OpMemberDecorate %Communicators 1 Offset 16
OpMemberDecorate %main_out 0 Offset 0
OpMemberDecorate %main_out 1 Offset 16
OpMemberDecorate %main_out 2 Offset 32
%float = OpTypeFloat 32
%_ptr_Output_float = OpTypePointer Output %float
%4 = OpConstantNull %float
%x_1_1_1 = OpVariable %_ptr_Output_float Output %4
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%8 = OpConstantNull %v4float
%x_1_2_1 = OpVariable %_ptr_Output_v4float Output %8
%x_2_1_1 = OpVariable %_ptr_Output_v4float Output %8
%vertex_point_size = OpVariable %_ptr_Output_float Output %4
%Communicators = OpTypeStruct %float %v4float
%_ptr_Private_Communicators = OpTypePointer Private %Communicators
%14 = OpConstantNull %Communicators
%x_1 = OpVariable %_ptr_Private_Communicators Private %14
%_ptr_Private_v4float = OpTypePointer Private %v4float
%x_2 = OpVariable %_ptr_Private_v4float Private %8
%void = OpTypeVoid
%17 = OpTypeFunction %void
%main_out = OpTypeStruct %float %v4float %v4float
%21 = OpTypeFunction %main_out
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Private_float = OpTypePointer Private %float
%uint_1 = OpConstant %uint 1
%float_1 = OpConstant %float 1
%main_1 = OpFunction %void None %17
%20 = OpLabel
OpReturn
OpFunctionEnd
%main_inner = OpFunction %main_out None %21
%24 = OpLabel
%25 = OpFunctionCall %void %main_1
%29 = OpAccessChain %_ptr_Private_float %x_1 %uint_0
%30 = OpLoad %float %29
%32 = OpAccessChain %_ptr_Private_v4float %x_1 %uint_1
%33 = OpLoad %v4float %32
%34 = OpLoad %v4float %x_2
%35 = OpCompositeConstruct %main_out %30 %33 %34
OpReturnValue %35
OpFunctionEnd
%main = OpFunction %void None %17
%37 = OpLabel
%38 = OpFunctionCall %main_out %main_inner
%39 = OpCompositeExtract %float %38 0
OpStore %x_1_1_1 %39
%40 = OpCompositeExtract %v4float %38 1
OpStore %x_1_2_1 %40
%41 = OpCompositeExtract %v4float %38 2
OpStore %x_2_1_1 %41
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd