SPV: Distinguish between std140 and std430 layouts, and correctly use alignments as the base for strides.

This commit is contained in:
John Kessenich
2015-12-06 19:17:49 -07:00
parent dd6ca17845
commit e721f49dbd
3 changed files with 14 additions and 6 deletions

View File

@@ -54,7 +54,7 @@ Linked fragment stage:
MemberDecorate 88(bn) 4 Offset 640
MemberDecorate 88(bn) 4 MatrixStride 16
Decorate 88(bn) Block
Decorate 92 ArrayStride 12
Decorate 92 ArrayStride 16
MemberDecorate 93(bi) 0 Offset 0
Decorate 93(bi) Block
2: TypeVoid