HLSL: Emulate write-to-output on return-from-entry-point, for return value.
This fixes issue #487 and #480. It also correctly handles output parameters from the entry point.
This commit is contained in:
parent
81cd764b5f
commit
be2f6b05c3
88 changed files with 5121 additions and 4103 deletions
12
Test/hlsl.entry-out.frag
Normal file
12
Test/hlsl.entry-out.frag
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
struct OutParam {
|
||||
float2 v;
|
||||
int2 i;
|
||||
};
|
||||
|
||||
float4 PixelShaderFunction(float4 input, out float4 out1, out OutParam out2) : COLOR0
|
||||
{
|
||||
out1 = input;
|
||||
out2.v = 2.0;
|
||||
out2.i = 3;
|
||||
return out1;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue