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

19
Test/hlsl.multiReturn.frag Executable file
View File

@@ -0,0 +1,19 @@
struct S {
float f;
float3 v;
float3x3 m;
};
cbuffer bufName {
S s;
};
S foo()
{
return s;
}
void main()
{
foo();
}