Home | History | Annotate | Download | only in baseResults
      1 spv.simpleFunctionCall.frag
      2 // Module Version 10000
      3 // Generated by (magic number): 80007
      4 // Id's are bound by 19
      5 
      6                               Capability Shader
      7                1:             ExtInstImport  "GLSL.std.450"
      8                               MemoryModel Logical GLSL450
      9                               EntryPoint Fragment 4  "main" 12 17
     10                               ExecutionMode 4 OriginUpperLeft
     11                               Source GLSL 150
     12                               Name 4  "main"
     13                               Name 9  "foo("
     14                               Name 12  "BaseColor"
     15                               Name 17  "gl_FragColor"
     16                               Decorate 17(gl_FragColor) Location 0
     17                2:             TypeVoid
     18                3:             TypeFunction 2
     19                6:             TypeFloat 32
     20                7:             TypeVector 6(float) 4
     21                8:             TypeFunction 7(fvec4)
     22               11:             TypePointer Input 7(fvec4)
     23    12(BaseColor):     11(ptr) Variable Input
     24               16:             TypePointer Output 7(fvec4)
     25 17(gl_FragColor):     16(ptr) Variable Output
     26          4(main):           2 Function None 3
     27                5:             Label
     28               18:    7(fvec4) FunctionCall 9(foo()
     29                               Store 17(gl_FragColor) 18
     30                               Return
     31                               FunctionEnd
     32          9(foo():    7(fvec4) Function None 8
     33               10:             Label
     34               13:    7(fvec4) Load 12(BaseColor)
     35                               ReturnValue 13
     36                               FunctionEnd
     37