spv.do-simple.vert | |
Linked vertex stage: | |
// Module Version 10000 | |
// Generated by (magic number): 80001 | |
// Id's are bound by 29 | |
Capability Shader | |
1: ExtInstImport "GLSL.std.450" | |
MemoryModel Logical GLSL450 | |
EntryPoint Vertex 4 "main" 27 28 | |
Source ESSL 300 | |
Name 4 "main" | |
Name 8 "i" | |
Name 27 "gl_VertexID" | |
Name 28 "gl_InstanceID" | |
Decorate 27(gl_VertexID) BuiltIn VertexId | |
Decorate 28(gl_InstanceID) BuiltIn InstanceId | |
2: TypeVoid | |
3: TypeFunction 2 | |
6: TypeInt 32 1 | |
7: TypePointer Function 6(int) | |
9: 6(int) Constant 0 | |
14: TypeBool | |
15: 14(bool) ConstantTrue | |
19: 6(int) Constant 10 | |
23: 6(int) Constant 1 | |
25: 14(bool) ConstantFalse | |
26: TypePointer Input 6(int) | |
27(gl_VertexID): 26(ptr) Variable Input | |
28(gl_InstanceID): 26(ptr) Variable Input | |
4(main): 2 Function None 3 | |
5: Label | |
8(i): 7(ptr) Variable Function | |
Store 8(i) 9 | |
Branch 10 | |
10: Label | |
13: 14(bool) Phi 15 5 25 12 | |
LoopMerge 11 10 None | |
Branch 16 | |
16: Label | |
SelectionMerge 12 None | |
BranchConditional 13 12 17 | |
17: Label | |
18: 6(int) Load 8(i) | |
20: 14(bool) SLessThan 18 19 | |
SelectionMerge 21 None | |
BranchConditional 20 21 11 | |
21: Label | |
Branch 12 | |
12: Label | |
22: 6(int) Load 8(i) | |
24: 6(int) IAdd 22 23 | |
Store 8(i) 24 | |
Branch 10 | |
11: Label | |
Return | |
FunctionEnd |