HLSL: fix crash on empty struct return from entry point
This commit is contained in:
13
Test/hlsl.emptystructreturn.frag
Normal file
13
Test/hlsl.emptystructreturn.frag
Normal file
@@ -0,0 +1,13 @@
|
||||
struct ps_in
|
||||
{
|
||||
};
|
||||
|
||||
struct ps_out
|
||||
{
|
||||
};
|
||||
|
||||
ps_out main (ps_in i)
|
||||
{
|
||||
ps_out o;
|
||||
return o;
|
||||
}
|
||||
Reference in New Issue
Block a user