blob: aa4633448720ac2bb5d09acfcac1bbffce442049 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 106
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %tint_symbol_1
OpExecutionMode %main OriginUpperLeft
OpName %x_GLF_color "x_GLF_color"
OpName %buf1 "buf1"
OpMemberName %buf1 0 "x_GLF_uniform_float_values"
OpName %x_5 "x_5"
OpName %buf2 "buf2"
OpMemberName %buf2 0 "zero"
OpName %x_7 "x_7"
OpName %buf0 "buf0"
OpMemberName %buf0 0 "x_GLF_uniform_int_values"
OpName %x_10 "x_10"
OpName %tint_symbol_1 "tint_symbol_1"
OpName %main_1 "main_1"
OpName %i "i"
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_2 ArrayStride 16
OpDecorate %x_5 NonWritable
OpDecorate %x_5 DescriptorSet 0
OpDecorate %x_5 Binding 1
OpDecorate %buf2 Block
OpMemberDecorate %buf2 0 Offset 0
OpDecorate %x_7 NonWritable
OpDecorate %x_7 DescriptorSet 0
OpDecorate %x_7 Binding 2
OpDecorate %buf0 Block
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %_arr_int_uint_2 ArrayStride 16
OpDecorate %x_10 NonWritable
OpDecorate %x_10 DescriptorSet 0
OpDecorate %x_10 Binding 0
OpDecorate %tint_symbol_1 Location 0
OpMemberDecorate %main_out 0 Offset 0
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Private_v4float = OpTypePointer Private %v4float
%5 = OpConstantNull %v4float
%x_GLF_color = OpVariable %_ptr_Private_v4float Private %5
%uint = OpTypeInt 32 0
%uint_2 = OpConstant %uint 2
%_arr_float_uint_2 = OpTypeArray %float %uint_2
%buf1 = OpTypeStruct %_arr_float_uint_2
%_ptr_Uniform_buf1 = OpTypePointer Uniform %buf1
%x_5 = OpVariable %_ptr_Uniform_buf1 Uniform
%buf2 = OpTypeStruct %float
%_ptr_Uniform_buf2 = OpTypePointer Uniform %buf2
%x_7 = OpVariable %_ptr_Uniform_buf2 Uniform
%int = OpTypeInt 32 1
%_arr_int_uint_2 = OpTypeArray %int %uint_2
%buf0 = OpTypeStruct %_arr_int_uint_2
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%x_10 = OpVariable %_ptr_Uniform_buf0 Uniform
%_ptr_Output_v4float = OpTypePointer Output %v4float
%tint_symbol_1 = OpVariable %_ptr_Output_v4float Output %5
%void = OpTypeVoid
%22 = OpTypeFunction %void
%_ptr_Function_int = OpTypePointer Function %int
%28 = OpConstantNull %int
%uint_0 = OpConstant %uint 0
%int_0 = OpConstant %int 0
%_ptr_Uniform_float = OpTypePointer Uniform %float
%bool = OpTypeBool
%int_1 = OpConstant %int 1
%true = OpConstantTrue %bool
%_ptr_Uniform_int = OpTypePointer Uniform %int
%main_out = OpTypeStruct %v4float
%94 = OpTypeFunction %void %main_out
%main_1 = OpFunction %void None %22
%25 = OpLabel
%i = OpVariable %_ptr_Function_int Function %28
%32 = OpAccessChain %_ptr_Uniform_float %x_5 %uint_0 %int_0
%33 = OpLoad %float %32
%34 = OpCompositeConstruct %v4float %33 %33 %33 %33
OpStore %x_GLF_color %34
%35 = OpAccessChain %_ptr_Uniform_float %x_7 %uint_0
%36 = OpLoad %float %35
%37 = OpAccessChain %_ptr_Uniform_float %x_5 %uint_0 %int_0
%38 = OpLoad %float %37
%39 = OpFOrdGreaterThan %bool %36 %38
OpSelectionMerge %41 None
OpBranchConditional %39 %42 %43
%42 = OpLabel
OpBranch %44
%44 = OpLabel
OpLoopMerge %45 %46 None
OpBranch %47
%47 = OpLabel
%49 = OpAccessChain %_ptr_Uniform_float %x_5 %uint_0 %int_1
%50 = OpLoad %float %49
%51 = OpCompositeConstruct %v4float %50 %50 %50 %50
OpStore %x_GLF_color %51
OpBranch %46
%46 = OpLabel
OpBranchConditional %true %44 %45
%45 = OpLabel
OpBranch %41
%43 = OpLabel
OpBranch %53
%53 = OpLabel
OpLoopMerge %54 %55 None
OpBranch %56
%56 = OpLabel
OpBranch %57
%57 = OpLabel
OpLoopMerge %58 %59 None
OpBranch %60
%60 = OpLabel
OpSelectionMerge %61 None
OpBranchConditional %true %62 %63
%62 = OpLabel
OpBranch %61
%63 = OpLabel
OpBranch %58
%61 = OpLabel
%65 = OpAccessChain %_ptr_Uniform_int %x_10 %uint_0 %int_1
%66 = OpLoad %int %65
OpStore %i %66
OpBranch %67
%67 = OpLabel
OpLoopMerge %68 %69 None
OpBranch %70
%70 = OpLabel
%71 = OpLoad %int %i
%72 = OpAccessChain %_ptr_Uniform_int %x_10 %uint_0 %int_0
%73 = OpLoad %int %72
%74 = OpSLessThan %bool %71 %73
OpSelectionMerge %75 None
OpBranchConditional %74 %76 %77
%76 = OpLabel
OpBranch %75
%77 = OpLabel
OpBranch %68
%75 = OpLabel
%78 = OpAccessChain %_ptr_Uniform_float %x_5 %uint_0 %int_1
%79 = OpLoad %float %78
%80 = OpAccessChain %_ptr_Uniform_float %x_5 %uint_0 %int_0
%81 = OpLoad %float %80
%82 = OpAccessChain %_ptr_Uniform_float %x_5 %uint_0 %int_0
%83 = OpLoad %float %82
%84 = OpAccessChain %_ptr_Uniform_float %x_5 %uint_0 %int_1
%85 = OpLoad %float %84
%86 = OpCompositeConstruct %v4float %79 %81 %83 %85
OpStore %x_GLF_color %86
OpBranch %69
%69 = OpLabel
%87 = OpLoad %int %i
%88 = OpIAdd %int %87 %int_1
OpStore %i %88
OpBranch %67
%68 = OpLabel
OpBranch %58
%59 = OpLabel
OpBranch %57
%58 = OpLabel
OpBranch %55
%55 = OpLabel
%89 = OpAccessChain %_ptr_Uniform_float %x_7 %uint_0
%90 = OpLoad %float %89
%91 = OpAccessChain %_ptr_Uniform_float %x_5 %uint_0 %int_0
%92 = OpLoad %float %91
%93 = OpFOrdGreaterThan %bool %90 %92
OpBranchConditional %93 %53 %54
%54 = OpLabel
OpBranch %41
%41 = OpLabel
OpReturn
OpFunctionEnd
%tint_symbol_2 = OpFunction %void None %94
%tint_symbol = OpFunctionParameter %main_out
%98 = OpLabel
%99 = OpCompositeExtract %v4float %tint_symbol 0
OpStore %tint_symbol_1 %99
OpReturn
OpFunctionEnd
%main = OpFunction %void None %22
%101 = OpLabel
%102 = OpFunctionCall %void %main_1
%104 = OpLoad %v4float %x_GLF_color
%105 = OpCompositeConstruct %main_out %104
%103 = OpFunctionCall %void %tint_symbol_2 %105
OpReturn
OpFunctionEnd