1 spv.fragmentShaderBarycentric.frag
2 // Module Version 10000
3 // Generated by (magic number): 8000a
4 // Id's are bound by 43
7 Capability FragmentBarycentricKHR
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
14 SourceExtension "GL_NV_fragment_shader_barycentric"
17 Name 11 "gl_BaryCoordNV"
19 MemberName 17(vertices) 0 "attrib"
21 Decorate 8(value) Location 1
22 Decorate 11(gl_BaryCoordNV) BuiltIn BaryCoordKHR
23 Decorate 17(vertices) Block
24 Decorate 21(v) Location 0
25 Decorate 21(v) PerVertexKHR
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
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
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
50 15: 14(ptr) AccessChain 11(gl_BaryCoordNV) 13
52 24: 14(ptr) AccessChain 21(v) 23 23
54 26: 6(float) FMul 16 25
55 28: 14(ptr) AccessChain 11(gl_BaryCoordNV) 27
57 31: 14(ptr) AccessChain 21(v) 30 23
59 33: 6(float) FMul 29 32
60 34: 6(float) FAdd 26 33
61 36: 14(ptr) AccessChain 11(gl_BaryCoordNV) 35
63 39: 14(ptr) AccessChain 21(v) 38 23
65 41: 6(float) FMul 37 40
66 42: 6(float) FAdd 34 41