Home | History | Annotate | Download | only in baseResults
      1 spv.fragmentShaderBarycentric.frag
      2 // Module Version 10000
      3 // Generated by (magic number): 80007
      4 // Id's are bound by 43
      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 21
     12                               ExecutionMode 4 OriginUpperLeft
     13                               Source GLSL 450
     14                               SourceExtension  "GL_NV_fragment_shader_barycentric"
     15                               Name 4  "main"
     16                               Name 8  "value"
     17                               Name 11  "gl_BaryCoordNV"
     18                               Name 17  "vertices"
     19                               MemberName 17(vertices) 0  "attrib"
     20                               Name 21  "v"
     21                               Decorate 8(value) Location 1
     22                               Decorate 11(gl_BaryCoordNV) BuiltIn BaryCoordNV
     23                               Decorate 17(vertices) Block
     24                               Decorate 21(v) Location 0
     25                               Decorate 21(v) PerVertexNV
     26                2:             TypeVoid
     27                3:             TypeFunction 2
     28                6:             TypeFloat 32
     29                7:             TypePointer Output 6(float)
     30         8(value):      7(ptr) Variable Output
     31                9:             TypeVector 6(float) 3
     32               10:             TypePointer Input 9(fvec3)
     33 11(gl_BaryCoordNV):     10(ptr) Variable Input
     34               12:             TypeInt 32 0
     35               13:     12(int) Constant 0
     36               14:             TypePointer Input 6(float)
     37     17(vertices):             TypeStruct 6(float)
     38               18:     12(int) Constant 3
     39               19:             TypeArray 17(vertices) 18
     40               20:             TypePointer Input 19
     41            21(v):     20(ptr) Variable Input
     42               22:             TypeInt 32 1
     43               23:     22(int) Constant 0
     44               27:     12(int) Constant 1
     45               30:     22(int) Constant 1
     46               35:     12(int) Constant 2
     47               38:     22(int) Constant 2
     48          4(main):           2 Function None 3
     49                5:             Label
     50               15:     14(ptr) AccessChain 11(gl_BaryCoordNV) 13
     51               16:    6(float) Load 15
     52               24:     14(ptr) AccessChain 21(v) 23 23
     53               25:    6(float) Load 24
     54               26:    6(float) FMul 16 25
     55               28:     14(ptr) AccessChain 11(gl_BaryCoordNV) 27
     56               29:    6(float) Load 28
     57               31:     14(ptr) AccessChain 21(v) 30 23
     58               32:    6(float) Load 31
     59               33:    6(float) FMul 29 32
     60               34:    6(float) FAdd 26 33
     61               36:     14(ptr) AccessChain 11(gl_BaryCoordNV) 35
     62               37:    6(float) Load 36
     63               39:     14(ptr) AccessChain 21(v) 38 23
     64               40:    6(float) Load 39
     65               41:    6(float) FMul 37 40
     66               42:    6(float) FAdd 34 41
     67                               Store 8(value) 42
     68                               Return
     69                               FunctionEnd
     70