SPIR-V do not decorate: members of plain structs with location; non-top level members with interp.
This fixes some vulkanCTS tests that use struct arrays as a member of in/out interface blocks. From Vulkan spec: "If it is a not a Block, then the structure type must have a Location decoration. Its members are assigned consecutive locations in their declaration order, with the first member assigned to the location specified for the structure type. >>>>> The members, and their nested types, must not themselves have Location decorations <<<<" From SPIR-V spec: "When applied to structure-type members, the Decorations Noperspective, Flat, Patch, Centroid, and Sample can only be applied to the top-level members of the structure type. (Nested objects' types cannot be structures whose members are decorated with these decorations.)"
This commit is contained in:
parent
3bdf24267c
commit
8add151c4b
4 changed files with 14 additions and 29 deletions
|
|
@ -52,19 +52,10 @@ Linked fragment stage:
|
|||
Name 67 "coord"
|
||||
Name 73 "constructed"
|
||||
Decorate 10(Count) Flat
|
||||
MemberDecorate 13(lunarStruct1) 0 Flat
|
||||
MemberDecorate 13(lunarStruct1) 1 Flat
|
||||
MemberDecorate 14(lunarStruct2) 0 Flat
|
||||
MemberDecorate 14(lunarStruct2) 1 Flat
|
||||
MemberDecorate 14(lunarStruct2) 2 Flat
|
||||
MemberDecorate 18(lunarStruct1) 0 Flat
|
||||
MemberDecorate 18(lunarStruct1) 1 Flat
|
||||
MemberDecorate 19(lunarStruct3) 0 Flat
|
||||
MemberDecorate 19(lunarStruct3) 1 Flat
|
||||
MemberDecorate 19(lunarStruct3) 2 Flat
|
||||
MemberDecorate 19(lunarStruct3) 3 Flat
|
||||
MemberDecorate 32(lunarStruct1) 0 Flat
|
||||
MemberDecorate 32(lunarStruct1) 1 Flat
|
||||
MemberDecorate 33(lunarStruct2) 0 Flat
|
||||
MemberDecorate 33(lunarStruct2) 1 Flat
|
||||
MemberDecorate 33(lunarStruct2) 2 Flat
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue