yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

Piers DaniellImplement support for GL_NV_push_constant_bank (#4157)6b3c0c6e

main
9.1 KiB164 linesraw
1spv.pushConstantBank.vert
2// Module Version 10000
3// Generated by (magic number): 8000b
4// Id's are bound by 75
5
6                              Capability Shader
7                              Capability PushConstantBanksNV
8                              Extension  "SPV_NV_push_constant_bank"
9               1:             ExtInstImport  "GLSL.std.450"
10                              MemoryModel Logical GLSL450
11                              EntryPoint Vertex 4  "main" 70
12                              Source GLSL 460
13                              SourceExtension  "GL_NV_push_constant_bank"
14                              Name 4  "main"
15                              Name 9  "ResultData"
16                              MemberName 9(ResultData) 0  "bank"
17                              Name 11  "resultData"
18                              Name 14  "PushConstantBank0"
19                              MemberName 14(PushConstantBank0) 0  "data"
20                              Name 16  "bank0"
21                              Name 23  "PushConstantBank1"
22                              MemberName 23(PushConstantBank1) 0  "data"
23                              Name 25  "bank1"
24                              Name 30  "PushConstantBank2"
25                              MemberName 30(PushConstantBank2) 0  "data"
26                              Name 32  "bank2"
27                              Name 37  "PushConstantBank3"
28                              MemberName 37(PushConstantBank3) 0  "data"
29                              Name 39  "bank3"
30                              Name 44  "PushConstantBank4"
31                              MemberName 44(PushConstantBank4) 0  "data"
32                              Name 46  "bank4"
33                              Name 51  "PushConstantBank5"
34                              MemberName 51(PushConstantBank5) 0  "data"
35                              Name 53  "bank5"
36                              Name 58  "PushConstantBank6"
37                              MemberName 58(PushConstantBank6) 0  "data"
38                              Name 60  "bank6_offset"
39                              Name 68  "gl_PerVertex"
40                              MemberName 68(gl_PerVertex) 0  "gl_Position"
41                              MemberName 68(gl_PerVertex) 1  "gl_PointSize"
42                              MemberName 68(gl_PerVertex) 2  "gl_ClipDistance"
43                              MemberName 68(gl_PerVertex) 3  "gl_CullDistance"
44                              Name 70  ""
45                              Decorate 8 ArrayStride 4
46                              Decorate 9(ResultData) BufferBlock
47                              MemberDecorate 9(ResultData) 0 Offset 0
48                              Decorate 11(resultData) Binding 0
49                              Decorate 11(resultData) DescriptorSet 0
50                              Decorate 14(PushConstantBank0) Block
51                              MemberDecorate 14(PushConstantBank0) 0 Offset 0
52                              Decorate 23(PushConstantBank1) Block
53                              Decorate 23(PushConstantBank1) BankNV 1
54                              MemberDecorate 23(PushConstantBank1) 0 Offset 0
55                              Decorate 25(bank1) BankNV 1
56                              Decorate 30(PushConstantBank2) Block
57                              Decorate 30(PushConstantBank2) BankNV 2
58                              MemberDecorate 30(PushConstantBank2) 0 Offset 0
59                              Decorate 32(bank2) BankNV 2
60                              Decorate 37(PushConstantBank3) Block
61                              Decorate 37(PushConstantBank3) BankNV 3
62                              MemberDecorate 37(PushConstantBank3) 0 Offset 0
63                              Decorate 39(bank3) BankNV 3
64                              Decorate 44(PushConstantBank4) Block
65                              Decorate 44(PushConstantBank4) BankNV 4
66                              MemberDecorate 44(PushConstantBank4) 0 Offset 0
67                              Decorate 46(bank4) BankNV 4
68                              Decorate 51(PushConstantBank5) Block
69                              Decorate 51(PushConstantBank5) BankNV 5
70                              MemberDecorate 51(PushConstantBank5) 0 Offset 0
71                              Decorate 53(bank5) BankNV 5
72                              Decorate 58(PushConstantBank6) Block
73                              Decorate 58(PushConstantBank6) BankNV 6
74                              MemberDecorate 58(PushConstantBank6) 0 Offset 0
75                              Decorate 60(bank6_offset) MemberOffsetNV 64
76                              Decorate 60(bank6_offset) BankNV 6
77                              Decorate 68(gl_PerVertex) Block
78                              MemberDecorate 68(gl_PerVertex) 0 BuiltIn Position
79                              MemberDecorate 68(gl_PerVertex) 1 BuiltIn PointSize
80                              MemberDecorate 68(gl_PerVertex) 2 BuiltIn ClipDistance
81                              MemberDecorate 68(gl_PerVertex) 3 BuiltIn CullDistance
82               2:             TypeVoid
83               3:             TypeFunction 2
84               6:             TypeInt 32 0
85               7:      6(int) Constant 8
86               8:             TypeArray 6(int) 7
87   9(ResultData):             TypeStruct 8
88              10:             TypePointer Uniform 9(ResultData)
89  11(resultData):     10(ptr) Variable Uniform
90              12:             TypeInt 32 1
91              13:     12(int) Constant 0
9214(PushConstantBank0):             TypeStruct 6(int)
93              15:             TypePointer PushConstant 14(PushConstantBank0)
94       16(bank0):     15(ptr) Variable PushConstant
95              17:             TypePointer PushConstant 6(int)
96              20:             TypePointer Uniform 6(int)
97              22:     12(int) Constant 1
9823(PushConstantBank1):             TypeStruct 6(int)
99              24:             TypePointer PushConstant 23(PushConstantBank1)
100       25(bank1):     24(ptr) Variable PushConstant
101              29:     12(int) Constant 2
10230(PushConstantBank2):             TypeStruct 6(int)
103              31:             TypePointer PushConstant 30(PushConstantBank2)
104       32(bank2):     31(ptr) Variable PushConstant
105              36:     12(int) Constant 3
10637(PushConstantBank3):             TypeStruct 6(int)
107              38:             TypePointer PushConstant 37(PushConstantBank3)
108       39(bank3):     38(ptr) Variable PushConstant
109              43:     12(int) Constant 4
11044(PushConstantBank4):             TypeStruct 6(int)
111              45:             TypePointer PushConstant 44(PushConstantBank4)
112       46(bank4):     45(ptr) Variable PushConstant
113              50:     12(int) Constant 5
11451(PushConstantBank5):             TypeStruct 6(int)
115              52:             TypePointer PushConstant 51(PushConstantBank5)
116       53(bank5):     52(ptr) Variable PushConstant
117              57:     12(int) Constant 6
11858(PushConstantBank6):             TypeStruct 6(int)
119              59:             TypePointer PushConstant 58(PushConstantBank6)
12060(bank6_offset):     59(ptr) Variable PushConstant
121              64:             TypeFloat 32
122              65:             TypeVector 64(float) 4
123              66:      6(int) Constant 1
124              67:             TypeArray 64(float) 66
12568(gl_PerVertex):             TypeStruct 65(fvec4) 64(float) 67 67
126              69:             TypePointer Output 68(gl_PerVertex)
127              70:     69(ptr) Variable Output
128              71:   64(float) Constant 0
129              72:   65(fvec4) ConstantComposite 71 71 71 71
130              73:             TypePointer Output 65(fvec4)
131         4(main):           2 Function None 3
132               5:             Label
133              18:     17(ptr) AccessChain 16(bank0) 13
134              19:      6(int) Load 18
135              21:     20(ptr) AccessChain 11(resultData) 13 13
136                              Store 21 19
137              26:     17(ptr) AccessChain 25(bank1) 13
138              27:      6(int) Load 26
139              28:     20(ptr) AccessChain 11(resultData) 13 22
140                              Store 28 27
141              33:     17(ptr) AccessChain 32(bank2) 13
142              34:      6(int) Load 33
143              35:     20(ptr) AccessChain 11(resultData) 13 29
144                              Store 35 34
145              40:     17(ptr) AccessChain 39(bank3) 13
146              41:      6(int) Load 40
147              42:     20(ptr) AccessChain 11(resultData) 13 36
148                              Store 42 41
149              47:     17(ptr) AccessChain 46(bank4) 13
150              48:      6(int) Load 47
151              49:     20(ptr) AccessChain 11(resultData) 13 43
152                              Store 49 48
153              54:     17(ptr) AccessChain 53(bank5) 13
154              55:      6(int) Load 54
155              56:     20(ptr) AccessChain 11(resultData) 13 50
156                              Store 56 55
157              61:     17(ptr) AccessChain 60(bank6_offset) 13
158              62:      6(int) Load 61
159              63:     20(ptr) AccessChain 11(resultData) 13 57
160                              Store 63 62
161              74:     73(ptr) AccessChain 70 13
162                              Store 74 72
163                              Return
164                              FunctionEnd