SPV: Fix an issue of interpolation decoration.
GLSL interpolation qualifiers and auxiliary storage qualifiers are not mutually exclusive. So when they are translated to SPIR-V decorations, two independent utility methods should be employed to do this job.
This commit is contained in:
parent
2921e0c54a
commit
bbceed7be3
2 changed files with 20 additions and 8 deletions
|
|
@ -21,9 +21,11 @@ Linked vertex stage:
|
|||
Name 15 "outVf"
|
||||
Name 17 "outVn"
|
||||
Name 19 "outVcn"
|
||||
Decorate 9(outVc) Centroid
|
||||
Decorate 15(outVf) Flat
|
||||
Decorate 17(outVn) NoPerspective
|
||||
Decorate 19(outVcn) NoPerspective
|
||||
Decorate 19(outVcn) Centroid
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue