HLSL: Start location numbering with the entry-point return value.

Also, increment location numbers by the size of the objects.
This commit is contained in:
John Kessenich 2016-08-29 18:10:47 -06:00
parent a05d8b5604
commit 830b0cc98b
89 changed files with 2517 additions and 2157 deletions

View file

@ -31,6 +31,8 @@ Linked fragment stage:
Decorate 3805 DescriptorSet 0
Decorate 3869 DescriptorSet 0
MemberDecorate 1032 1 BuiltIn FragDepth
MemberDecorate 1033 1 BuiltIn FragDepth
Decorate 4045 Location 0
8: TypeVoid
1282: TypeFunction 8
12: TypeInt 32 1
@ -128,7 +130,8 @@ Linked fragment stage:
138: 13(float) Constant 1065353216
1284: 29(fvec4) ConstantComposite 138 138 138 138
650: TypePointer Function 13(float)
1670: TypePointer Output 1032(struct)
1033: TypeStruct 29(fvec4) 13(float)
1670: TypePointer Output 1033(struct)
4045: 1670(ptr) Variable Output
5663: 8 Function None 1282
24915: Label