blob: 57160b278b33cb5ecea442515f3ef95de1910ee6 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 75
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %tint_symbol_1
OpExecutionMode %main OriginUpperLeft
OpName %buf0 "buf0"
OpMemberName %buf0 0 "x_GLF_uniform_float_values"
OpName %x_6 "x_6"
OpName %x_GLF_color "x_GLF_color"
OpName %tint_symbol_1 "tint_symbol_1"
OpName %main_1 "main_1"
OpName %a "a"
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 %buf0 Block
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %_arr_float_uint_4 ArrayStride 16
OpDecorate %x_6 NonWritable
OpDecorate %x_6 DescriptorSet 0
OpDecorate %x_6 Binding 0
OpDecorate %tint_symbol_1 Location 0
OpMemberDecorate %main_out 0 Offset 0
%float = OpTypeFloat 32
%uint = OpTypeInt 32 0
%uint_4 = OpConstant %uint 4
%_arr_float_uint_4 = OpTypeArray %float %uint_4
%buf0 = OpTypeStruct %_arr_float_uint_4
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%x_6 = OpVariable %_ptr_Uniform_buf0 Uniform
%v4float = OpTypeVector %float 4
%_ptr_Private_v4float = OpTypePointer Private %v4float
%11 = OpConstantNull %v4float
%x_GLF_color = OpVariable %_ptr_Private_v4float Private %11
%_ptr_Output_v4float = OpTypePointer Output %v4float
%tint_symbol_1 = OpVariable %_ptr_Output_v4float Output %11
%void = OpTypeVoid
%14 = OpTypeFunction %void
%_ptr_Function_float = OpTypePointer Function %float
%20 = OpConstantNull %float
%uint_0 = OpConstant %uint 0
%int = OpTypeInt 32 1
%int_1 = OpConstant %int 1
%_ptr_Uniform_float = OpTypePointer Uniform %float
%int_3 = OpConstant %int 3
%int_0 = OpConstant %int 0
%bool = OpTypeBool
%_ptr_Private_float = OpTypePointer Private %float
%int_2 = OpConstant %int 2
%float_0 = OpConstant %float 0
%float_1 = OpConstant %float 1
%main_out = OpTypeStruct %v4float
%63 = OpTypeFunction %void %main_out
%main_1 = OpFunction %void None %14
%17 = OpLabel
%a = OpVariable %_ptr_Function_float Function %20
%25 = OpAccessChain %_ptr_Uniform_float %x_6 %uint_0 %int_1
%26 = OpLoad %float %25
OpStore %a %26
%28 = OpAccessChain %_ptr_Uniform_float %x_6 %uint_0 %int_3
%29 = OpLoad %float %28
%31 = OpAccessChain %_ptr_Uniform_float %x_6 %uint_0 %int_0
%32 = OpLoad %float %31
%33 = OpFOrdGreaterThan %bool %29 %32
OpSelectionMerge %35 None
OpBranchConditional %33 %36 %35
%36 = OpLabel
%37 = OpAccessChain %_ptr_Uniform_float %x_6 %uint_0 %int_0
%38 = OpLoad %float %37
%39 = OpLoad %float %a
%40 = OpFAdd %float %39 %38
OpStore %a %40
%41 = OpLoad %float %a
%42 = OpCompositeConstruct %v4float %41 %41 %41 %41
OpStore %x_GLF_color %42
%43 = OpAccessChain %_ptr_Uniform_float %x_6 %uint_0 %int_3
%44 = OpLoad %float %43
%45 = OpAccessChain %_ptr_Uniform_float %x_6 %uint_0 %int_1
%46 = OpLoad %float %45
%47 = OpFOrdGreaterThan %bool %44 %46
OpSelectionMerge %48 None
OpBranchConditional %47 %49 %48
%49 = OpLabel
%51 = OpAccessChain %_ptr_Private_float %x_GLF_color %uint_0
%52 = OpLoad %float %51
%53 = OpLoad %float %a
%54 = OpFAdd %float %53 %52
OpStore %a %54
%56 = OpAccessChain %_ptr_Uniform_float %x_6 %uint_0 %int_2
%57 = OpLoad %float %56
%58 = OpCompositeConstruct %v4float %57 %57 %57 %57
OpStore %x_GLF_color %58
OpBranch %48
%48 = OpLabel
OpBranch %35
%35 = OpLabel
%59 = OpLoad %float %a
%62 = OpCompositeConstruct %v4float %59 %float_0 %float_0 %float_1
OpStore %x_GLF_color %62
OpReturn
OpFunctionEnd
%tint_symbol_2 = OpFunction %void None %63
%tint_symbol = OpFunctionParameter %main_out
%67 = OpLabel
%68 = OpCompositeExtract %v4float %tint_symbol 0
OpStore %tint_symbol_1 %68
OpReturn
OpFunctionEnd
%main = OpFunction %void None %14
%70 = OpLabel
%71 = OpFunctionCall %void %main_1
%73 = OpLoad %v4float %x_GLF_color
%74 = OpCompositeConstruct %main_out %73
%72 = OpFunctionCall %void %tint_symbol_2 %74
OpReturn
OpFunctionEnd