1spv.fragmentShaderBarycentric4.frag
2// Module Version 10000
3// Generated by (magic number): 8000b
4// Id's are bound by 62
5
6                              Capability Shader
7                              Capability FragmentBarycentricKHR
8                              Extension  "SPV_KHR_fragment_shader_barycentric"
9               1:             ExtInstImport  "GLSL.std.450"
10                              MemoryModel Logical GLSL450
11                              EntryPoint Fragment 4  "main" 8 11 20 44
12                              ExecutionMode 4 OriginUpperLeft
13                              Source ESSL 320
14                              SourceExtension  "GL_EXT_fragment_shader_barycentric"
15                              Name 4  "main"
16                              Name 8  "value"
17                              Name 11  "gl_BaryCoordNoPerspEXT"
18                              Name 20  "vertexIDs"
19                              Name 44  "vertexIDs2"
20                              Decorate 8(value) Location 1
21                              Decorate 11(gl_BaryCoordNoPerspEXT) BuiltIn BaryCoordNoPerspKHR
22                              Decorate 20(vertexIDs) Location 0
23                              Decorate 20(vertexIDs) PerVertexKHR
24                              Decorate 44(vertexIDs2) Location 1
25                              Decorate 44(vertexIDs2) PerVertexKHR
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)
3311(gl_BaryCoordNoPerspEXT):     10(ptr) Variable Input
34              12:             TypeInt 32 0
35              13:     12(int) Constant 0
36              14:             TypePointer Input 6(float)
37              17:     12(int) Constant 3
38              18:             TypeArray 6(float) 17
39              19:             TypePointer Input 18
40   20(vertexIDs):     19(ptr) Variable Input
41              21:             TypeInt 32 1
42              22:     21(int) Constant 0
43              26:     12(int) Constant 1
44              29:     21(int) Constant 1
45              34:     12(int) Constant 2
46              37:     21(int) Constant 2
47  44(vertexIDs2):     19(ptr) Variable Input
48         4(main):           2 Function None 3
49               5:             Label
50              15:     14(ptr) AccessChain 11(gl_BaryCoordNoPerspEXT) 13
51              16:    6(float) Load 15
52              23:     14(ptr) AccessChain 20(vertexIDs) 22
53              24:    6(float) Load 23
54              25:    6(float) FMul 16 24
55              27:     14(ptr) AccessChain 11(gl_BaryCoordNoPerspEXT) 26
56              28:    6(float) Load 27
57              30:     14(ptr) AccessChain 20(vertexIDs) 29
58              31:    6(float) Load 30
59              32:    6(float) FMul 28 31
60              33:    6(float) FAdd 25 32
61              35:     14(ptr) AccessChain 11(gl_BaryCoordNoPerspEXT) 34
62              36:    6(float) Load 35
63              38:     14(ptr) AccessChain 20(vertexIDs) 37
64              39:    6(float) Load 38
65              40:    6(float) FMul 36 39
66              41:    6(float) FAdd 33 40
67                              Store 8(value) 41
68              42:     14(ptr) AccessChain 11(gl_BaryCoordNoPerspEXT) 13
69              43:    6(float) Load 42
70              45:     14(ptr) AccessChain 44(vertexIDs2) 22
71              46:    6(float) Load 45
72              47:    6(float) FMul 43 46
73              48:     14(ptr) AccessChain 11(gl_BaryCoordNoPerspEXT) 26
74              49:    6(float) Load 48
75              50:     14(ptr) AccessChain 44(vertexIDs2) 29
76              51:    6(float) Load 50
77              52:    6(float) FMul 49 51
78              53:    6(float) FAdd 47 52
79              54:     14(ptr) AccessChain 11(gl_BaryCoordNoPerspEXT) 34
80              55:    6(float) Load 54
81              56:     14(ptr) AccessChain 44(vertexIDs2) 37
82              57:    6(float) Load 56
83              58:    6(float) FMul 55 57
84              59:    6(float) FAdd 53 58
85              60:    6(float) Load 8(value)
86              61:    6(float) FAdd 60 59
87                              Store 8(value) 61
88                              Return
89                              FunctionEnd
90