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
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
float4 main(float4 input) : COLOR0
|
||||
float main(float4 input) : COLOR0
|
||||
{
|
||||
vector r00 = float4(1,2,3,4); // vector means float4
|
||||
float4 r01 = vector(2,3,4,5); // vector means float4
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue