blob: eef154acc982572e0df16fb094cbef118a5c6508 [file] [log] [blame]
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %_entrypoint_v "_entrypoint" %sk_FragColor
OpExecutionMode %_entrypoint_v OriginUpperLeft
OpName %sk_FragColor "sk_FragColor"
OpName %globalVar "globalVar"
OpName %S "S"
OpMemberName %S 0 "f"
OpMemberName %S 1 "af"
OpMemberName %S 2 "h4"
OpMemberName %S 3 "ah4"
OpName %globalStruct "globalStruct"
OpName %_UniformBuffer "_UniformBuffer"
OpMemberName %_UniformBuffer 0 "colorGreen"
OpName %_entrypoint_v "_entrypoint_v"
OpName %keepAlive_vh "keepAlive_vh"
OpName %keepAlive_vf "keepAlive_vf"
OpName %keepAlive_vi "keepAlive_vi"
OpName %assignToFunctionParameter_vif "assignToFunctionParameter_vif"
OpName %main "main"
OpName %i "i"
OpName %i4 "i4"
OpName %f3x3 "f3x3"
OpName %x "x"
OpName %ai "ai"
OpName %ai4 "ai4"
OpName %ah3x3 "ah3x3"
OpName %af4 "af4"
OpName %s "s"
OpName %l "l"
OpName %repeat "repeat"
OpDecorate %sk_FragColor RelaxedPrecision
OpDecorate %sk_FragColor Location 0
OpDecorate %sk_FragColor Index 0
OpDecorate %globalVar RelaxedPrecision
OpDecorate %_arr_float_int_5 ArrayStride 16
OpDecorate %_arr_v4float_int_5 ArrayStride 16
OpMemberDecorate %S 0 Offset 0
OpMemberDecorate %S 1 Offset 16
OpMemberDecorate %S 2 Offset 96
OpMemberDecorate %S 2 RelaxedPrecision
OpMemberDecorate %S 3 Offset 112
OpMemberDecorate %S 3 RelaxedPrecision
OpMemberDecorate %_UniformBuffer 0 Offset 0
OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision
OpDecorate %_UniformBuffer Block
OpDecorate %20 Binding 0
OpDecorate %20 DescriptorSet 0
OpDecorate %x RelaxedPrecision
OpDecorate %80 RelaxedPrecision
OpDecorate %81 RelaxedPrecision
OpDecorate %_arr_int_int_1 ArrayStride 16
OpDecorate %_arr_v4int_int_1 ArrayStride 16
OpDecorate %_arr_mat3v3float_int_1 ArrayStride 48
OpDecorate %_arr_v4float_int_1 ArrayStride 16
OpDecorate %109 RelaxedPrecision
OpDecorate %110 RelaxedPrecision
OpDecorate %113 RelaxedPrecision
OpDecorate %114 RelaxedPrecision
OpDecorate %l RelaxedPrecision
OpDecorate %147 RelaxedPrecision
OpDecorate %148 RelaxedPrecision
OpDecorate %150 RelaxedPrecision
OpDecorate %172 RelaxedPrecision
OpDecorate %173 RelaxedPrecision
OpDecorate %175 RelaxedPrecision
OpDecorate %181 RelaxedPrecision
OpDecorate %182 RelaxedPrecision
OpDecorate %184 RelaxedPrecision
OpDecorate %197 RelaxedPrecision
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%sk_FragColor = OpVariable %_ptr_Output_v4float Output
%_ptr_Private_v4float = OpTypePointer Private %v4float
%globalVar = OpVariable %_ptr_Private_v4float Private
%int = OpTypeInt 32 1
%int_5 = OpConstant %int 5
%_arr_float_int_5 = OpTypeArray %float %int_5
%_arr_v4float_int_5 = OpTypeArray %v4float %int_5
%S = OpTypeStruct %float %_arr_float_int_5 %v4float %_arr_v4float_int_5
%_ptr_Private_S = OpTypePointer Private %S
%globalStruct = OpVariable %_ptr_Private_S Private
%_UniformBuffer = OpTypeStruct %v4float
%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
%20 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
%void = OpTypeVoid
%25 = OpTypeFunction %void
%float_0 = OpConstant %float 0
%v2float = OpTypeVector %float 2
%29 = OpConstantComposite %v2float %float_0 %float_0
%_ptr_Function_v2float = OpTypePointer Function %v2float
%_ptr_Function_float = OpTypePointer Function %float
%34 = OpTypeFunction %void %_ptr_Function_float
%_ptr_Function_int = OpTypePointer Function %int
%40 = OpTypeFunction %void %_ptr_Function_int
%43 = OpTypeFunction %void %_ptr_Function_int %_ptr_Function_float
%int_1 = OpConstant %int 1
%float_1 = OpConstant %float 1
%49 = OpTypeFunction %v4float %_ptr_Function_v2float
%int_0 = OpConstant %int 0
%v4int = OpTypeVector %int 4
%_ptr_Function_v4int = OpTypePointer Function %v4int
%int_2 = OpConstant %int 2
%int_3 = OpConstant %int 3
%int_4 = OpConstant %int 4
%60 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
%v3float = OpTypeVector %float 3
%mat3v3float = OpTypeMatrix %v3float 3
%_ptr_Function_mat3v3float = OpTypePointer Function %mat3v3float
%float_2 = OpConstant %float 2
%float_3 = OpConstant %float 3
%float_4 = OpConstant %float 4
%float_5 = OpConstant %float 5
%float_6 = OpConstant %float 6
%float_7 = OpConstant %float 7
%float_8 = OpConstant %float 8
%float_9 = OpConstant %float 9
%73 = OpConstantComposite %v3float %float_1 %float_2 %float_3
%74 = OpConstantComposite %v3float %float_4 %float_5 %float_6
%75 = OpConstantComposite %v3float %float_7 %float_8 %float_9
%76 = OpConstantComposite %mat3v3float %73 %74 %75
%_ptr_Function_v4float = OpTypePointer Function %v4float
%_arr_int_int_1 = OpTypeArray %int %int_1
%_ptr_Function__arr_int_int_1 = OpTypePointer Function %_arr_int_int_1
%_arr_v4int_int_1 = OpTypeArray %v4int %int_1
%_ptr_Function__arr_v4int_int_1 = OpTypePointer Function %_arr_v4int_int_1
%_arr_mat3v3float_int_1 = OpTypeArray %mat3v3float %int_1
%_ptr_Function__arr_mat3v3float_int_1 = OpTypePointer Function %_arr_mat3v3float_int_1
%_arr_v4float_int_1 = OpTypeArray %v4float %int_1
%_ptr_Function__arr_v4float_int_1 = OpTypePointer Function %_arr_v4float_int_1
%99 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1
%_ptr_Function_S = OpTypePointer Function %S
%107 = OpConstantComposite %v3float %float_9 %float_9 %float_9
%111 = OpConstantComposite %v2float %float_5 %float_5
%115 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0
%_ptr_Private_float = OpTypePointer Private %float
%_ptr_Function_v3float = OpTypePointer Function %v3float
%136 = OpConstantComposite %v4float %float_2 %float_2 %float_2 %float_2
%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
%_entrypoint_v = OpFunction %void None %25
%26 = OpLabel
%30 = OpVariable %_ptr_Function_v2float Function
OpStore %30 %29
%32 = OpFunctionCall %v4float %main %30
OpStore %sk_FragColor %32
OpReturn
OpFunctionEnd
%keepAlive_vh = OpFunction %void None %34
%35 = OpFunctionParameter %_ptr_Function_float
%36 = OpLabel
OpReturn
OpFunctionEnd
%keepAlive_vf = OpFunction %void None %34
%37 = OpFunctionParameter %_ptr_Function_float
%38 = OpLabel
OpReturn
OpFunctionEnd
%keepAlive_vi = OpFunction %void None %40
%41 = OpFunctionParameter %_ptr_Function_int
%42 = OpLabel
OpReturn
OpFunctionEnd
%assignToFunctionParameter_vif = OpFunction %void None %43
%44 = OpFunctionParameter %_ptr_Function_int
%45 = OpFunctionParameter %_ptr_Function_float
%46 = OpLabel
OpStore %44 %int_1
OpStore %45 %float_1
OpReturn
OpFunctionEnd
%main = OpFunction %v4float None %49
%50 = OpFunctionParameter %_ptr_Function_v2float
%51 = OpLabel
%i = OpVariable %_ptr_Function_int Function
%i4 = OpVariable %_ptr_Function_v4int Function
%f3x3 = OpVariable %_ptr_Function_mat3v3float Function
%x = OpVariable %_ptr_Function_v4float Function
%ai = OpVariable %_ptr_Function__arr_int_int_1 Function
%ai4 = OpVariable %_ptr_Function__arr_v4int_int_1 Function
%ah3x3 = OpVariable %_ptr_Function__arr_mat3v3float_int_1 Function
%af4 = OpVariable %_ptr_Function__arr_v4float_int_1 Function
%s = OpVariable %_ptr_Function_S Function
%118 = OpVariable %_ptr_Function_int Function
%123 = OpVariable %_ptr_Function_float Function
%l = OpVariable %_ptr_Function_float Function
%repeat = OpVariable %_ptr_Function_float Function
%142 = OpVariable %_ptr_Function_float Function
%148 = OpVariable %_ptr_Function_float Function
%152 = OpVariable %_ptr_Function_int Function
%157 = OpVariable %_ptr_Function_int Function
%162 = OpVariable %_ptr_Function_int Function
%168 = OpVariable %_ptr_Function_int Function
%173 = OpVariable %_ptr_Function_float Function
%178 = OpVariable %_ptr_Function_float Function
%182 = OpVariable %_ptr_Function_float Function
%188 = OpVariable %_ptr_Function_float Function
%192 = OpVariable %_ptr_Function_float Function
OpStore %i %int_0
OpStore %i4 %60
OpStore %f3x3 %76
%79 = OpAccessChain %_ptr_Function_float %x %int_3
OpStore %79 %float_0
%80 = OpLoad %v4float %x
%81 = OpVectorShuffle %v4float %80 %29 5 4 2 3
OpStore %x %81
%85 = OpAccessChain %_ptr_Function_int %ai %int_0
OpStore %85 %int_0
%89 = OpAccessChain %_ptr_Function_v4int %ai4 %int_0
OpStore %89 %60
%93 = OpAccessChain %_ptr_Function_mat3v3float %ah3x3 %int_0
OpStore %93 %76
%97 = OpAccessChain %_ptr_Function_v4float %af4 %int_0
%98 = OpAccessChain %_ptr_Function_float %97 %int_0
OpStore %98 %float_0
%100 = OpAccessChain %_ptr_Function_v4float %af4 %int_0
%101 = OpLoad %v4float %100
%102 = OpVectorShuffle %v4float %101 %99 6 4 7 5
OpStore %100 %102
%105 = OpAccessChain %_ptr_Function_float %s %int_0
OpStore %105 %float_0
%106 = OpAccessChain %_ptr_Function_float %s %int_1 %int_1
OpStore %106 %float_0
%108 = OpAccessChain %_ptr_Function_v4float %s %int_2
%109 = OpLoad %v4float %108
%110 = OpVectorShuffle %v4float %109 %107 5 6 4 3
OpStore %108 %110
%112 = OpAccessChain %_ptr_Function_v4float %s %int_3 %int_2
%113 = OpLoad %v4float %112
%114 = OpVectorShuffle %v4float %113 %111 0 4 2 5
OpStore %112 %114
OpStore %globalVar %115
%116 = OpAccessChain %_ptr_Private_float %globalStruct %int_0
OpStore %116 %float_0
OpStore %118 %int_0
%119 = OpAccessChain %_ptr_Function_v3float %f3x3 %int_0
%121 = OpAccessChain %_ptr_Function_float %119 %int_0
%122 = OpLoad %float %121
OpStore %123 %122
%124 = OpFunctionCall %void %assignToFunctionParameter_vif %118 %123
%125 = OpLoad %float %123
OpStore %121 %125
OpStore %l %float_0
%127 = OpAccessChain %_ptr_Function_int %ai %int_0
%128 = OpLoad %int %127
%129 = OpAccessChain %_ptr_Function_v4int %ai4 %int_0
%130 = OpLoad %v4int %129
%131 = OpCompositeExtract %int %130 0
%132 = OpIAdd %int %128 %131
OpStore %127 %132
%133 = OpAccessChain %_ptr_Function_float %s %int_0
OpStore %133 %float_1
%134 = OpAccessChain %_ptr_Function_float %s %int_1 %int_0
OpStore %134 %float_2
%135 = OpAccessChain %_ptr_Function_v4float %s %int_2
OpStore %135 %99
%137 = OpAccessChain %_ptr_Function_v4float %s %int_3 %int_0
OpStore %137 %136
OpStore %repeat %float_1
OpStore %repeat %float_1
%139 = OpAccessChain %_ptr_Function_v4float %af4 %int_0
%140 = OpAccessChain %_ptr_Function_float %139 %int_0
%141 = OpLoad %float %140
OpStore %142 %141
%143 = OpFunctionCall %void %keepAlive_vf %142
%144 = OpLoad %float %142
OpStore %140 %144
%145 = OpAccessChain %_ptr_Function_v3float %ah3x3 %int_0 %int_0
%146 = OpAccessChain %_ptr_Function_float %145 %int_0
%147 = OpLoad %float %146
OpStore %148 %147
%149 = OpFunctionCall %void %keepAlive_vh %148
%150 = OpLoad %float %148
OpStore %146 %150
%151 = OpLoad %int %i
OpStore %152 %151
%153 = OpFunctionCall %void %keepAlive_vi %152
%154 = OpLoad %int %152
OpStore %i %154
%155 = OpAccessChain %_ptr_Function_int %i4 %int_1
%156 = OpLoad %int %155
OpStore %157 %156
%158 = OpFunctionCall %void %keepAlive_vi %157
%159 = OpLoad %int %157
OpStore %155 %159
%160 = OpAccessChain %_ptr_Function_int %ai %int_0
%161 = OpLoad %int %160
OpStore %162 %161
%163 = OpFunctionCall %void %keepAlive_vi %162
%164 = OpLoad %int %162
OpStore %160 %164
%165 = OpAccessChain %_ptr_Function_v4int %ai4 %int_0
%166 = OpAccessChain %_ptr_Function_int %165 %int_0
%167 = OpLoad %int %166
OpStore %168 %167
%169 = OpFunctionCall %void %keepAlive_vi %168
%170 = OpLoad %int %168
OpStore %166 %170
%171 = OpAccessChain %_ptr_Function_float %x %int_1
%172 = OpLoad %float %171
OpStore %173 %172
%174 = OpFunctionCall %void %keepAlive_vh %173
%175 = OpLoad %float %173
OpStore %171 %175
%176 = OpAccessChain %_ptr_Function_float %s %int_0
%177 = OpLoad %float %176
OpStore %178 %177
%179 = OpFunctionCall %void %keepAlive_vf %178
%180 = OpLoad %float %178
OpStore %176 %180
%181 = OpLoad %float %l
OpStore %182 %181
%183 = OpFunctionCall %void %keepAlive_vh %182
%184 = OpLoad %float %182
OpStore %l %184
%185 = OpAccessChain %_ptr_Function_v3float %f3x3 %int_0
%186 = OpAccessChain %_ptr_Function_float %185 %int_0
%187 = OpLoad %float %186
OpStore %188 %187
%189 = OpFunctionCall %void %keepAlive_vf %188
%190 = OpLoad %float %188
OpStore %186 %190
%191 = OpLoad %float %repeat
OpStore %192 %191
%193 = OpFunctionCall %void %keepAlive_vf %192
%194 = OpLoad %float %192
OpStore %repeat %194
%195 = OpAccessChain %_ptr_Uniform_v4float %20 %int_0
%197 = OpLoad %v4float %195
OpReturnValue %197
OpFunctionEnd