blob: ef276d965fd74a9617cdc08eeb89ace75c47bef5 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 53
; Schema: 0
OpCapability Shader
OpCapability SampleRateShading
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %x_1_1_1 %x_1_2_1 %x_1_3_1 %x_1_4_1 %x_1_5_1 %x_1_6_1
OpExecutionMode %main OriginUpperLeft
OpName %x_1_1_1 "x_1_1_1"
OpName %x_1_2_1 "x_1_2_1"
OpName %x_1_3_1 "x_1_3_1"
OpName %x_1_4_1 "x_1_4_1"
OpName %x_1_5_1 "x_1_5_1"
OpName %x_1_6_1 "x_1_6_1"
OpName %S "S"
OpMemberName %S 0 "field0"
OpMemberName %S 1 "field1"
OpMemberName %S 2 "field2"
OpMemberName %S 3 "field3"
OpMemberName %S 4 "field4"
OpMemberName %S 5 "field5"
OpName %x_1 "x_1"
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_1_3"
OpMemberName %main_out 3 "x_1_4"
OpMemberName %main_out 4 "x_1_5"
OpMemberName %main_out 5 "x_1_6"
OpName %main_inner "main_inner"
OpName %main "main"
OpDecorate %x_1_1_1 Location 1
OpDecorate %x_1_2_1 Location 2
OpDecorate %x_1_2_1 Centroid
OpDecorate %x_1_3_1 Location 3
OpDecorate %x_1_3_1 Sample
OpDecorate %x_1_4_1 Location 4
OpDecorate %x_1_4_1 NoPerspective
OpDecorate %x_1_5_1 Location 5
OpDecorate %x_1_5_1 NoPerspective
OpDecorate %x_1_5_1 Centroid
OpDecorate %x_1_6_1 Location 6
OpDecorate %x_1_6_1 NoPerspective
OpDecorate %x_1_6_1 Sample
OpMemberDecorate %S 0 Offset 0
OpMemberDecorate %S 1 Offset 4
OpMemberDecorate %S 2 Offset 8
OpMemberDecorate %S 3 Offset 12
OpMemberDecorate %S 4 Offset 16
OpMemberDecorate %S 5 Offset 20
OpMemberDecorate %main_out 0 Offset 0
OpMemberDecorate %main_out 1 Offset 4
OpMemberDecorate %main_out 2 Offset 8
OpMemberDecorate %main_out 3 Offset 12
OpMemberDecorate %main_out 4 Offset 16
OpMemberDecorate %main_out 5 Offset 20
%float = OpTypeFloat 32
%_ptr_Output_float = OpTypePointer Output %float
%4 = OpConstantNull %float
%x_1_1_1 = OpVariable %_ptr_Output_float Output %4
%x_1_2_1 = OpVariable %_ptr_Output_float Output %4
%x_1_3_1 = OpVariable %_ptr_Output_float Output %4
%x_1_4_1 = OpVariable %_ptr_Output_float Output %4
%x_1_5_1 = OpVariable %_ptr_Output_float Output %4
%x_1_6_1 = OpVariable %_ptr_Output_float Output %4
%S = OpTypeStruct %float %float %float %float %float %float
%_ptr_Private_S = OpTypePointer Private %S
%13 = OpConstantNull %S
%x_1 = OpVariable %_ptr_Private_S Private %13
%void = OpTypeVoid
%14 = OpTypeFunction %void
%main_out = OpTypeStruct %float %float %float %float %float %float
%18 = OpTypeFunction %main_out
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Private_float = OpTypePointer Private %float
%uint_1 = OpConstant %uint 1
%uint_2 = OpConstant %uint 2
%uint_3 = OpConstant %uint 3
%uint_4 = OpConstant %uint 4
%uint_5 = OpConstant %uint 5
%main_1 = OpFunction %void None %14
%17 = OpLabel
OpReturn
OpFunctionEnd
%main_inner = OpFunction %main_out None %18
%21 = OpLabel
%22 = OpFunctionCall %void %main_1
%26 = OpAccessChain %_ptr_Private_float %x_1 %uint_0
%27 = OpLoad %float %26
%29 = OpAccessChain %_ptr_Private_float %x_1 %uint_1
%30 = OpLoad %float %29
%32 = OpAccessChain %_ptr_Private_float %x_1 %uint_2
%33 = OpLoad %float %32
%35 = OpAccessChain %_ptr_Private_float %x_1 %uint_3
%36 = OpLoad %float %35
%38 = OpAccessChain %_ptr_Private_float %x_1 %uint_4
%39 = OpLoad %float %38
%41 = OpAccessChain %_ptr_Private_float %x_1 %uint_5
%42 = OpLoad %float %41
%43 = OpCompositeConstruct %main_out %27 %30 %33 %36 %39 %42
OpReturnValue %43
OpFunctionEnd
%main = OpFunction %void None %14
%45 = OpLabel
%46 = OpFunctionCall %main_out %main_inner
%47 = OpCompositeExtract %float %46 0
OpStore %x_1_1_1 %47
%48 = OpCompositeExtract %float %46 1
OpStore %x_1_2_1 %48
%49 = OpCompositeExtract %float %46 2
OpStore %x_1_3_1 %49
%50 = OpCompositeExtract %float %46 3
OpStore %x_1_4_1 %50
%51 = OpCompositeExtract %float %46 4
OpStore %x_1_5_1 %51
%52 = OpCompositeExtract %float %46 5
OpStore %x_1_6_1 %52
OpReturn
OpFunctionEnd