SPV: Fix #723: construct vectors from matrices.
This commit is contained in:
@@ -3,7 +3,7 @@ Warning, version 420 is not yet complete; most version-specific features are pre
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 261
|
||||
// Id's are bound by 286
|
||||
|
||||
Capability Shader
|
||||
Capability Float64
|
||||
@@ -55,6 +55,9 @@ Warning, version 420 is not yet complete; most version-specific features are pre
|
||||
186: TypePointer Output 7(fvec4)
|
||||
187(color): 186(ptr) Variable Output
|
||||
208: 6(float) Constant 0
|
||||
270: TypeVector 6(float) 2
|
||||
271: TypeMatrix 270(fvec2) 2
|
||||
279: 6(float) Constant 1088841318
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
10(sum34): 9(ptr) Variable Function
|
||||
@@ -305,5 +308,29 @@ Warning, version 420 is not yet complete; most version-specific features are pre
|
||||
259: 7(fvec4) Load 187(color)
|
||||
260: 7(fvec4) FAdd 259 258
|
||||
Store 187(color) 260
|
||||
261: 172 Load 174(m43)
|
||||
262: 6(float) CompositeExtract 261 0 0
|
||||
263: 6(float) CompositeExtract 261 0 1
|
||||
264: 6(float) CompositeExtract 261 0 2
|
||||
265: 6(float) CompositeExtract 261 1 0
|
||||
266: 7(fvec4) CompositeConstruct 262 263 264 265
|
||||
267: 7(fvec4) Load 187(color)
|
||||
268: 7(fvec4) FAdd 267 266
|
||||
Store 187(color) 268
|
||||
269: 6(float) Load 28(f)
|
||||
272: 270(fvec2) CompositeConstruct 269 208
|
||||
273: 270(fvec2) CompositeConstruct 208 269
|
||||
274: 271 CompositeConstruct 272 273
|
||||
275: 6(float) CompositeExtract 274 0 0
|
||||
276: 6(float) CompositeExtract 274 0 1
|
||||
277: 6(float) CompositeExtract 274 1 0
|
||||
278: 157(fvec3) CompositeConstruct 275 276 277
|
||||
280: 6(float) CompositeExtract 278 0
|
||||
281: 6(float) CompositeExtract 278 1
|
||||
282: 6(float) CompositeExtract 278 2
|
||||
283: 7(fvec4) CompositeConstruct 280 281 282 279
|
||||
284: 7(fvec4) Load 187(color)
|
||||
285: 7(fvec4) FAdd 284 283
|
||||
Store 187(color) 285
|
||||
Return
|
||||
FunctionEnd
|
||||
|
||||
Reference in New Issue
Block a user