blob: 9d4d51ab94299e120f8d2b5d5c937d0804454b2a [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 125
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %tint_symbol_1
OpExecutionMode %main OriginUpperLeft
OpName %buf1 "buf1"
OpMemberName %buf1 0 "x_GLF_uniform_float_values"
OpName %x_6 "x_6"
OpName %buf0 "buf0"
OpMemberName %buf0 0 "x_GLF_uniform_int_values"
OpName %x_9 "x_9"
OpName %x_GLF_color "x_GLF_color"
OpName %tint_symbol_1 "tint_symbol_1"
OpName %main_1 "main_1"
OpName %arr "arr"
OpName %a "a"
OpName %x_69 "x_69"
OpName %x_79 "x_79"
OpName %x_70_phi "x_70_phi"
OpName %x_80_phi "x_80_phi"
OpName %main_out "main_out"
OpMemberName %main_out 0 "x_GLF_color_1"
OpName %tint_symbol_2 "tint_symbol_2"
OpName %tint_symbol "tint_symbol"
OpName %main "main"
OpDecorate %buf1 Block
OpMemberDecorate %buf1 0 Offset 0
OpDecorate %_arr_float_uint_3 ArrayStride 16
OpDecorate %x_6 NonWritable
OpDecorate %x_6 DescriptorSet 0
OpDecorate %x_6 Binding 1
OpDecorate %buf0 Block
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %_arr_int_uint_3 ArrayStride 16
OpDecorate %x_9 NonWritable
OpDecorate %x_9 DescriptorSet 0
OpDecorate %x_9 Binding 0
OpDecorate %tint_symbol_1 Location 0
OpDecorate %_arr_float_uint_3_0 ArrayStride 4
OpMemberDecorate %main_out 0 Offset 0
%float = OpTypeFloat 32
%uint = OpTypeInt 32 0
%uint_3 = OpConstant %uint 3
%_arr_float_uint_3 = OpTypeArray %float %uint_3
%buf1 = OpTypeStruct %_arr_float_uint_3
%_ptr_Uniform_buf1 = OpTypePointer Uniform %buf1
%x_6 = OpVariable %_ptr_Uniform_buf1 Uniform
%int = OpTypeInt 32 1
%_arr_int_uint_3 = OpTypeArray %int %uint_3
%buf0 = OpTypeStruct %_arr_int_uint_3
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%x_9 = OpVariable %_ptr_Uniform_buf0 Uniform
%v4float = OpTypeVector %float 4
%_ptr_Private_v4float = OpTypePointer Private %v4float
%16 = OpConstantNull %v4float
%x_GLF_color = OpVariable %_ptr_Private_v4float Private %16
%_ptr_Output_v4float = OpTypePointer Output %v4float
%tint_symbol_1 = OpVariable %_ptr_Output_v4float Output %16
%void = OpTypeVoid
%19 = OpTypeFunction %void
%_arr_float_uint_3_0 = OpTypeArray %float %uint_3
%_ptr_Function__arr_float_uint_3_0 = OpTypePointer Function %_arr_float_uint_3_0
%26 = OpConstantNull %_arr_float_uint_3_0
%_ptr_Function_int = OpTypePointer Function %int
%29 = OpConstantNull %int
%bool = OpTypeBool
%_ptr_Function_bool = OpTypePointer Function %bool
%33 = OpConstantNull %bool
%uint_0 = OpConstant %uint 0
%int_1 = OpConstant %int 1
%_ptr_Uniform_float = OpTypePointer Uniform %float
%int_0 = OpConstant %int 0
%int_2 = OpConstant %int 2
%_ptr_Uniform_int = OpTypePointer Uniform %int
%_ptr_Function_float = OpTypePointer Function %float
%main_out = OpTypeStruct %v4float
%113 = OpTypeFunction %void %main_out
%main_1 = OpFunction %void None %19
%22 = OpLabel
%arr = OpVariable %_ptr_Function__arr_float_uint_3_0 Function %26
%a = OpVariable %_ptr_Function_int Function %29
%x_69 = OpVariable %_ptr_Function_bool Function %33
%x_79 = OpVariable %_ptr_Function_bool Function %33
%x_70_phi = OpVariable %_ptr_Function_bool Function %33
%x_80_phi = OpVariable %_ptr_Function_bool Function %33
%40 = OpAccessChain %_ptr_Uniform_float %x_6 %uint_0 %int_1
%41 = OpLoad %float %40
%43 = OpAccessChain %_ptr_Uniform_float %x_6 %uint_0 %int_0
%44 = OpLoad %float %43
%46 = OpAccessChain %_ptr_Uniform_float %x_6 %uint_0 %int_2
%47 = OpLoad %float %46
%48 = OpCompositeConstruct %_arr_float_uint_3_0 %41 %44 %47
OpStore %arr %48
OpStore %a %int_0
OpBranch %49
%49 = OpLabel
OpLoopMerge %50 %51 None
OpBranch %52
%52 = OpLabel
%53 = OpLoad %int %a
%55 = OpAccessChain %_ptr_Uniform_int %x_9 %uint_0 %int_1
%56 = OpLoad %int %55
%57 = OpSLessThanEqual %bool %53 %56
OpSelectionMerge %58 None
OpBranchConditional %57 %59 %60
%59 = OpLabel
OpBranch %58
%60 = OpLabel
OpBranch %50
%58 = OpLabel
%61 = OpLoad %int %a
%62 = OpIAdd %int %61 %int_1
OpStore %a %62
%63 = OpAccessChain %_ptr_Uniform_float %x_6 %uint_0 %int_0
%64 = OpLoad %float %63
%66 = OpAccessChain %_ptr_Function_float %arr %61
OpStore %66 %64
OpBranch %51
%51 = OpLabel
OpBranch %49
%50 = OpLabel
%67 = OpAccessChain %_ptr_Uniform_int %x_9 %uint_0 %int_1
%68 = OpLoad %int %67
%69 = OpAccessChain %_ptr_Function_float %arr %68
%70 = OpLoad %float %69
%71 = OpAccessChain %_ptr_Uniform_float %x_6 %uint_0 %int_0
%72 = OpLoad %float %71
%73 = OpFOrdEqual %bool %70 %72
OpStore %x_70_phi %73
OpSelectionMerge %74 None
OpBranchConditional %73 %75 %74
%75 = OpLabel
%76 = OpAccessChain %_ptr_Uniform_int %x_9 %uint_0 %int_2
%77 = OpLoad %int %76
%78 = OpAccessChain %_ptr_Function_float %arr %77
%79 = OpLoad %float %78
%80 = OpAccessChain %_ptr_Uniform_float %x_6 %uint_0 %int_0
%81 = OpLoad %float %80
%82 = OpFOrdEqual %bool %79 %81
OpStore %x_69 %82
%83 = OpLoad %bool %x_69
OpStore %x_70_phi %83
OpBranch %74
%74 = OpLabel
%84 = OpLoad %bool %x_70_phi
OpStore %x_80_phi %84
OpSelectionMerge %85 None
OpBranchConditional %84 %86 %85
%86 = OpLabel
%87 = OpAccessChain %_ptr_Uniform_int %x_9 %uint_0 %int_0
%88 = OpLoad %int %87
%89 = OpAccessChain %_ptr_Function_float %arr %88
%90 = OpLoad %float %89
%91 = OpAccessChain %_ptr_Uniform_float %x_6 %uint_0 %int_2
%92 = OpLoad %float %91
%93 = OpFOrdEqual %bool %90 %92
OpStore %x_79 %93
%94 = OpLoad %bool %x_79
OpStore %x_80_phi %94
OpBranch %85
%85 = OpLabel
%95 = OpLoad %bool %x_80_phi
OpSelectionMerge %96 None
OpBranchConditional %95 %97 %98
%97 = OpLabel
%99 = OpAccessChain %_ptr_Uniform_int %x_9 %uint_0 %int_1
%100 = OpLoad %int %99
%101 = OpAccessChain %_ptr_Function_float %arr %100
%102 = OpLoad %float %101
%103 = OpAccessChain %_ptr_Uniform_float %x_6 %uint_0 %int_1
%104 = OpLoad %float %103
%105 = OpAccessChain %_ptr_Uniform_float %x_6 %uint_0 %int_1
%106 = OpLoad %float %105
%107 = OpAccessChain %_ptr_Uniform_float %x_6 %uint_0 %int_0
%108 = OpLoad %float %107
%109 = OpCompositeConstruct %v4float %102 %104 %106 %108
OpStore %x_GLF_color %109
OpBranch %96
%98 = OpLabel
%110 = OpAccessChain %_ptr_Uniform_float %x_6 %uint_0 %int_1
%111 = OpLoad %float %110
%112 = OpCompositeConstruct %v4float %111 %111 %111 %111
OpStore %x_GLF_color %112
OpBranch %96
%96 = OpLabel
OpReturn
OpFunctionEnd
%tint_symbol_2 = OpFunction %void None %113
%tint_symbol = OpFunctionParameter %main_out
%117 = OpLabel
%118 = OpCompositeExtract %v4float %tint_symbol 0
OpStore %tint_symbol_1 %118
OpReturn
OpFunctionEnd
%main = OpFunction %void None %19
%120 = OpLabel
%121 = OpFunctionCall %void %main_1
%123 = OpLoad %v4float %x_GLF_color
%124 = OpCompositeConstruct %main_out %123
%122 = OpFunctionCall %void %tint_symbol_2 %124
OpReturn
OpFunctionEnd