Structured control-flow rules allow leaving the middle of a construct through a return, but not through a jump to a block that does a return. Addresses issue #58.
135 lines
6.7 KiB
Plaintext
Executable File
135 lines
6.7 KiB
Plaintext
Executable File
spv.430.vert
|
|
Warning, version 430 is not yet complete; most version-specific features are present, but some are missing.
|
|
|
|
|
|
Linked vertex stage:
|
|
|
|
|
|
// Module Version 99
|
|
// Generated by (magic number): 51a00bb
|
|
// Id's are bound by 62
|
|
|
|
Source GLSL 430
|
|
Capability Shader
|
|
1: ExtInstImport "GLSL.std.450"
|
|
MemoryModel Logical GLSL450
|
|
EntryPoint Vertex 4 "main"
|
|
Name 4 "main"
|
|
Name 10 "gl_PerVertex"
|
|
MemberName 10(gl_PerVertex) 0 "gl_ClipDistance"
|
|
Name 12 ""
|
|
Name 23 "bad"
|
|
Name 34 "badorder3"
|
|
Name 38 "f"
|
|
Name 42 "uv4"
|
|
Name 43 "badorder"
|
|
Name 44 "badorder2"
|
|
Name 45 "boundblock"
|
|
MemberName 45(boundblock) 0 "aoeu"
|
|
Name 47 "boundInst"
|
|
Name 48 "anonblock"
|
|
MemberName 48(anonblock) 0 "aoeu"
|
|
Name 50 ""
|
|
Name 54 "sampb1"
|
|
Name 57 "sampb2"
|
|
Name 58 "sampb4"
|
|
Name 60 "gl_VertexID"
|
|
Name 61 "gl_InstanceID"
|
|
MemberDecorate 10(gl_PerVertex) 0 BuiltIn ClipDistance
|
|
Decorate 10(gl_PerVertex) Block
|
|
Decorate 34(badorder3) Flat
|
|
Decorate 42(uv4) Location 4
|
|
Decorate 42(uv4) NoStaticUse
|
|
Decorate 28 NoStaticUse
|
|
Decorate 28 NoStaticUse
|
|
Decorate 43(badorder) NoStaticUse
|
|
Decorate 44(badorder2) Smooth
|
|
Decorate 44(badorder2) Invariant
|
|
Decorate 44(badorder2) NoStaticUse
|
|
Decorate 45(boundblock) GLSLShared
|
|
Decorate 45(boundblock) Block
|
|
Decorate 47(boundInst) Binding 3
|
|
Decorate 47(boundInst) NoStaticUse
|
|
Decorate 48(anonblock) GLSLShared
|
|
Decorate 48(anonblock) Block
|
|
Decorate 50 Binding 7
|
|
Decorate 50 NoStaticUse
|
|
Decorate 54(sampb1) Binding 4
|
|
Decorate 54(sampb1) NoStaticUse
|
|
Decorate 57(sampb2) Binding 5
|
|
Decorate 57(sampb2) NoStaticUse
|
|
Decorate 58(sampb4) Binding 31
|
|
Decorate 58(sampb4) NoStaticUse
|
|
Decorate 60(gl_VertexID) BuiltIn VertexId
|
|
Decorate 60(gl_VertexID) NoStaticUse
|
|
Decorate 61(gl_InstanceID) BuiltIn InstanceId
|
|
Decorate 61(gl_InstanceID) NoStaticUse
|
|
2: TypeVoid
|
|
3: TypeFunction 2
|
|
6: TypeFloat 32
|
|
7: TypeInt 32 0
|
|
8: 7(int) Constant 3
|
|
9: TypeArray 6(float) 8
|
|
10(gl_PerVertex): TypeStruct 9
|
|
11: TypePointer Output 10(gl_PerVertex)
|
|
12: 11(ptr) Variable Output
|
|
13: TypeInt 32 1
|
|
14: 13(int) Constant 0
|
|
15: 13(int) Constant 2
|
|
16: 6(float) Constant 1080872141
|
|
17: TypePointer Output 6(float)
|
|
19: TypeVector 6(float) 4
|
|
20: 7(int) Constant 10
|
|
21: TypeArray 19(fvec4) 20
|
|
22: TypePointer Input 21
|
|
23(bad): 22(ptr) Variable Input
|
|
24: TypePointer Input 19(fvec4)
|
|
28: 6(float) Constant 1082549862
|
|
29: TypeBool
|
|
33: TypePointer Output 19(fvec4)
|
|
34(badorder3): 33(ptr) Variable Output
|
|
37: TypePointer UniformConstant 6(float)
|
|
38(f): 37(ptr) Variable UniformConstant
|
|
41: TypePointer UniformConstant 19(fvec4)
|
|
42(uv4): 41(ptr) Variable UniformConstant
|
|
43(badorder): 24(ptr) Variable Input
|
|
44(badorder2): 33(ptr) Variable Output
|
|
45(boundblock): TypeStruct 13(int)
|
|
46: TypePointer Uniform 45(boundblock)
|
|
47(boundInst): 46(ptr) Variable Uniform
|
|
48(anonblock): TypeStruct 13(int)
|
|
49: TypePointer Uniform 48(anonblock)
|
|
50: 49(ptr) Variable Uniform
|
|
51: TypeImage 6(float) 2D sampled format:Unknown
|
|
52: TypeSampledImage 51
|
|
53: TypePointer UniformConstant 52
|
|
54(sampb1): 53(ptr) Variable UniformConstant
|
|
55: TypeArray 52 20
|
|
56: TypePointer UniformConstant 55
|
|
57(sampb2): 56(ptr) Variable UniformConstant
|
|
58(sampb4): 53(ptr) Variable UniformConstant
|
|
59: TypePointer Input 13(int)
|
|
60(gl_VertexID): 59(ptr) Variable Input
|
|
61(gl_InstanceID): 59(ptr) Variable Input
|
|
4(main): 2 Function None 3
|
|
5: Label
|
|
18: 17(ptr) AccessChain 12 14 15
|
|
Store 18 16
|
|
25: 24(ptr) AccessChain 23(bad) 14
|
|
26: 19(fvec4) Load 25
|
|
27: 6(float) CompositeExtract 26 0
|
|
30: 29(bool) FOrdEqual 27 28
|
|
SelectionMerge 32 None
|
|
BranchConditional 30 31 32
|
|
31: Label
|
|
35: 24(ptr) AccessChain 23(bad) 14
|
|
36: 19(fvec4) Load 35
|
|
Store 34(badorder3) 36
|
|
Branch 32
|
|
32: Label
|
|
39: 6(float) Load 38(f)
|
|
40: 17(ptr) AccessChain 12 14 14
|
|
Store 40 39
|
|
Return
|
|
FunctionEnd
|