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:
@@ -43,8 +43,11 @@ ERROR: node is still EOpNull!
|
||||
0:20 1 (const int)
|
||||
0:20 Constant:
|
||||
0:20 1.000000
|
||||
0:22 Branch: Return with expression
|
||||
0:22 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:22 Sequence
|
||||
0:22 move second child to first child (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:? '@entryPointOutput' (out structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:22 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:22 Branch: Return
|
||||
0:? Linker Objects
|
||||
0:? 'g_sSamp' (layout(binding=0 ) uniform sampler)
|
||||
0:? 'g_tTex2dmsf4' (uniform texture2DMS)
|
||||
@@ -93,8 +96,11 @@ ERROR: node is still EOpNull!
|
||||
0:20 1 (const int)
|
||||
0:20 Constant:
|
||||
0:20 1.000000
|
||||
0:22 Branch: Return with expression
|
||||
0:22 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:22 Sequence
|
||||
0:22 move second child to first child (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:? '@entryPointOutput' (out structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:22 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:22 Branch: Return
|
||||
0:? Linker Objects
|
||||
0:? 'g_sSamp' (layout(binding=0 ) uniform sampler)
|
||||
0:? 'g_tTex2dmsf4' (uniform texture2DMS)
|
||||
|
||||
Reference in New Issue
Block a user