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
72 lines
3.0 KiB
Plaintext
Executable File
72 lines
3.0 KiB
Plaintext
Executable File
spv.dataOutIndirect.vert
|
|
WARNING: 0:3: attribute deprecated in version 130; may be removed in future release
|
|
WARNING: 0:4: varying deprecated in version 130; may be removed in future release
|
|
|
|
|
|
Linked vertex stage:
|
|
|
|
|
|
// Module Version 10000
|
|
// Generated by (magic number): 80001
|
|
// Id's are bound by 38
|
|
|
|
Capability Shader
|
|
1: ExtInstImport "GLSL.std.450"
|
|
MemoryModel Logical GLSL450
|
|
EntryPoint Vertex 4 "main" 23 26 32 37
|
|
Source GLSL 130
|
|
Name 4 "main"
|
|
Name 8 "i"
|
|
Name 23 "colorOut"
|
|
Name 26 "color"
|
|
Name 32 "gl_Position"
|
|
Name 37 "gl_VertexID"
|
|
Decorate 32(gl_Position) BuiltIn Position
|
|
Decorate 37(gl_VertexID) BuiltIn VertexId
|
|
2: TypeVoid
|
|
3: TypeFunction 2
|
|
6: TypeInt 32 1
|
|
7: TypePointer Function 6(int)
|
|
9: 6(int) Constant 1
|
|
14: 6(int) Constant 5
|
|
15: TypeBool
|
|
17: TypeFloat 32
|
|
18: TypeVector 17(float) 4
|
|
19: TypeInt 32 0
|
|
20: 19(int) Constant 6
|
|
21: TypeArray 18(fvec4) 20
|
|
22: TypePointer Output 21
|
|
23(colorOut): 22(ptr) Variable Output
|
|
25: TypePointer Input 18(fvec4)
|
|
26(color): 25(ptr) Variable Input
|
|
28: TypePointer Output 18(fvec4)
|
|
32(gl_Position): 28(ptr) Variable Output
|
|
33: 6(int) Constant 2
|
|
36: TypePointer Input 6(int)
|
|
37(gl_VertexID): 36(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: 6(int) Load 8(i)
|
|
16: 15(bool) SLessThan 13 14
|
|
LoopMerge 11 10 None
|
|
BranchConditional 16 12 11
|
|
12: Label
|
|
24: 6(int) Load 8(i)
|
|
27: 18(fvec4) Load 26(color)
|
|
29: 28(ptr) AccessChain 23(colorOut) 24
|
|
Store 29 27
|
|
30: 6(int) Load 8(i)
|
|
31: 6(int) IAdd 30 9
|
|
Store 8(i) 31
|
|
Branch 10
|
|
11: Label
|
|
34: 28(ptr) AccessChain 23(colorOut) 33
|
|
35: 18(fvec4) Load 34
|
|
Store 32(gl_Position) 35
|
|
Return
|
|
FunctionEnd
|