Before, it was only including explicit interface, sufficient for IO-Block-declared oriented interface, but not sufficient for all modes GLSL might be used with SPIR-V. Two things are accomplished now: 1) each id will appear exactly once 2) the OpEntryPoint list will union static use with declarations
123 lines
5.9 KiB
Plaintext
Executable File
123 lines
5.9 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 10000
|
|
// Generated by (magic number): 80001
|
|
// Id's are bound by 63
|
|
|
|
Capability Shader
|
|
1: ExtInstImport "GLSL.std.450"
|
|
MemoryModel Logical GLSL450
|
|
EntryPoint Vertex 4 "main" 44 12 23 34 61 45 62
|
|
Source GLSL 430
|
|
Name 4 "main"
|
|
Name 10 "gl_PerVertex"
|
|
MemberName 10(gl_PerVertex) 0 "gl_ClipDistance"
|
|
Name 12 ""
|
|
Name 23 "bad"
|
|
Name 34 "badorder3"
|
|
Name 39 "f"
|
|
Name 43 "uv4"
|
|
Name 44 "badorder"
|
|
Name 45 "badorder2"
|
|
Name 46 "boundblock"
|
|
MemberName 46(boundblock) 0 "aoeu"
|
|
Name 48 "boundInst"
|
|
Name 49 "anonblock"
|
|
MemberName 49(anonblock) 0 "aoeu"
|
|
Name 51 ""
|
|
Name 55 "sampb1"
|
|
Name 58 "sampb2"
|
|
Name 59 "sampb4"
|
|
Name 61 "gl_VertexID"
|
|
Name 62 "gl_InstanceID"
|
|
MemberDecorate 10(gl_PerVertex) 0 BuiltIn ClipDistance
|
|
Decorate 10(gl_PerVertex) Block
|
|
Decorate 34(badorder3) Flat
|
|
Decorate 43(uv4) Location 4
|
|
Decorate 45(badorder2) Invariant
|
|
Decorate 46(boundblock) GLSLShared
|
|
Decorate 46(boundblock) Block
|
|
Decorate 48(boundInst) Binding 3
|
|
Decorate 49(anonblock) GLSLShared
|
|
Decorate 49(anonblock) Block
|
|
Decorate 51 Binding 7
|
|
Decorate 55(sampb1) Binding 4
|
|
Decorate 58(sampb2) Binding 5
|
|
Decorate 59(sampb4) Binding 31
|
|
Decorate 61(gl_VertexID) BuiltIn VertexId
|
|
Decorate 62(gl_InstanceID) BuiltIn InstanceId
|
|
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: 7(int) Constant 0
|
|
25: TypePointer Input 6(float)
|
|
28: 6(float) Constant 1082549862
|
|
29: TypeBool
|
|
33: TypePointer Output 19(fvec4)
|
|
34(badorder3): 33(ptr) Variable Output
|
|
35: TypePointer Input 19(fvec4)
|
|
38: TypePointer UniformConstant 6(float)
|
|
39(f): 38(ptr) Variable UniformConstant
|
|
42: TypePointer UniformConstant 19(fvec4)
|
|
43(uv4): 42(ptr) Variable UniformConstant
|
|
44(badorder): 35(ptr) Variable Input
|
|
45(badorder2): 33(ptr) Variable Output
|
|
46(boundblock): TypeStruct 13(int)
|
|
47: TypePointer Uniform 46(boundblock)
|
|
48(boundInst): 47(ptr) Variable Uniform
|
|
49(anonblock): TypeStruct 13(int)
|
|
50: TypePointer Uniform 49(anonblock)
|
|
51: 50(ptr) Variable Uniform
|
|
52: TypeImage 6(float) 2D sampled format:Unknown
|
|
53: TypeSampledImage 52
|
|
54: TypePointer UniformConstant 53
|
|
55(sampb1): 54(ptr) Variable UniformConstant
|
|
56: TypeArray 53 20
|
|
57: TypePointer UniformConstant 56
|
|
58(sampb2): 57(ptr) Variable UniformConstant
|
|
59(sampb4): 54(ptr) Variable UniformConstant
|
|
60: TypePointer Input 13(int)
|
|
61(gl_VertexID): 60(ptr) Variable Input
|
|
62(gl_InstanceID): 60(ptr) Variable Input
|
|
4(main): 2 Function None 3
|
|
5: Label
|
|
18: 17(ptr) AccessChain 12 14 15
|
|
Store 18 16
|
|
26: 25(ptr) AccessChain 23(bad) 14 24
|
|
27: 6(float) Load 26
|
|
30: 29(bool) FOrdEqual 27 28
|
|
SelectionMerge 32 None
|
|
BranchConditional 30 31 32
|
|
31: Label
|
|
36: 35(ptr) AccessChain 23(bad) 14
|
|
37: 19(fvec4) Load 36
|
|
Store 34(badorder3) 37
|
|
Branch 32
|
|
32: Label
|
|
40: 6(float) Load 39(f)
|
|
41: 17(ptr) AccessChain 12 14 14
|
|
Store 41 40
|
|
Return
|
|
FunctionEnd
|