blob: 5d524ab86c6b5d1d514e7108ee73ea526a04145e [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 89
; 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_int_values"
OpName %x_6 "x_6"
OpName %buf0 "buf0"
OpMemberName %buf0 0 "x_GLF_uniform_float_values"
OpName %x_8 "x_8"
OpName %x_GLF_color "x_GLF_color"
OpName %tint_symbol_1 "tint_symbol_1"
OpName %main_1 "main_1"
OpName %undefined "undefined"
OpName %x_51 "x_51"
OpName %x_52_phi "x_52_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_int_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_float_uint_1 ArrayStride 16
OpDecorate %x_8 NonWritable
OpDecorate %x_8 DescriptorSet 0
OpDecorate %x_8 Binding 0
OpDecorate %tint_symbol_1 Location 0
OpMemberDecorate %main_out 0 Offset 0
%int = OpTypeInt 32 1
%uint = OpTypeInt 32 0
%uint_3 = OpConstant %uint 3
%_arr_int_uint_3 = OpTypeArray %int %uint_3
%buf1 = OpTypeStruct %_arr_int_uint_3
%_ptr_Uniform_buf1 = OpTypePointer Uniform %buf1
%x_6 = OpVariable %_ptr_Uniform_buf1 Uniform
%float = OpTypeFloat 32
%uint_1 = OpConstant %uint 1
%_arr_float_uint_1 = OpTypeArray %float %uint_1
%buf0 = OpTypeStruct %_arr_float_uint_1
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%x_8 = OpVariable %_ptr_Uniform_buf0 Uniform
%v4float = OpTypeVector %float 4
%_ptr_Private_v4float = OpTypePointer Private %v4float
%17 = OpConstantNull %v4float
%x_GLF_color = OpVariable %_ptr_Private_v4float Private %17
%_ptr_Output_v4float = OpTypePointer Output %v4float
%tint_symbol_1 = OpVariable %_ptr_Output_v4float Output %17
%void = OpTypeVoid
%20 = OpTypeFunction %void
%_ptr_Function_float = OpTypePointer Function %float
%26 = OpConstantNull %float
%bool = OpTypeBool
%_ptr_Function_bool = OpTypePointer Function %bool
%30 = OpConstantNull %bool
%float_5 = OpConstant %float 5
%float_0 = OpConstant %float 0
%uint_0 = OpConstant %uint 0
%int_0 = OpConstant %int 0
%_ptr_Uniform_int = OpTypePointer Uniform %int
%int_1 = OpConstant %int 1
%_ptr_Uniform_float = OpTypePointer Uniform %float
%main_out = OpTypeStruct %v4float
%77 = OpTypeFunction %void %main_out
%main_1 = OpFunction %void None %20
%23 = OpLabel
%undefined = OpVariable %_ptr_Function_float Function %26
%x_51 = OpVariable %_ptr_Function_bool Function %30
%x_52_phi = OpVariable %_ptr_Function_bool Function %30
%34 = OpFRem %float %float_5 %float_0
OpStore %undefined %34
%38 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_0
%39 = OpLoad %int %38
%40 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_0
%41 = OpLoad %int %40
%43 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_1
%44 = OpLoad %int %43
%45 = OpIAdd %int %41 %44
%46 = OpIEqual %bool %39 %45
OpStore %x_52_phi %46
%47 = OpLogicalNot %bool %46
OpSelectionMerge %48 None
OpBranchConditional %47 %49 %48
%49 = OpLabel
%50 = OpLoad %float %undefined
%52 = OpAccessChain %_ptr_Uniform_float %x_8 %uint_0 %int_0
%53 = OpLoad %float %52
%54 = OpFOrdGreaterThan %bool %50 %53
OpStore %x_51 %54
%55 = OpLoad %bool %x_51
OpStore %x_52_phi %55
OpBranch %48
%48 = OpLabel
%56 = OpLoad %bool %x_52_phi
OpSelectionMerge %57 None
OpBranchConditional %56 %58 %59
%58 = OpLabel
%60 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_0
%61 = OpLoad %int %60
%62 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_1
%63 = OpLoad %int %62
%64 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_1
%65 = OpLoad %int %64
%66 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_0
%67 = OpLoad %int %66
%68 = OpConvertSToF %float %61
%69 = OpConvertSToF %float %63
%70 = OpConvertSToF %float %65
%71 = OpConvertSToF %float %67
%72 = OpCompositeConstruct %v4float %68 %69 %70 %71
OpStore %x_GLF_color %72
OpBranch %57
%59 = OpLabel
%73 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_1
%74 = OpLoad %int %73
%75 = OpConvertSToF %float %74
%76 = OpCompositeConstruct %v4float %75 %75 %75 %75
OpStore %x_GLF_color %76
OpBranch %57
%57 = OpLabel
OpReturn
OpFunctionEnd
%tint_symbol_2 = OpFunction %void None %77
%tint_symbol = OpFunctionParameter %main_out
%81 = OpLabel
%82 = OpCompositeExtract %v4float %tint_symbol 0
OpStore %tint_symbol_1 %82
OpReturn
OpFunctionEnd
%main = OpFunction %void None %20
%84 = OpLabel
%85 = OpFunctionCall %void %main_1
%87 = OpLoad %v4float %x_GLF_color
%88 = OpCompositeConstruct %main_out %87
%86 = OpFunctionCall %void %tint_symbol_2 %88
OpReturn
OpFunctionEnd