HLSL: Do structure conversion for return type struct-punning on non-entry-point functions.

This commit is contained in:
John Kessenich
2016-10-06 12:59:51 -06:00
parent 7a7217c81b
commit ed33e05762
9 changed files with 167 additions and 20 deletions

View File

@@ -159,7 +159,7 @@ Linked fragment stage:
142: 69(fvec3) ConstantComposite 109 111 112
143: 69(fvec3) ConstantComposite 113 114 116
144: 139 ConstantComposite 72 126 142 143
145: TypePointer Output 7(fvec4)
145: TypePointer Output 6(float)
146(@entryPointOutput): 145(ptr) Variable Output
147: TypePointer Input 7(fvec4)
148(input): 147(ptr) Variable Input
@@ -221,5 +221,6 @@ Linked fragment stage:
Store 130(r62) 133
Store 136(r65) 138
Store 141(r66) 144
ReturnValue 106
Store 146(@entryPointOutput) 106
Return
FunctionEnd