blob: 3fb84ced5efd3c783cabab39d4d70724365c5c95 [file] [log] [blame]
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %_GLF_color
OpExecutionMode %main OriginUpperLeft
OpSource ESSL 310
OpName %main "main"
OpName %A "A"
OpName %buf1 "buf1"
OpMemberName %buf1 0 "_GLF_uniform_float_values"
OpName %_ ""
OpName %i "i"
OpName %buf0 "buf0"
OpMemberName %buf0 0 "_GLF_uniform_int_values"
OpName %__0 ""
OpName %j "j"
OpName %_GLF_color "_GLF_color"
OpDecorate %_arr_float_uint_3 ArrayStride 16
OpMemberDecorate %buf1 0 Offset 0
OpDecorate %buf1 Block
OpDecorate %_ DescriptorSet 0
OpDecorate %_ Binding 1
OpDecorate %_arr_int_uint_4 ArrayStride 16
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %buf0 Block
OpDecorate %__0 DescriptorSet 0
OpDecorate %__0 Binding 0
OpDecorate %_GLF_color Location 0
%void = OpTypeVoid
%14 = OpTypeFunction %void
%float = OpTypeFloat 32
%uint = OpTypeInt 32 0
%uint_2 = OpConstant %uint 2
%_arr_float_uint_2 = OpTypeArray %float %uint_2
%_ptr_Function__arr_float_uint_2 = OpTypePointer Function %_arr_float_uint_2
%int = OpTypeInt 32 1
%int_0 = OpConstant %int 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
%_ = OpVariable %_ptr_Uniform_buf1 Uniform
%int_1 = OpConstant %int 1
%_ptr_Uniform_float = OpTypePointer Uniform %float
%_ptr_Function_float = OpTypePointer Function %float
%_ptr_Function_int = OpTypePointer Function %int
%uint_4 = OpConstant %uint 4
%_arr_int_uint_4 = OpTypeArray %int %uint_4
%buf0 = OpTypeStruct %_arr_int_uint_4
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%__0 = OpVariable %_ptr_Uniform_buf0 Uniform
%_ptr_Uniform_int = OpTypePointer Uniform %int
%int_3 = OpConstant %int 3
%bool = OpTypeBool
%int_2 = OpConstant %int 2
%int_n2147483648 = OpConstant %int -2147483648
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%_GLF_color = OpVariable %_ptr_Output_v4float Output
%main = OpFunction %void None %14
%37 = OpLabel
%A = OpVariable %_ptr_Function__arr_float_uint_2 Function
%i = OpVariable %_ptr_Function_int Function
%j = OpVariable %_ptr_Function_int Function
%38 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_1
%39 = OpLoad %float %38
%40 = OpAccessChain %_ptr_Function_float %A %int_0
OpStore %40 %39
%41 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_1
%42 = OpLoad %float %41
%43 = OpAccessChain %_ptr_Function_float %A %int_1
OpStore %43 %42
%44 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_0
%45 = OpLoad %int %44
OpStore %i %45
OpBranch %46
%46 = OpLabel
OpLoopMerge %47 %48 None
OpBranch %49
%49 = OpLabel
%50 = OpLoad %int %i
%51 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_3
%52 = OpLoad %int %51
%53 = OpSLessThan %bool %50 %52
OpBranchConditional %53 %54 %47
%54 = OpLabel
%55 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_0
%56 = OpLoad %int %55
OpStore %j %56
OpBranch %57
%57 = OpLabel
OpLoopMerge %58 %59 None
OpBranch %60
%60 = OpLabel
%61 = OpLoad %int %j
%62 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_2
%63 = OpLoad %int %62
%64 = OpSLessThan %bool %61 %63
OpBranchConditional %64 %65 %58
%65 = OpLabel
%66 = OpLoad %int %j
OpSelectionMerge %67 None
OpSwitch %66 %67 0 %68 1 %69
%68 = OpLabel
%70 = OpLoad %int %i
%71 = OpSLessThan %bool %int_n2147483648 %70
OpSelectionMerge %72 None
OpBranchConditional %71 %73 %72
%73 = OpLabel
OpBranch %59
%72 = OpLabel
%74 = OpLoad %int %i
%75 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_2
%76 = OpLoad %float %75
%77 = OpAccessChain %_ptr_Function_float %A %74
OpStore %77 %76
OpBranch %67
%69 = OpLabel
%78 = OpLoad %int %i
%79 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_0
%80 = OpLoad %float %79
%81 = OpAccessChain %_ptr_Function_float %A %78
OpStore %81 %80
OpBranch %67
%67 = OpLabel
OpBranch %59
%59 = OpLabel
%82 = OpLoad %int %j
%83 = OpIAdd %int %82 %int_1
OpStore %j %83
OpBranch %57
%58 = OpLabel
OpBranch %48
%48 = OpLabel
%84 = OpLoad %int %i
%85 = OpIAdd %int %84 %int_1
OpStore %i %85
OpBranch %46
%47 = OpLabel
%86 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_0
%87 = OpLoad %int %86
%88 = OpAccessChain %_ptr_Function_float %A %87
%89 = OpLoad %float %88
%90 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_0
%91 = OpLoad %float %90
%92 = OpFOrdEqual %bool %89 %91
OpSelectionMerge %93 None
OpBranchConditional %92 %94 %93
%94 = OpLabel
%95 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_1
%96 = OpLoad %int %95
%97 = OpAccessChain %_ptr_Function_float %A %96
%98 = OpLoad %float %97
%99 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_0
%100 = OpLoad %float %99
%101 = OpFOrdEqual %bool %98 %100
OpBranch %93
%93 = OpLabel
%102 = OpPhi %bool %92 %47 %101 %94
OpSelectionMerge %103 None
OpBranchConditional %102 %104 %105
%104 = OpLabel
%106 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_1
%107 = OpLoad %int %106
%108 = OpConvertSToF %float %107
%109 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_0
%110 = OpLoad %int %109
%111 = OpConvertSToF %float %110
%112 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_0
%113 = OpLoad %int %112
%114 = OpConvertSToF %float %113
%115 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_1
%116 = OpLoad %int %115
%117 = OpConvertSToF %float %116
%118 = OpCompositeConstruct %v4float %108 %111 %114 %117
OpStore %_GLF_color %118
OpBranch %103
%105 = OpLabel
%119 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_1
%120 = OpLoad %int %119
%121 = OpConvertSToF %float %120
%122 = OpCompositeConstruct %v4float %121 %121 %121 %121
OpStore %_GLF_color %122
OpBranch %103
%103 = OpLabel
OpReturn
OpFunctionEnd