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:
Rex Xu
2016-05-21 09:40:44 +08:00
parent 2921e0c54a
commit bbceed7be3
2 changed files with 20 additions and 8 deletions

View File

@@ -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