Home | History | Annotate | Download | only in baseResults
      1 spv.whileLoop.frag
      2 // Module Version 10000
      3 // Generated by (magic number): 80007
      4 // Id's are bound by 35
      5 
      6                               Capability Shader
      7                1:             ExtInstImport  "GLSL.std.450"
      8                               MemoryModel Logical GLSL450
      9                               EntryPoint Fragment 4  "main" 11 24 28 33
     10                               ExecutionMode 4 OriginUpperLeft
     11                               Source GLSL 140
     12                               Name 4  "main"
     13                               Name 9  "color"
     14                               Name 11  "BaseColor"
     15                               Name 24  "d"
     16                               Name 28  "bigColor"
     17                               Name 33  "gl_FragColor"
     18                               Decorate 33(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               18:             TypeInt 32 0
     27               19:     18(int) Constant 0
     28               20:             TypePointer Function 6(float)
     29               23:             TypePointer Input 6(float)
     30            24(d):     23(ptr) Variable Input
     31               26:             TypeBool
     32     28(bigColor):     10(ptr) Variable Input
     33               32:             TypePointer Output 7(fvec4)
     34 33(gl_FragColor):     32(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 17
     44               17:             Label
     45               21:     20(ptr) AccessChain 9(color) 19
     46               22:    6(float) Load 21
     47               25:    6(float) Load 24(d)
     48               27:    26(bool) FOrdLessThan 22 25
     49                               BranchConditional 27 14 15
     50               14:               Label
     51               29:    7(fvec4)   Load 28(bigColor)
     52               30:    7(fvec4)   Load 9(color)
     53               31:    7(fvec4)   FAdd 30 29
     54                                 Store 9(color) 31
     55                                 Branch 16
     56               16:               Label
     57                                 Branch 13
     58               15:             Label
     59               34:    7(fvec4) Load 9(color)
     60                               Store 33(gl_FragColor) 34
     61                               Return
     62                               FunctionEnd
     63