1 spv.doWhileLoop.frag 2 // Module Version 10000 3 // Generated by (magic number): 80007 4 // Id's are bound by 34 5 6 Capability Shader 7 1: ExtInstImport "GLSL.std.450" 8 MemoryModel Logical GLSL450 9 EntryPoint Fragment 4 "main" 11 17 27 32 10 ExecutionMode 4 OriginUpperLeft 11 Source GLSL 140 12 Name 4 "main" 13 Name 9 "color" 14 Name 11 "BaseColor" 15 Name 17 "bigColor" 16 Name 27 "d" 17 Name 32 "gl_FragColor" 18 Decorate 32(gl_FragColor) Location 0 19 2: TypeVoid 20 3: TypeFunction 2 21 6: TypeFloat 32 22 7: TypeVector 6(float) 4 23 8: TypePointer Function 7(fvec4) 24 10: TypePointer Input 7(fvec4) 25 11(BaseColor): 10(ptr) Variable Input 26 17(bigColor): 10(ptr) Variable Input 27 21: TypeInt 32 0 28 22: 21(int) Constant 0 29 23: TypePointer Function 6(float) 30 26: TypePointer Input 6(float) 31 27(d): 26(ptr) Variable Input 32 29: TypeBool 33 31: TypePointer Output 7(fvec4) 34 32(gl_FragColor): 31(ptr) Variable Output 35 4(main): 2 Function None 3 36 5: Label 37 9(color): 8(ptr) Variable Function 38 12: 7(fvec4) Load 11(BaseColor) 39 Store 9(color) 12 40 Branch 13 41 13: Label 42 LoopMerge 15 16 None 43 Branch 14 44 14: Label 45 18: 7(fvec4) Load 17(bigColor) 46 19: 7(fvec4) Load 9(color) 47 20: 7(fvec4) FAdd 19 18 48 Store 9(color) 20 49 Branch 16 50 16: Label 51 24: 23(ptr) AccessChain 9(color) 22 52 25: 6(float) Load 24 53 28: 6(float) Load 27(d) 54 30: 29(bool) FOrdLessThan 25 28 55 BranchConditional 30 13 15 56 15: Label 57 33: 7(fvec4) Load 9(color) 58 Store 32(gl_FragColor) 33 59 Return 60 FunctionEnd 61