78 lines
3.1 KiB
Plaintext
78 lines
3.1 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.3
|
|
; Generator: Google Tint Compiler; 0
|
|
; Bound: 35
|
|
; Schema: 0
|
|
OpCapability Shader
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint Fragment %main "main" %x_1_param_1 %x_3_param_1 %x_2_1_1 %x_4_1_1
|
|
OpExecutionMode %main OriginUpperLeft
|
|
OpName %x_1_param_1 "x_1_param_1"
|
|
OpName %x_3_param_1 "x_3_param_1"
|
|
OpName %x_2_1_1 "x_2_1_1"
|
|
OpName %x_4_1_1 "x_4_1_1"
|
|
OpName %x_1 "x_1"
|
|
OpName %x_2 "x_2"
|
|
OpName %x_3 "x_3"
|
|
OpName %x_4 "x_4"
|
|
OpName %main_1 "main_1"
|
|
OpName %main_out "main_out"
|
|
OpMemberName %main_out 0 "x_2_1"
|
|
OpMemberName %main_out 1 "x_4_1"
|
|
OpName %main_inner "main_inner"
|
|
OpName %x_1_param "x_1_param"
|
|
OpName %x_3_param "x_3_param"
|
|
OpName %main "main"
|
|
OpDecorate %x_1_param_1 Location 0
|
|
OpDecorate %x_1_param_1 Flat
|
|
OpDecorate %x_3_param_1 Location 30
|
|
OpDecorate %x_3_param_1 Flat
|
|
OpDecorate %x_2_1_1 Location 0
|
|
OpDecorate %x_4_1_1 Location 6
|
|
OpMemberDecorate %main_out 0 Offset 0
|
|
OpMemberDecorate %main_out 1 Offset 4
|
|
%uint = OpTypeInt 32 0
|
|
%_ptr_Input_uint = OpTypePointer Input %uint
|
|
%x_1_param_1 = OpVariable %_ptr_Input_uint Input
|
|
%x_3_param_1 = OpVariable %_ptr_Input_uint Input
|
|
%_ptr_Output_uint = OpTypePointer Output %uint
|
|
%7 = OpConstantNull %uint
|
|
%x_2_1_1 = OpVariable %_ptr_Output_uint Output %7
|
|
%x_4_1_1 = OpVariable %_ptr_Output_uint Output %7
|
|
%_ptr_Private_uint = OpTypePointer Private %uint
|
|
%x_1 = OpVariable %_ptr_Private_uint Private %7
|
|
%x_2 = OpVariable %_ptr_Private_uint Private %7
|
|
%x_3 = OpVariable %_ptr_Private_uint Private %7
|
|
%x_4 = OpVariable %_ptr_Private_uint Private %7
|
|
%void = OpTypeVoid
|
|
%14 = OpTypeFunction %void
|
|
%main_out = OpTypeStruct %uint %uint
|
|
%18 = OpTypeFunction %main_out %uint %uint
|
|
%main_1 = OpFunction %void None %14
|
|
%17 = OpLabel
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%main_inner = OpFunction %main_out None %18
|
|
%x_1_param = OpFunctionParameter %uint
|
|
%x_3_param = OpFunctionParameter %uint
|
|
%23 = OpLabel
|
|
OpStore %x_1 %x_1_param
|
|
OpStore %x_3 %x_3_param
|
|
%24 = OpFunctionCall %void %main_1
|
|
%25 = OpLoad %uint %x_2
|
|
%26 = OpLoad %uint %x_4
|
|
%27 = OpCompositeConstruct %main_out %25 %26
|
|
OpReturnValue %27
|
|
OpFunctionEnd
|
|
%main = OpFunction %void None %14
|
|
%29 = OpLabel
|
|
%31 = OpLoad %uint %x_1_param_1
|
|
%32 = OpLoad %uint %x_3_param_1
|
|
%30 = OpFunctionCall %main_out %main_inner %31 %32
|
|
%33 = OpCompositeExtract %uint %30 0
|
|
OpStore %x_2_1_1 %33
|
|
%34 = OpCompositeExtract %uint %30 1
|
|
OpStore %x_4_1_1 %34
|
|
OpReturn
|
|
OpFunctionEnd
|