mirror of
https://github.com/RPCS3/glslang.git
synced 2024-12-22 03:08:13 +00:00
66 lines
3.0 KiB
Plaintext
66 lines
3.0 KiB
Plaintext
spv.branch-return.vert
|
|
// Module Version 10000
|
|
// Generated by (magic number): 80004
|
|
// Id's are bound by 38
|
|
|
|
Capability Shader
|
|
1: ExtInstImport "GLSL.std.450"
|
|
MemoryModel Logical GLSL450
|
|
EntryPoint Vertex 4 "main" 8 20
|
|
Source ESSL 310
|
|
Name 4 "main"
|
|
Name 8 "gl_InstanceIndex"
|
|
Name 18 "gl_PerVertex"
|
|
MemberName 18(gl_PerVertex) 0 "gl_Position"
|
|
MemberName 18(gl_PerVertex) 1 "gl_PointSize"
|
|
Name 20 ""
|
|
Decorate 8(gl_InstanceIndex) BuiltIn InstanceIndex
|
|
MemberDecorate 18(gl_PerVertex) 0 BuiltIn Position
|
|
MemberDecorate 18(gl_PerVertex) 1 BuiltIn PointSize
|
|
Decorate 18(gl_PerVertex) Block
|
|
2: TypeVoid
|
|
3: TypeFunction 2
|
|
6: TypeInt 32 1
|
|
7: TypePointer Input 6(int)
|
|
8(gl_InstanceIndex): 7(ptr) Variable Input
|
|
16: TypeFloat 32
|
|
17: TypeVector 16(float) 4
|
|
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)
|
|
4(main): 2 Function None 3
|
|
5: Label
|
|
9: 6(int) Load 8(gl_InstanceIndex)
|
|
SelectionMerge 14 None
|
|
Switch 9 14
|
|
case 0: 10
|
|
case 1: 11
|
|
case 2: 12
|
|
case 3: 13
|
|
10: Label
|
|
Return
|
|
11: Label
|
|
25: 24(ptr) AccessChain 20 21
|
|
Store 25 23
|
|
Branch 14
|
|
12: Label
|
|
Return
|
|
13: Label
|
|
Return
|
|
14: Label
|
|
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
|
|
Return
|
|
FunctionEnd
|