1spv.300BuiltIns.vert
2// Module Version 10000
3// Generated by (magic number): 80007
4// Id's are bound by 42
5
6                              Capability Shader
7               1:             ExtInstImport  "GLSL.std.450"
8                              MemoryModel Logical GLSL450
9                              EntryPoint Vertex 4  "main" 10 14 21 34
10                              Source ESSL 310
11                              Name 4  "main"
12                              Name 8  "gl_PerVertex"
13                              MemberName 8(gl_PerVertex) 0  "gl_Position"
14                              MemberName 8(gl_PerVertex) 1  "gl_PointSize"
15                              Name 10  ""
16                              Name 14  "ps"
17                              Name 21  "gl_VertexIndex"
18                              Name 34  "gl_InstanceIndex"
19                              MemberDecorate 8(gl_PerVertex) 0 Invariant
20                              MemberDecorate 8(gl_PerVertex) 0 BuiltIn Position
21                              MemberDecorate 8(gl_PerVertex) 1 BuiltIn PointSize
22                              Decorate 8(gl_PerVertex) Block
23                              Decorate 14(ps) RelaxedPrecision
24                              Decorate 15 RelaxedPrecision
25                              Decorate 21(gl_VertexIndex) BuiltIn VertexIndex
26                              Decorate 30 RelaxedPrecision
27                              Decorate 34(gl_InstanceIndex) BuiltIn InstanceIndex
28               2:             TypeVoid
29               3:             TypeFunction 2
30               6:             TypeFloat 32
31               7:             TypeVector 6(float) 4
32 8(gl_PerVertex):             TypeStruct 7(fvec4) 6(float)
33               9:             TypePointer Output 8(gl_PerVertex)
34              10:      9(ptr) Variable Output
35              11:             TypeInt 32 1
36              12:     11(int) Constant 0
37              13:             TypePointer Input 6(float)
38          14(ps):     13(ptr) Variable Input
39              17:             TypePointer Output 7(fvec4)
40              19:     11(int) Constant 4
41              20:             TypePointer Input 11(int)
4221(gl_VertexIndex):     20(ptr) Variable Input
43              29:     11(int) Constant 1
44              31:             TypePointer Output 6(float)
45              33:     11(int) Constant 5
4634(gl_InstanceIndex):     20(ptr) Variable Input
47         4(main):           2 Function None 3
48               5:             Label
49              15:    6(float) Load 14(ps)
50              16:    7(fvec4) CompositeConstruct 15 15 15 15
51              18:     17(ptr) AccessChain 10 12
52                              Store 18 16
53              22:     11(int) Load 21(gl_VertexIndex)
54              23:     11(int) ISub 19 22
55              24:    6(float) ConvertSToF 23
56              25:     17(ptr) AccessChain 10 12
57              26:    7(fvec4) Load 25
58              27:    7(fvec4) VectorTimesScalar 26 24
59              28:     17(ptr) AccessChain 10 12
60                              Store 28 27
61              30:    6(float) Load 14(ps)
62              32:     31(ptr) AccessChain 10 29
63                              Store 32 30
64              35:     11(int) Load 34(gl_InstanceIndex)
65              36:     11(int) ISub 33 35
66              37:    6(float) ConvertSToF 36
67              38:     31(ptr) AccessChain 10 29
68              39:    6(float) Load 38
69              40:    6(float) FMul 39 37
70              41:     31(ptr) AccessChain 10 29
71                              Store 41 40
72                              Return
73                              FunctionEnd
74