Home | History | Annotate | Download | only in baseResults
      1 spv.fragmentShaderBarycentric2.frag
      2 // Module Version 10000
      3 // Generated by (magic number): 80007
      4 // Id's are bound by 42
      5 
      6                               Capability Shader
      7                               Capability FragmentBarycentricNV
      8                               Extension  "SPV_NV_fragment_shader_barycentric"
      9                1:             ExtInstImport  "GLSL.std.450"
     10                               MemoryModel Logical GLSL450
     11                               EntryPoint Fragment 4  "main" 8 11 20
     12                               ExecutionMode 4 OriginUpperLeft
     13                               Source ESSL 320
     14                               SourceExtension  "GL_NV_fragment_shader_barycentric"
     15                               Name 4  "main"
     16                               Name 8  "value"
     17                               Name 11  "gl_BaryCoordNoPerspNV"
     18                               Name 20  "vertexIDs"
     19                               Decorate 8(value) Location 1
     20                               Decorate 11(gl_BaryCoordNoPerspNV) BuiltIn BaryCoordNoPerspNV
     21                               Decorate 20(vertexIDs) Location 0
     22                               Decorate 20(vertexIDs) PerVertexNV
     23                2:             TypeVoid
     24                3:             TypeFunction 2
     25                6:             TypeFloat 32
     26                7:             TypePointer Output 6(float)
     27         8(value):      7(ptr) Variable Output
     28                9:             TypeVector 6(float) 3
     29               10:             TypePointer Input 9(fvec3)
     30 11(gl_BaryCoordNoPerspNV):     10(ptr) Variable Input
     31               12:             TypeInt 32 0
     32               13:     12(int) Constant 0
     33               14:             TypePointer Input 6(float)
     34               17:     12(int) Constant 3
     35               18:             TypeArray 6(float) 17
     36               19:             TypePointer Input 18
     37    20(vertexIDs):     19(ptr) Variable Input
     38               21:             TypeInt 32 1
     39               22:     21(int) Constant 0
     40               26:     12(int) Constant 1
     41               29:     21(int) Constant 1
     42               34:     12(int) Constant 2
     43               37:     21(int) Constant 2
     44          4(main):           2 Function None 3
     45                5:             Label
     46               15:     14(ptr) AccessChain 11(gl_BaryCoordNoPerspNV) 13
     47               16:    6(float) Load 15
     48               23:     14(ptr) AccessChain 20(vertexIDs) 22
     49               24:    6(float) Load 23
     50               25:    6(float) FMul 16 24
     51               27:     14(ptr) AccessChain 11(gl_BaryCoordNoPerspNV) 26
     52               28:    6(float) Load 27
     53               30:     14(ptr) AccessChain 20(vertexIDs) 29
     54               31:    6(float) Load 30
     55               32:    6(float) FMul 28 31
     56               33:    6(float) FAdd 25 32
     57               35:     14(ptr) AccessChain 11(gl_BaryCoordNoPerspNV) 34
     58               36:    6(float) Load 35
     59               38:     14(ptr) AccessChain 20(vertexIDs) 37
     60               39:    6(float) Load 38
     61               40:    6(float) FMul 36 39
     62               41:    6(float) FAdd 33 40
     63                               Store 8(value) 41
     64                               Return
     65                               FunctionEnd
     66