blob: d4019f2351ca8e5a84844003d3db1ded95e31817 [file] [log] [blame]
; Copyright 2013 The Flutter Authors. All rights reserved.
; Use of this source code is governed by a BSD-style license that can be
; found in the LICENSE file.
;
; SPIR-V
; Version: 1.0
; Generator: Khronos Glslang Reference Front End; 10
; Bound: 39
; Schema: 0
;
; Continue block %18 contains more than one OpStore instruction.
;
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %oColor
OpExecutionMode %main OriginLowerLeft
OpSource GLSL 450
OpName %main "main"
OpName %oColor "oColor"
OpName %j "j"
OpName %i "i"
OpName %a "a"
OpDecorate %oColor Location 0
OpDecorate %a Location 0
%void = OpTypeVoid
%3 = OpTypeFunction %void
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%oColor = OpVariable %_ptr_Output_v4float Output
%float_0 = OpConstant %float 0
%11 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0
%_ptr_Function_float = OpTypePointer Function %float
%float_10 = OpConstant %float 10
%bool = OpTypeBool
%_ptr_UniformConstant_float = OpTypePointer UniformConstant %float
%a = OpVariable %_ptr_UniformConstant_float UniformConstant
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Output_float = OpTypePointer Output %float
%float_1 = OpConstant %float 1
%main = OpFunction %void None %3
%5 = OpLabel
%j = OpVariable %_ptr_Function_float Function
%i = OpVariable %_ptr_Function_float Function
OpStore %oColor %11
OpStore %j %float_0
OpStore %i %float_0
OpBranch %15
%15 = OpLabel
OpLoopMerge %17 %18 None
OpBranch %19
%19 = OpLabel
%20 = OpLoad %float %i
%23 = OpFOrdLessThan %bool %20 %float_10
OpBranchConditional %23 %16 %17
%16 = OpLabel
%26 = OpLoad %float %a
%30 = OpAccessChain %_ptr_Output_float %oColor %uint_0
%31 = OpLoad %float %30
%32 = OpFAdd %float %31 %26
%33 = OpAccessChain %_ptr_Output_float %oColor %uint_0
OpStore %33 %32
OpBranch %18
%18 = OpLabel
%34 = OpLoad %float %i
%36 = OpFAdd %float %34 %float_1
OpStore %i %36
%37 = OpLoad %float %j
%38 = OpFAdd %float %37 %float_1
OpStore %j %38
OpBranch %15
%17 = OpLabel
OpReturn
OpFunctionEnd