2021-07-30 16:03:06 +00:00
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.3
|
|
|
|
; Generator: Google Tint Compiler; 0
|
2021-08-05 17:34:19 +00:00
|
|
|
; Bound: 35
|
2021-07-30 16:03:06 +00:00
|
|
|
; Schema: 0
|
|
|
|
OpCapability Shader
|
|
|
|
OpMemoryModel Logical GLSL450
|
2021-08-05 17:34:19 +00:00
|
|
|
OpEntryPoint Fragment %main "main" %x_1_param_1 %x_3_param_1 %x_2_1_1 %x_4_1_1
|
2021-07-30 16:03:06 +00:00
|
|
|
OpExecutionMode %main OriginUpperLeft
|
2021-08-05 17:34:19 +00:00
|
|
|
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"
|
2021-07-30 16:03:06 +00:00
|
|
|
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"
|
2021-08-05 17:34:19 +00:00
|
|
|
OpName %main_inner "main_inner"
|
|
|
|
OpName %x_1_param "x_1_param"
|
|
|
|
OpName %x_3_param "x_3_param"
|
2021-07-30 16:03:06 +00:00
|
|
|
OpName %main "main"
|
2021-08-05 17:34:19 +00:00
|
|
|
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
|
2021-07-30 16:03:06 +00:00
|
|
|
OpMemberDecorate %main_out 0 Offset 0
|
|
|
|
OpMemberDecorate %main_out 1 Offset 4
|
|
|
|
%uint = OpTypeInt 32 0
|
|
|
|
%_ptr_Input_uint = OpTypePointer Input %uint
|
2021-08-05 17:34:19 +00:00
|
|
|
%x_1_param_1 = OpVariable %_ptr_Input_uint Input
|
|
|
|
%x_3_param_1 = OpVariable %_ptr_Input_uint Input
|
2021-07-30 16:03:06 +00:00
|
|
|
%_ptr_Output_uint = OpTypePointer Output %uint
|
2021-08-05 17:34:19 +00:00
|
|
|
%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
|
2021-07-30 16:03:06 +00:00
|
|
|
%void = OpTypeVoid
|
|
|
|
%14 = OpTypeFunction %void
|
|
|
|
%main_out = OpTypeStruct %uint %uint
|
2021-08-05 17:34:19 +00:00
|
|
|
%18 = OpTypeFunction %main_out %uint %uint
|
2021-07-30 16:03:06 +00:00
|
|
|
%main_1 = OpFunction %void None %14
|
|
|
|
%17 = OpLabel
|
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2021-08-05 17:34:19 +00:00
|
|
|
%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
|
2021-07-30 16:03:06 +00:00
|
|
|
OpFunctionEnd
|
|
|
|
%main = OpFunction %void None %14
|
2021-08-05 17:34:19 +00:00
|
|
|
%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
|
2021-07-30 16:03:06 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|