HLSL: Do structure conversion for return type struct-punning on non-entry-point functions.
This commit is contained in:
parent
7a7217c81b
commit
ed33e05762
9 changed files with 167 additions and 20 deletions
19
Test/hlsl.multiReturn.frag
Executable file
19
Test/hlsl.multiReturn.frag
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
struct S {
|
||||
float f;
|
||||
float3 v;
|
||||
float3x3 m;
|
||||
};
|
||||
|
||||
cbuffer bufName {
|
||||
S s;
|
||||
};
|
||||
|
||||
S foo()
|
||||
{
|
||||
return s;
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
foo();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue