2016-01-18 22:12:59 +00:00
|
|
|
spv.branch-return.vert
|
2016-01-23 00:47:22 +00:00
|
|
|
Warning, version 310 is not yet complete; most version-specific features are present, but some are missing.
|
|
|
|
|
2016-01-18 22:12:59 +00:00
|
|
|
|
|
|
|
Linked vertex stage:
|
|
|
|
|
|
|
|
|
|
|
|
// Module Version 10000
|
|
|
|
// Generated by (magic number): 80001
|
2016-02-16 03:58:50 +00:00
|
|
|
// Id's are bound by 38
|
2016-01-18 22:12:59 +00:00
|
|
|
|
|
|
|
Capability Shader
|
|
|
|
1: ExtInstImport "GLSL.std.450"
|
|
|
|
MemoryModel Logical GLSL450
|
2016-02-16 03:58:50 +00:00
|
|
|
EntryPoint Vertex 4 "main" 8 20
|
2016-01-23 00:47:22 +00:00
|
|
|
Source ESSL 310
|
2016-01-18 22:12:59 +00:00
|
|
|
Name 4 "main"
|
2016-02-16 03:58:50 +00:00
|
|
|
Name 8 "gl_InstanceIndex"
|
2016-01-23 00:47:22 +00:00
|
|
|
Name 18 "gl_PerVertex"
|
|
|
|
MemberName 18(gl_PerVertex) 0 "gl_Position"
|
|
|
|
MemberName 18(gl_PerVertex) 1 "gl_PointSize"
|
|
|
|
Name 20 ""
|
2016-02-16 03:58:50 +00:00
|
|
|
Decorate 8(gl_InstanceIndex) BuiltIn InstanceIndex
|
2016-01-23 00:47:22 +00:00
|
|
|
MemberDecorate 18(gl_PerVertex) 0 BuiltIn Position
|
|
|
|
MemberDecorate 18(gl_PerVertex) 1 BuiltIn PointSize
|
|
|
|
Decorate 18(gl_PerVertex) Block
|
2016-01-18 22:12:59 +00:00
|
|
|
2: TypeVoid
|
|
|
|
3: TypeFunction 2
|
|
|
|
6: TypeInt 32 1
|
|
|
|
7: TypePointer Input 6(int)
|
2016-02-16 03:58:50 +00:00
|
|
|
8(gl_InstanceIndex): 7(ptr) Variable Input
|
2016-01-18 22:12:59 +00:00
|
|
|
16: TypeFloat 32
|
|
|
|
17: TypeVector 16(float) 4
|
2016-01-23 00:47:22 +00:00
|
|
|
18(gl_PerVertex): TypeStruct 17(fvec4) 16(float)
|
|
|
|
19: TypePointer Output 18(gl_PerVertex)
|
|
|
|
20: 19(ptr) Variable Output
|
|
|
|
21: 6(int) Constant 0
|
|
|
|
22: 16(float) Constant 0
|
|
|
|
23: 17(fvec4) ConstantComposite 22 22 22 22
|
|
|
|
24: TypePointer Output 17(fvec4)
|
|
|
|
30: 16(float) Constant 1039918957
|
|
|
|
31: TypeInt 32 0
|
|
|
|
32: 31(int) Constant 0
|
|
|
|
33: TypePointer Output 16(float)
|
2016-01-18 22:12:59 +00:00
|
|
|
4(main): 2 Function None 3
|
|
|
|
5: Label
|
2016-02-16 03:58:50 +00:00
|
|
|
9: 6(int) Load 8(gl_InstanceIndex)
|
2016-01-18 22:12:59 +00:00
|
|
|
SelectionMerge 14 None
|
|
|
|
Switch 9 14
|
|
|
|
case 0: 10
|
|
|
|
case 1: 11
|
|
|
|
case 2: 12
|
|
|
|
case 3: 13
|
|
|
|
10: Label
|
|
|
|
Return
|
|
|
|
11: Label
|
2016-01-23 00:47:22 +00:00
|
|
|
25: 24(ptr) AccessChain 20 21
|
|
|
|
Store 25 23
|
2016-01-18 22:12:59 +00:00
|
|
|
Branch 14
|
|
|
|
12: Label
|
|
|
|
Return
|
|
|
|
13: Label
|
|
|
|
Return
|
|
|
|
14: Label
|
2016-01-23 00:47:22 +00:00
|
|
|
34: 33(ptr) AccessChain 20 21 32
|
|
|
|
35: 16(float) Load 34
|
|
|
|
36: 16(float) FAdd 35 30
|
|
|
|
37: 33(ptr) AccessChain 20 21 32
|
|
|
|
Store 37 36
|
2016-01-18 22:12:59 +00:00
|
|
|
Return
|
2016-01-20 18:19:27 +00:00
|
|
|
FunctionEnd
|