104 lines
4.6 KiB
Plaintext
104 lines
4.6 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.3
|
|
; Generator: Google Tint Compiler; 0
|
|
; Bound: 53
|
|
; Schema: 0
|
|
OpCapability Shader
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint Vertex %main "main" %tint_pointsize %tint_symbol %tint_symbol_1 %tint_symbol_3 %tint_symbol_4 %tint_symbol_5
|
|
OpName %tint_pointsize "tint_pointsize"
|
|
OpName %Communicators "Communicators"
|
|
OpMemberName %Communicators 0 "alice"
|
|
OpMemberName %Communicators 1 "bob"
|
|
OpName %x_1 "x_1"
|
|
OpName %x_3 "x_3"
|
|
OpName %x_2 "x_2"
|
|
OpName %tint_symbol "tint_symbol"
|
|
OpName %tint_symbol_1 "tint_symbol_1"
|
|
OpName %tint_symbol_3 "tint_symbol_3"
|
|
OpName %tint_symbol_4 "tint_symbol_4"
|
|
OpName %tint_symbol_5 "tint_symbol_5"
|
|
OpName %main_1 "main_1"
|
|
OpName %main_out "main_out"
|
|
OpMemberName %main_out 0 "x_2_1"
|
|
OpMemberName %main_out 1 "x_3_1"
|
|
OpMemberName %main_out 2 "x_3_2"
|
|
OpName %tint_symbol_6 "tint_symbol_6"
|
|
OpName %tint_symbol_2 "tint_symbol_2"
|
|
OpName %main "main"
|
|
OpDecorate %tint_pointsize BuiltIn PointSize
|
|
OpMemberDecorate %Communicators 0 Offset 0
|
|
OpMemberDecorate %Communicators 1 Offset 16
|
|
OpDecorate %tint_symbol Location 9
|
|
OpDecorate %tint_symbol_1 Location 11
|
|
OpDecorate %tint_symbol_3 BuiltIn Position
|
|
OpDecorate %tint_symbol_4 Location 9
|
|
OpDecorate %tint_symbol_5 Location 11
|
|
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
|
|
%tint_pointsize = OpVariable %_ptr_Output_float Output %4
|
|
%v4float = OpTypeVector %float 4
|
|
%Communicators = OpTypeStruct %float %v4float
|
|
%_ptr_Private_Communicators = OpTypePointer Private %Communicators
|
|
%9 = OpConstantNull %Communicators
|
|
%x_1 = OpVariable %_ptr_Private_Communicators Private %9
|
|
%x_3 = OpVariable %_ptr_Private_Communicators Private %9
|
|
%_ptr_Private_v4float = OpTypePointer Private %v4float
|
|
%13 = OpConstantNull %v4float
|
|
%x_2 = OpVariable %_ptr_Private_v4float Private %13
|
|
%_ptr_Input_float = OpTypePointer Input %float
|
|
%tint_symbol = OpVariable %_ptr_Input_float Input
|
|
%_ptr_Input_v4float = OpTypePointer Input %v4float
|
|
%tint_symbol_1 = OpVariable %_ptr_Input_v4float Input
|
|
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
%tint_symbol_3 = OpVariable %_ptr_Output_v4float Output %13
|
|
%tint_symbol_4 = OpVariable %_ptr_Output_float Output %4
|
|
%tint_symbol_5 = OpVariable %_ptr_Output_v4float Output %13
|
|
%void = OpTypeVoid
|
|
%22 = OpTypeFunction %void
|
|
%main_out = OpTypeStruct %v4float %float %v4float
|
|
%26 = OpTypeFunction %void %main_out
|
|
%float_1 = OpConstant %float 1
|
|
%uint = OpTypeInt 32 0
|
|
%uint_0 = OpConstant %uint 0
|
|
%_ptr_Private_float = OpTypePointer Private %float
|
|
%uint_1 = OpConstant %uint 1
|
|
%main_1 = OpFunction %void None %22
|
|
%25 = OpLabel
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%tint_symbol_6 = OpFunction %void None %26
|
|
%tint_symbol_2 = OpFunctionParameter %main_out
|
|
%30 = OpLabel
|
|
%31 = OpCompositeExtract %v4float %tint_symbol_2 0
|
|
OpStore %tint_symbol_3 %31
|
|
%32 = OpCompositeExtract %float %tint_symbol_2 1
|
|
OpStore %tint_symbol_4 %32
|
|
%33 = OpCompositeExtract %v4float %tint_symbol_2 2
|
|
OpStore %tint_symbol_5 %33
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%main = OpFunction %void None %22
|
|
%35 = OpLabel
|
|
OpStore %tint_pointsize %float_1
|
|
%40 = OpAccessChain %_ptr_Private_float %x_1 %uint_0
|
|
%41 = OpLoad %float %tint_symbol
|
|
OpStore %40 %41
|
|
%43 = OpAccessChain %_ptr_Private_v4float %x_1 %uint_1
|
|
%44 = OpLoad %v4float %tint_symbol_1
|
|
OpStore %43 %44
|
|
%45 = OpFunctionCall %void %main_1
|
|
%47 = OpLoad %v4float %x_2
|
|
%48 = OpAccessChain %_ptr_Private_float %x_3 %uint_0
|
|
%49 = OpLoad %float %48
|
|
%50 = OpAccessChain %_ptr_Private_v4float %x_3 %uint_1
|
|
%51 = OpLoad %v4float %50
|
|
%52 = OpCompositeConstruct %main_out %47 %49 %51
|
|
%46 = OpFunctionCall %void %tint_symbol_6 %52
|
|
OpReturn
|
|
OpFunctionEnd
|